From dc116a5f8857315b6b517b21d5f11b33ef56edc7 Mon Sep 17 00:00:00 2001 From: Luke Street Date: Thu, 27 May 2021 11:56:32 -0400 Subject: [PATCH] Update area map with items All/None --- Runtime/ImGuiConsole.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Runtime/ImGuiConsole.cpp b/Runtime/ImGuiConsole.cpp index a301cf990..cf7219782 100644 --- a/Runtime/ImGuiConsole.cpp +++ b/Runtime/ImGuiConsole.cpp @@ -728,13 +728,11 @@ void ImGuiConsole::ShowItemsWindow() { pState.ResetAndIncrPickUp(itemType, maxValue); } } - { - ImGui::SameLine(); - auto& mapWorldInfo = *g_GameState->CurrentWorldState().MapWorldInfo(); - bool mapStationUsed = mapWorldInfo.GetMapStationUsed(); - if (ImGui::Checkbox("Area map", &mapStationUsed)) { - mapWorldInfo.SetMapStationUsed(mapStationUsed); - } + auto& mapWorldInfo = *g_GameState->CurrentWorldState().MapWorldInfo(); + ImGui::SameLine(); + bool mapStationUsed = mapWorldInfo.GetMapStationUsed(); + if (ImGui::Checkbox("Area map", &mapStationUsed)) { + mapWorldInfo.SetMapStationUsed(mapStationUsed); } if (ImGui::Button("All")) { for (const auto itemType : ItemOrder) { @@ -742,12 +740,14 @@ void ImGuiConsole::ShowItemsWindow() { pState.ReInitializePowerUp(itemType, maxValue); pState.ResetAndIncrPickUp(itemType, maxValue); } + mapWorldInfo.SetMapStationUsed(true); } ImGui::SameLine(); if (ImGui::Button("None")) { for (const auto itemType : ItemOrder) { pState.ReInitializePowerUp(itemType, 0); } + mapWorldInfo.SetMapStationUsed(false); } for (const auto itemType : ItemOrder) { u32 maxValue = CPlayerState::GetPowerUpMaxValue(itemType);