diff options
| author | Garrett Cox <garrettjcox@gmail.com> | 2026-01-21 22:55:02 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-01-21 22:55:02 -0600 |
| commit | 58eef5d931e437ca828bdf2387616b1d7bd63c06 (patch) | |
| tree | 91a001f95b0b19d06c22549ac29743059cbc1a21 /mm/2s2h/Rando/Menu.cpp | |
| parent | 8ec3b515489360d91025ba49650fe65a2f2fc3e6 (diff) | |
Add static trap option (#1489)
Diffstat (limited to 'mm/2s2h/Rando/Menu.cpp')
| -rw-r--r-- | mm/2s2h/Rando/Menu.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/mm/2s2h/Rando/Menu.cpp b/mm/2s2h/Rando/Menu.cpp index f8136bd37..e25d052ad 100644 --- a/mm/2s2h/Rando/Menu.cpp +++ b/mm/2s2h/Rando/Menu.cpp @@ -41,6 +41,11 @@ std::unordered_map<int32_t, const char*> junkItemsOptions = { { 1, "Static" }, }; +std::unordered_map<int32_t, const char*> trapItemsOptions = { + { 0, "Default (Dynamic)" }, + { 1, "Static" }, +}; + // clang-format off std::vector<int32_t> incompatibleWithVanilla = { RO_SHUFFLE_BOSS_SOULS, @@ -325,6 +330,14 @@ static void DrawGeneralTab() { "Note: For both Options, junk items will be randomly rolled from a pool of obtainable " "items.\n\nDefault (Cycle): Junk items will cycle every few seconds, allowing you to choose which item " "to pick up\n\nStatic: Junk items will be static, only changing when obtainability status changes.")); + UIWidgets::CVarCombobox( + "Trap Items", "gRando.TrapItems", &trapItemsOptions, + UIWidgets::ComboboxOptions() + .ComponentAlignment(UIWidgets::ComponentAlignment::Right) + .LabelPosition(UIWidgets::LabelPosition::Near) + .Tooltip("Default (Dynamic): Trap items will change dynamically as you progress, ensuring they are an item " + "you have not obtained yet for maximum trickery.\n\nStatic: Trap items will be static, according " + "to the randomizer seed.")); ImGui::EndChild(); ImGui::SameLine(); } |
