mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
refactor: add GUI instance reference to UI nodes
This commit is contained in:
parent
74a94f869c
commit
4c48afbb90
70 changed files with 1133 additions and 832 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue