Added extra flyout for item fanfares

This commit is contained in:
aMannus 2022-07-24 12:22:27 +02:00
parent 81d389d0b7
commit ffa3780d7b

View File

@ -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());