mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-23 06:15:38 +00:00
Frontend: Popup menu for load state in powered-off state
This commit is contained in:
parent
6c73dc6efb
commit
e0173cbb4d
|
@ -733,7 +733,17 @@ void SDLInterface::DrawPoweredOffWindow()
|
||||||
ImGui::NewLine();
|
ImGui::NewLine();
|
||||||
|
|
||||||
ImGui::SetCursorPosX(button_left);
|
ImGui::SetCursorPosX(button_left);
|
||||||
ImGui::Button("Load State", button_size);
|
if (ImGui::Button("Load State", button_size))
|
||||||
|
ImGui::OpenPopup("PowerOffWindow_LoadStateMenu");
|
||||||
|
if (ImGui::BeginPopup("PowerOffWindow_LoadStateMenu"))
|
||||||
|
{
|
||||||
|
for (u32 i = 1; i <= NUM_QUICK_SAVE_STATES; i++)
|
||||||
|
{
|
||||||
|
if (ImGui::MenuItem(TinyString::FromFormat("State %u", i).GetCharArray()))
|
||||||
|
DoLoadState(i);
|
||||||
|
}
|
||||||
|
ImGui::EndPopup();
|
||||||
|
}
|
||||||
ImGui::NewLine();
|
ImGui::NewLine();
|
||||||
|
|
||||||
ImGui::SetCursorPosX(button_left);
|
ImGui::SetCursorPosX(button_left);
|
||||||
|
|
Loading…
Reference in a new issue