diff options
| author | Caladius <Caladius@users.noreply.github.com> | 2024-05-20 22:20:04 -0400 |
|---|---|---|
| committer | Garrett Cox <garrettjcox@gmail.com> | 2024-05-22 09:05:05 -0500 |
| commit | 79a15361d65de9ddaa6a09376bceb4cd5c64a607 (patch) | |
| tree | c60a59af1d84c9b62f9ce73a864ca6c99981b8f4 /mm/2s2h/DeveloperTools/SaveEditor.cpp | |
| parent | 99c9fe16c5336ab275bc62e6ad34bce5423990e1 (diff) | |
Add Banked Rupees Slider (#370)
* Allow Modification of the Rupees stored in the Banker NPC.
* Adds slider for Banked Rupees.
* Updated to remove Static variable and clean up If statement left over from testing.
Diffstat (limited to 'mm/2s2h/DeveloperTools/SaveEditor.cpp')
| -rw-r--r-- | mm/2s2h/DeveloperTools/SaveEditor.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/mm/2s2h/DeveloperTools/SaveEditor.cpp b/mm/2s2h/DeveloperTools/SaveEditor.cpp index 61af2b16f..0da3d9317 100644 --- a/mm/2s2h/DeveloperTools/SaveEditor.cpp +++ b/mm/2s2h/DeveloperTools/SaveEditor.cpp @@ -329,6 +329,13 @@ void DrawGeneralTab() { ); ImGui::Text("Banked Rupees: %d", HS_GET_BANK_RUPEES()); + int bankedRupees = HS_GET_BANK_RUPEES(); + UIWidgets::PushStyleSlider(UIWidgets::Colors::Green); + if (ImGui::SliderInt("##setBank", &bankedRupees, 0, 5000, "Banked Rupees: %d")) { + HS_SET_BANK_RUPEES(bankedRupees); + } + UIWidgets::Tooltip("To recieve the rewards, set the bank to 199, 999, or 4,999 then deposit a single rupee"); + UIWidgets::PopStyleSlider(); // Temple clears static const std::array<std::pair<int32_t, const char*>, 4> templeClears = { { |
