Some checks failed
studiorailgun/Renderer/pipeline/head There was a failure building this commit
44 lines
1.2 KiB
Java
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);
|
|
}
|
|
|
|
}
|