mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-25 15:45:38 +00:00
Added Apply and Cancel buttons to the game options menu.
This commit is contained in:
parent
f1f82ac29f
commit
b01bccc8d6
|
@ -136,6 +136,10 @@ GuiGamelistOptions::GuiGamelistOptions(
|
|||
mMenu.addRow(row);
|
||||
}
|
||||
|
||||
// Buttons. Logic to apply or cancel settings are handled by the destructor.
|
||||
mMenu.addButton("APPLY", "apply", [&] { delete this; });
|
||||
mMenu.addButton("CANCEL", "cancel", [&] { mCancelled = true; delete this; });
|
||||
|
||||
// Center the menu.
|
||||
setSize((float)Renderer::getScreenWidth(), (float)Renderer::getScreenHeight());
|
||||
mMenu.setPosition((mSize.x() - mMenu.getSize().x()) / 2, (mSize.y() -
|
||||
|
|
Loading…
Reference in a new issue