Add supported features section to help menu
This commit is contained in:
@@ -469,12 +469,32 @@ void MasterEditor::DrawViewMenu() {
|
|||||||
|
|
||||||
void MasterEditor::DrawHelpMenu() {
|
void MasterEditor::DrawHelpMenu() {
|
||||||
static bool open_rom_help = false;
|
static bool open_rom_help = false;
|
||||||
|
static bool open_supported_features = false;
|
||||||
if (BeginMenu("Help")) {
|
if (BeginMenu("Help")) {
|
||||||
if (MenuItem("How to open a ROM")) open_rom_help = true;
|
if (MenuItem("How to open a ROM")) open_rom_help = true;
|
||||||
|
if (MenuItem("Supported Features")) open_supported_features = true;
|
||||||
|
|
||||||
if (MenuItem("About")) about_ = true;
|
if (MenuItem("About")) about_ = true;
|
||||||
ImGui::EndMenu();
|
ImGui::EndMenu();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (open_supported_features) ImGui::OpenPopup("Supported Features");
|
||||||
|
if (ImGui::BeginPopupModal("Supported Features", nullptr,
|
||||||
|
ImGuiWindowFlags_AlwaysAutoResize)) {
|
||||||
|
// TODO: Expand on details of what is currently implemented.
|
||||||
|
ImGui::BulletText("Overworld Editing");
|
||||||
|
ImGui::BulletText("Dungeon Editing");
|
||||||
|
ImGui::BulletText("Sprite Editing");
|
||||||
|
ImGui::BulletText("Palette Editing");
|
||||||
|
ImGui::BulletText("Screen Editing");
|
||||||
|
|
||||||
|
if (ImGui::Button("Close", gui::kDefaultModalSize)) {
|
||||||
|
open_supported_features = false;
|
||||||
|
ImGui::CloseCurrentPopup();
|
||||||
|
}
|
||||||
|
ImGui::EndPopup();
|
||||||
|
}
|
||||||
|
|
||||||
if (open_rom_help) ImGui::OpenPopup("Open a ROM");
|
if (open_rom_help) ImGui::OpenPopup("Open a ROM");
|
||||||
if (ImGui::BeginPopupModal("Open a ROM", nullptr,
|
if (ImGui::BeginPopupModal("Open a ROM", nullptr,
|
||||||
ImGuiWindowFlags_AlwaysAutoResize)) {
|
ImGuiWindowFlags_AlwaysAutoResize)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user