Renderer/src/main/java/electrosphere/menu/debug/ImGuiControls.java
austin c3f824198b
Some checks failed
studiorailgun/Renderer/pipeline/head There was a failure building this commit
ui fixes
2024-07-19 22:36:57 -04:00

44 lines
1.2 KiB
Java

package electrosphere.menu.debug;
import electrosphere.engine.Globals;
import electrosphere.renderer.ui.imgui.ImGuiWindow;
import electrosphere.renderer.ui.imgui.ImGuiWindow.ImGuiWindowCallback;
import imgui.ImGui;
/**
* Controls debug menus
*/
public class ImGuiControls {
//window for viewing information about the controls state
protected static ImGuiWindow controlsWindow;
/**
* Creates the windows in this file
*/
protected static void createControlsWindows(){
createControlsDebugWindow();
}
/**
* Client scene entity view
*/
protected static void createControlsDebugWindow(){
controlsWindow = new ImGuiWindow("Controls");
controlsWindow.setCallback(new ImGuiWindowCallback() {
@Override
public void exec() {
//ui framework text
ImGui.text("Controls");
//control handler stuff
ImGui.text("ControlHandler state: " + Globals.controlHandler.getHandlerState());
}
});
controlsWindow.setOpen(false);
Globals.renderingEngine.getImGuiPipeline().addImGuiWindow(controlsWindow);
}
}