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 Setup scaffolding for drag-and-drop asset handling
Editor mode asset file drag and drop Editor mode asset file drag and drop
Editor mode pauses simulation Editor mode pauses simulation
Tabs for editor view

View File

@ -44,10 +44,21 @@ public class ImGuiEditorWindows {
mainWindow.setCallback(new ImGuiWindowCallback() { mainWindow.setCallback(new ImGuiWindowCallback() {
@Override @Override
public void exec() { public void exec() {
ImGui.text("hello :)"); if(ImGui.beginTabBar("Tabs")){
//close button if(ImGui.beginTabItem("General")){
if(ImGui.button("Close")){ ImGui.text("hello :)");
mainWindow.setOpen(false); 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();
} }
} }
}); });