add debug GUI render mode (F8)

This commit is contained in:
MihailRis 2025-03-10 18:06:39 +03:00
parent a74a4fcf53
commit 5af6b91b22
18 changed files with 93 additions and 29 deletions

View file

@ -55,7 +55,7 @@ void Menu::setPage(const std::string &name, bool history) {
void Menu::setPage(Page page, bool history) {
if (current.panel) {
Container::remove(current.panel);
Container::remove(current.panel.get());
if (history && !current.temporal) {
pageStack.push(current);
}
@ -104,7 +104,7 @@ void Menu::clearHistory() {
void Menu::reset() {
clearHistory();
if (current.panel) {
Container::remove(current.panel);
Container::remove(current.panel.get());
current = Page {"", nullptr};
}
}