Supporting setting panel layout

This commit is contained in:
2026-09-19 19:41:39 -07:00
parent ace69f613e
commit da6bda7ca7
24 changed files with 257 additions and 37 deletions
+9
View File
@@ -57,7 +57,16 @@ class Application::Impl {
ImGuiRenderer imguiRenderer{window, device, renderContext.getImageFormat(),
renderContext.getImageCount()};
this->application.consoleCommandRegistry.registerCommand(
"reset_layout", "Restore the default panel layout",
[&imguiRenderer](const std::vector<std::string>&) {
imguiRenderer.resetLayout();
return std::string{"Layout reset"};
});
this->application.onCreate();
imguiRenderer.setDefaultLayout(
this->application.panelRegistry.getDefaultLayout());
auto startTime = std::chrono::high_resolution_clock::now();
auto currentTime = startTime;