mirror of https://github.com/AxioDL/metaforce.git
Update area map with items All/None
This commit is contained in:
parent
c2683e17e0
commit
dc116a5f88
|
@ -728,26 +728,26 @@ void ImGuiConsole::ShowItemsWindow() {
|
||||||
pState.ResetAndIncrPickUp(itemType, maxValue);
|
pState.ResetAndIncrPickUp(itemType, maxValue);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
{
|
|
||||||
ImGui::SameLine();
|
|
||||||
auto& mapWorldInfo = *g_GameState->CurrentWorldState().MapWorldInfo();
|
auto& mapWorldInfo = *g_GameState->CurrentWorldState().MapWorldInfo();
|
||||||
|
ImGui::SameLine();
|
||||||
bool mapStationUsed = mapWorldInfo.GetMapStationUsed();
|
bool mapStationUsed = mapWorldInfo.GetMapStationUsed();
|
||||||
if (ImGui::Checkbox("Area map", &mapStationUsed)) {
|
if (ImGui::Checkbox("Area map", &mapStationUsed)) {
|
||||||
mapWorldInfo.SetMapStationUsed(mapStationUsed);
|
mapWorldInfo.SetMapStationUsed(mapStationUsed);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
if (ImGui::Button("All")) {
|
if (ImGui::Button("All")) {
|
||||||
for (const auto itemType : ItemOrder) {
|
for (const auto itemType : ItemOrder) {
|
||||||
u32 maxValue = CPlayerState::GetPowerUpMaxValue(itemType);
|
u32 maxValue = CPlayerState::GetPowerUpMaxValue(itemType);
|
||||||
pState.ReInitializePowerUp(itemType, maxValue);
|
pState.ReInitializePowerUp(itemType, maxValue);
|
||||||
pState.ResetAndIncrPickUp(itemType, maxValue);
|
pState.ResetAndIncrPickUp(itemType, maxValue);
|
||||||
}
|
}
|
||||||
|
mapWorldInfo.SetMapStationUsed(true);
|
||||||
}
|
}
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
if (ImGui::Button("None")) {
|
if (ImGui::Button("None")) {
|
||||||
for (const auto itemType : ItemOrder) {
|
for (const auto itemType : ItemOrder) {
|
||||||
pState.ReInitializePowerUp(itemType, 0);
|
pState.ReInitializePowerUp(itemType, 0);
|
||||||
}
|
}
|
||||||
|
mapWorldInfo.SetMapStationUsed(false);
|
||||||
}
|
}
|
||||||
for (const auto itemType : ItemOrder) {
|
for (const auto itemType : ItemOrder) {
|
||||||
u32 maxValue = CPlayerState::GetPowerUpMaxValue(itemType);
|
u32 maxValue = CPlayerState::GetPowerUpMaxValue(itemType);
|
||||||
|
|
Loading…
Reference in New Issue