add SettingsEditor

This commit is contained in:
scawful
2024-07-20 10:14:46 -04:00
parent f2de827f91
commit 7951616019
6 changed files with 84 additions and 0 deletions

View File

@@ -168,6 +168,11 @@ void MasterEditor::ManageActiveEditors() {
active_editors_.push_back(&assembly_editor_);
ImGui::CloseCurrentPopup();
}
if (ImGui::MenuItem("Settings", nullptr, false,
!IsEditorActive(&settings_editor_, active_editors_))) {
active_editors_.push_back(&settings_editor_);
ImGui::CloseCurrentPopup();
}
ImGui::EndPopup();
}
@@ -243,6 +248,13 @@ void MasterEditor::ManageActiveEditors() {
ImGui::EndTabItem();
}
break;
case EditorType::kSettings:
if (ImGui::BeginTabItem("Settings", &open)) {
current_editor_ = &settings_editor_;
status_ = settings_editor_.Update();
ImGui::EndTabItem();
}
break;
default:
break;
}