refactor: add GUI instance reference to UI nodes

This commit is contained in:
MihailRis
2025-04-02 14:55:53 +03:00
parent 74a94f869c
commit 4c48afbb90
70 changed files with 1133 additions and 832 deletions
+2 -2
View File
@@ -38,7 +38,7 @@ void EngineController::deleteWorld(const std::string& name) {
logger.info() << "deleting " << folder.string();
io::remove_all(folder);
if (!engine.isHeadless()) {
engine.getGUI()->getMenu()->back();
engine.getGUI().getMenu()->back();
}
};
@@ -109,7 +109,7 @@ static void show_convert_request(
text += util::str2wstr_utf8(line) + L"\n";
}
guiutil::confirm_with_memo(
engine.getGUI()->getMenu(),
engine,
langs::get(message),
text,
on_confirm,