mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-01-31 18:53:03 +00:00
Merge pull request #2342 from raven02/patch-3
Add multiple save/load slot in UI Pause Menu
This commit is contained in:
commit
f30983ce00
@ -489,16 +489,52 @@ void PauseScreen::render() {
|
||||
} else
|
||||
g_Config.iFrameSkip = 0;
|
||||
|
||||
// TODO: Add UI for more than one slot.
|
||||
HLinear hlinear2(x, y += 70, 20);
|
||||
if (UIButton(GEN_ID, hlinear2, LARGE_BUTTON_WIDTH, 0, i->T("Save State"), ALIGN_LEFT)) {
|
||||
ui_draw2d.DrawText(UBUNTU24, gs->T("Save State :"), 30, 360, 0xFFFFFFFF, ALIGN_LEFT);
|
||||
HLinear hlinear4(x + 180 , y += 50, 10);
|
||||
if (UIButton(GEN_ID, hlinear4, 60, 0, "1", ALIGN_LEFT)) {
|
||||
SaveState::SaveSlot(0, 0, 0);
|
||||
screenManager()->finishDialog(this, DR_CANCEL);
|
||||
}
|
||||
if (UIButton(GEN_ID, hlinear2, LARGE_BUTTON_WIDTH, 0, i->T("Load State"), ALIGN_LEFT)) {
|
||||
if (UIButton(GEN_ID, hlinear4, 60, 0, "2", ALIGN_LEFT)) {
|
||||
SaveState::SaveSlot(1, 0, 0);
|
||||
screenManager()->finishDialog(this, DR_CANCEL);
|
||||
}
|
||||
if (UIButton(GEN_ID, hlinear4, 60, 0, "3", ALIGN_LEFT)) {
|
||||
SaveState::SaveSlot(2, 0, 0);
|
||||
screenManager()->finishDialog(this, DR_CANCEL);
|
||||
}
|
||||
if (UIButton(GEN_ID, hlinear4, 60, 0, "4", ALIGN_LEFT)) {
|
||||
SaveState::SaveSlot(3, 0, 0);
|
||||
screenManager()->finishDialog(this, DR_CANCEL);
|
||||
}
|
||||
if (UIButton(GEN_ID, hlinear4, 60, 0, "5", ALIGN_LEFT)) {
|
||||
SaveState::SaveSlot(4, 0, 0);
|
||||
screenManager()->finishDialog(this, DR_CANCEL);
|
||||
}
|
||||
|
||||
|
||||
ui_draw2d.DrawText(UBUNTU24, gs->T("Load State :"), 30, 420, 0xFFFFFFFF, ALIGN_LEFT);
|
||||
HLinear hlinear3(x + 180 , y += 60, 10);
|
||||
if (UIButton(GEN_ID, hlinear3, 60, 0, "1", ALIGN_LEFT)) {
|
||||
SaveState::LoadSlot(0, 0, 0);
|
||||
screenManager()->finishDialog(this, DR_CANCEL);
|
||||
}
|
||||
if (UIButton(GEN_ID, hlinear3, 60, 0, "2", ALIGN_LEFT)) {
|
||||
SaveState::LoadSlot(1, 0, 0);
|
||||
screenManager()->finishDialog(this, DR_CANCEL);
|
||||
}
|
||||
if (UIButton(GEN_ID, hlinear3, 60, 0, "3", ALIGN_LEFT)) {
|
||||
SaveState::LoadSlot(2, 0, 0);
|
||||
screenManager()->finishDialog(this, DR_CANCEL);
|
||||
}
|
||||
if (UIButton(GEN_ID, hlinear3, 60, 0, "4", ALIGN_LEFT)) {
|
||||
SaveState::LoadSlot(3, 0, 0);
|
||||
screenManager()->finishDialog(this, DR_CANCEL);
|
||||
}
|
||||
if (UIButton(GEN_ID, hlinear3, 60, 0, "5", ALIGN_LEFT)) {
|
||||
SaveState::LoadSlot(4, 0, 0);
|
||||
screenManager()->finishDialog(this, DR_CANCEL);
|
||||
}
|
||||
|
||||
DrawWatermark();
|
||||
UIEnd();
|
||||
|
Loading…
x
Reference in New Issue
Block a user