Supporting setting panel layout
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user