Fixed imgui demo screen
This commit is contained in:
parent
83eec6a1aa
commit
cb03208ac1
7 changed files with 40 additions and 13 deletions
|
|
@ -16,7 +16,6 @@ import com.badlogic.gdx.utils.ScreenUtils;
|
|||
import imgui.ImGui;
|
||||
import imgui.flag.ImGuiCond;
|
||||
import imgui.flag.ImGuiWindowFlags;
|
||||
import imgui.type.ImBoolean;
|
||||
import love.distributedrebirth.gdxapp4d.tos4.service.SystemGdxBootArgs;
|
||||
import love.distributedrebirth.gdxapp4d.tos4.service.SystemGdxTerminal;
|
||||
import love.distributedrebirth.gdxapp4d.vrgem4.ImGuiSetup;
|
||||
|
|
@ -35,7 +34,6 @@ public abstract class AbstractScreenDesktop extends ScreenAdapter implements Des
|
|||
protected SpriteBatch batch;
|
||||
protected BitmapFont font;
|
||||
protected OrthographicCamera camera;
|
||||
protected ImBoolean showImGuiDemo = new ImBoolean(false);
|
||||
private final DeskTopScreenMenu screenMenu;
|
||||
private final DeskAppController deskAppScreen;
|
||||
private PerspectiveCamera cam;
|
||||
|
|
@ -128,9 +126,6 @@ public abstract class AbstractScreenDesktop extends ScreenAdapter implements Des
|
|||
|
||||
DeskTopScreen appScreen = this;
|
||||
screenMenu.renderMenu(appScreen);
|
||||
if (showImGuiDemo.get()) {
|
||||
ImGui.showDemoWindow(showImGuiDemo);
|
||||
}
|
||||
if (appScreen != null && appScreen.getDeskAppController().getCurrentDeskApp() != null) {
|
||||
int sizeFlags = ImGuiCond.Always;
|
||||
ImGui.setNextWindowPos(0, 28, sizeFlags);
|
||||
|
|
|
|||
|
|
@ -277,9 +277,6 @@ public class DeskTopScreenMenu {
|
|||
terminal.selectScreen(ScreenHelp.class);
|
||||
}
|
||||
ImGui.separator();
|
||||
if (ImGui.menuItem(FontAwesomeIcons.Trademark + " ImGui Demo")) {
|
||||
// GDXAppVrGem4.INSTANCE.showImGuiDemo.set(true);
|
||||
}
|
||||
if (ImGui.menuItem(FontAwesomeIcons.PowerOff + " Shutdown")) {
|
||||
bootArgs.shutdown();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue