Further improved UI/UX of welcome screen

This commit is contained in:
WerWolv
2021-01-30 23:02:03 +01:00
parent 5c7a529fa1
commit 073eee8fab
5 changed files with 38 additions and 9 deletions

View File

@@ -147,6 +147,12 @@ namespace hex {
this->openFile(path);
this->getWindowOpenState() = true;
});
} else if (std::any_cast<const char*>(name) == std::string("Open Project")) {
View::openFileBrowser("Open Project", imgui_addons::ImGuiFileBrowser::DialogMode::OPEN, ".hexproj", [this](auto path) {
ProjectFile::load(path);
View::postEvent(Events::ProjectFileLoad);
this->getWindowOpenState() = true;
});
}
});
}