summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGarrett Cox <garrettjcox@gmail.com>2022-12-12 22:07:46 -0600
committerGitHub <noreply@github.com>2022-12-12 23:07:46 -0500
commit99c1f046a6dfdf7264faf2f58744edf0a5dac8b6 (patch)
treefa52f6fd9e0e6d47ea54301f2dd8cfd309268cdf
parentd2a5f6a06cab34087a1f587169c7da6bd9647dcb (diff)
Move entrance tracker button down one (#2172)
-rw-r--r--soh/soh/GameMenuBar.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/soh/soh/GameMenuBar.cpp b/soh/soh/GameMenuBar.cpp
index eb20ca026..fe4986f02 100644
--- a/soh/soh/GameMenuBar.cpp
+++ b/soh/soh/GameMenuBar.cpp
@@ -1190,14 +1190,6 @@ namespace GameMenuBar {
SohImGui::EnableWindow("Item Tracker", CVar_GetS32("gItemTrackerEnabled", 0));
}
ImGui::Dummy(ImVec2(0.0f, 0.0f));
- if (ImGui::Button(GetWindowButtonText("Entrance Tracker", CVar_GetS32("gEntranceTrackerEnabled", 0)).c_str(), buttonSize))
- {
- bool currentValue = CVar_GetS32("gEntranceTrackerEnabled", 0);
- CVar_SetS32("gEntranceTrackerEnabled", !currentValue);
- SohImGui::RequestCvarSaveOnNextTick();
- SohImGui::EnableWindow("Entrance Tracker", CVar_GetS32("gEntranceTrackerEnabled", 0));
- }
- ImGui::Dummy(ImVec2(0.0f, 0.0f));
if (ImGui::Button(GetWindowButtonText("Item Tracker Settings", CVar_GetS32("gItemTrackerSettingsEnabled", 0)).c_str(), buttonSize))
{
bool currentValue = CVar_GetS32("gItemTrackerSettingsEnabled", 0);
@@ -1206,6 +1198,14 @@ namespace GameMenuBar {
SohImGui::EnableWindow("Item Tracker Settings", CVar_GetS32("gItemTrackerSettingsEnabled", 0));
}
ImGui::Dummy(ImVec2(0.0f, 0.0f));
+ if (ImGui::Button(GetWindowButtonText("Entrance Tracker", CVar_GetS32("gEntranceTrackerEnabled", 0)).c_str(), buttonSize))
+ {
+ bool currentValue = CVar_GetS32("gEntranceTrackerEnabled", 0);
+ CVar_SetS32("gEntranceTrackerEnabled", !currentValue);
+ SohImGui::RequestCvarSaveOnNextTick();
+ SohImGui::EnableWindow("Entrance Tracker", CVar_GetS32("gEntranceTrackerEnabled", 0));
+ }
+ ImGui::Dummy(ImVec2(0.0f, 0.0f));
if (ImGui::Button(GetWindowButtonText("Check Tracker", CVar_GetS32("gCheckTrackerEnabled", 0)).c_str(), buttonSize))
{
bool currentValue = CVar_GetS32("gCheckTrackerEnabled", 0);