tabs for editor view
All checks were successful
studiorailgun/Renderer/pipeline/head This commit looks good

This commit is contained in:
austin 2025-03-26 22:46:35 -04:00
parent 2cf46cc38f
commit 7f3cad3064
2 changed files with 16 additions and 4 deletions

View File

@ -1329,6 +1329,7 @@ Add debug control to swap first/third person
Setup scaffolding for drag-and-drop asset handling
Editor mode asset file drag and drop
Editor mode pauses simulation
Tabs for editor view

View File

@ -44,10 +44,21 @@ public class ImGuiEditorWindows {
mainWindow.setCallback(new ImGuiWindowCallback() {
@Override
public void exec() {
ImGui.text("hello :)");
//close button
if(ImGui.button("Close")){
mainWindow.setOpen(false);
if(ImGui.beginTabBar("Tabs")){
if(ImGui.beginTabItem("General")){
ImGui.text("hello :)");
ImGui.endTabItem();
}
if(ImGui.beginTabItem("Assets")){
ImGui.text("asset selector here");
ImGui.endTabItem();
}
if(ImGui.beginTabItem("Hierarchy")){
ImGui.text("hierarchy controls here");
ImGui.endTabItem();
}
ImGui.endTabBar();
}
}
});