Skip to content

Commit

Permalink
update example
Browse files Browse the repository at this point in the history
  • Loading branch information
xpenatan committed Jun 18, 2024
1 parent 1255c17 commit 98316c6
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.badlogic.gdx.graphics.glutils.ShapeRenderer;
import com.badlogic.gdx.utils.ScreenUtils;
import imgui.ImGui;
import imgui.ImGuiCond;
import imgui.ImVec2;
Expand Down Expand Up @@ -41,8 +42,6 @@ public void show() {
LuaGdx luaGdx = new LuaGdx();

luaGdx.register(lua);

buildScript(code);
}

int moveState = 1;
Expand All @@ -56,12 +55,12 @@ public void show() {

@Override
public void renderImGui() {
ScreenUtils.clear(1f, 1f, 1f, 1f);
update();
renderEditText();
}

public void update() {

if(!luaError) {
LuaState luaState = lua.getLuaState();
// Call function onRender if exist
Expand Down

0 comments on commit 98316c6

Please sign in to comment.