sys: Completely revamped main menu item system

This commit is contained in:
WerWolv
2023-03-20 13:11:43 +01:00
parent 677c989664
commit 39e8d557e8
24 changed files with 1019 additions and 669 deletions

View File

@@ -7,11 +7,9 @@
namespace hex::plugin::builtin {
ViewThemeManager::ViewThemeManager() : View("hex.builtin.view.theme_manager.name") {
ContentRegistry::Interface::addMenuItem("hex.builtin.menu.help", 1200, [&, this] {
if (ImGui::MenuItem("hex.builtin.view.theme_manager.name"_lang, "")) {
this->m_viewOpen = true;
this->getWindowOpenState() = true;
}
ContentRegistry::Interface::addMenuItem({ "hex.builtin.menu.help", "hex.builtin.view.theme_manager.name" }, 3000, Shortcut::None, [&, this] {
this->m_viewOpen = true;
this->getWindowOpenState() = true;
});
}