From c68c8f128439fd02f955cc2a0482a6a172373a8e Mon Sep 17 00:00:00 2001 From: Christopher Leggett Date: Sun, 23 Nov 2025 16:45:19 +0000 Subject: [PATCH] Adds a toggle for the entrance labels on signs near loading zones. (#5974) --- soh/soh/OTRGlobals.cpp | 3 ++- soh/soh/SohGui/SohMenuRandomizer.cpp | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/soh/soh/OTRGlobals.cpp b/soh/soh/OTRGlobals.cpp index 8f57b1c06..9023d8990 100644 --- a/soh/soh/OTRGlobals.cpp +++ b/soh/soh/OTRGlobals.cpp @@ -2270,7 +2270,8 @@ extern "C" int CustomMessage_RetrieveIfExists(PlayState* play) { s16 actorParams = 0; if (IS_RANDO) { auto ctx = Rando::Context::GetInstance(); - if (ctx->GetOption(RSK_SHUFFLE_ENTRANCES)) { + if (ctx->GetOption(RSK_SHUFFLE_ENTRANCES) && + CVarGetInteger(CVAR_RANDOMIZER_ENHANCEMENT("EntrancesOnSigns"), 0)) { s16 entrance = -1; switch (textId) { case TEXT_WATERFALL: diff --git a/soh/soh/SohGui/SohMenuRandomizer.cpp b/soh/soh/SohGui/SohMenuRandomizer.cpp index ad688740a..60849ee02 100644 --- a/soh/soh/SohGui/SohMenuRandomizer.cpp +++ b/soh/soh/SohGui/SohMenuRandomizer.cpp @@ -97,6 +97,9 @@ void SohMenu::AddMenuRandomizer() { }) .Options(FloatSliderOptions().Min(5.0f).Max(15.0f).Format("%.2f").DefaultValue(10.0f).Tooltip( "The size of the item when it is picked up.")); + AddWidget(path, "Signs Hint Entrances", WIDGET_CVAR_CHECKBOX) + .CVar(CVAR_RANDOMIZER_ENHANCEMENT("EntrancesOnSigns")) + .Options(CheckboxOptions().Tooltip("If enabled, signs near loading zones will tell you where they lead to.")); // Plandomizer path.sidebarName = "Plandomizer";