2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-07-05 12:35:52 +00:00

Update area map with items All/None

This commit is contained in:
Luke Street 2021-05-27 11:56:32 -04:00
parent c2683e17e0
commit dc116a5f88

View File

@ -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);