From ffa3780d7b0f03f80786c05d41c883359eba12e6 Mon Sep 17 00:00:00 2001 From: aMannus Date: Sun, 24 Jul 2022 12:22:27 +0200 Subject: [PATCH] Added extra flyout for item fanfares --- libultraship/libultraship/ImGuiImpl.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/libultraship/libultraship/ImGuiImpl.cpp b/libultraship/libultraship/ImGuiImpl.cpp index 8fe960904..2bef216ea 100644 --- a/libultraship/libultraship/ImGuiImpl.cpp +++ b/libultraship/libultraship/ImGuiImpl.cpp @@ -1382,6 +1382,19 @@ namespace SohImGui { for (const auto& category : windowCategories) { ImGui::SetCursorPosY(0.0f); if (ImGui::BeginMenu(category.first.c_str())) { + if (category.first == "Randomizer") { + if (ImGui::BeginMenu("Rando Enhancements")) + { + EnhancementCheckbox("Dynamic Item Fanfares", "gRandoFanfareByItemType"); + Tooltip( + "Change what fanfare is played to match the type of item that is\n" + "obtained. This can make fanfares longer than usual in some cases." + ); + + ImGui::EndMenu(); + } + ImGui::Separator(); + } for (const std::string& name : category.second) { std::string varName(name); varName.erase(std::remove_if(varName.begin(), varName.end(), [](unsigned char x) { return std::isspace(x); }), varName.end());