Merge pull request #915 from aMannus/rando-enhancements-menu

Rando: Added extra flyout for item fanfares
This commit is contained in:
briaguya 2022-08-02 03:23:59 -07:00 committed by GitHub
commit bf6ef1344e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1393,6 +1393,7 @@ namespace SohImGui {
for (const auto& category : windowCategories) {
ImGui::SetCursorPosY(0.0f);
if (category.first != "Randomizer") {
if (ImGui::BeginMenu(category.first.c_str())) {
for (const std::string& name : category.second) {
std::string varName(name);
@ -1405,7 +1406,30 @@ namespace SohImGui {
ImGui::EndMenu();
}
}
}
// Randomizer Menu
ImGui::SetCursorPosY(0.0f);
if (ImGui::BeginMenu("Randomizer"))
{
EnhancementCheckbox("Randomizer Settings", "gRandomizerSettingsEnabled");
customWindows["Randomizer Settings"].enabled = CVar_GetS32("gRandomizerSettingsEnabled", 0);
EnhancementCheckbox("Item Tracker", "gItemTrackerEnabled");
customWindows["Item Tracker"].enabled = CVar_GetS32("gItemTrackerEnabled", 0);
ImGui::Separator();
if (ImGui::BeginMenu("Rando Enhancements"))
{
EnhancementCheckbox("Quest Item Fanfares", "gRandoQuestItemFanfares");
Tooltip(
"Play unique fanfares when obtaining quest items\n"
"(medallions/stones/songs). Note that these fanfares\n"
"are longer than usual."
);
ImGui::EndMenu();
}
ImGui::EndMenu();
}
ImGui::EndMenuBar();
}