mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-02 16:38:41 +00:00
Use a more standard order of yes/no/cancel/whatever buttons in dialogs
This commit is contained in:
parent
eea3277b81
commit
8551ddc839
2 changed files with 10 additions and 10 deletions
|
@ -106,15 +106,15 @@ void GUIConfirmMenu::regenerateGui(v2u32 screensize)
|
|||
int bw = 100;
|
||||
{
|
||||
core::rect<s32> rect(0, 0, bw, 30);
|
||||
rect = rect + v2s32(size.X/2-bw/2-bw/2-5, size.Y/2-30/2+25);
|
||||
Environment->addButton(rect, this, GUI_ID_NO,
|
||||
wgettext("No"));
|
||||
rect = rect + v2s32(size.X/2-bw/2-(bw/2+5), size.Y/2-30/2+25);
|
||||
Environment->addButton(rect, this, GUI_ID_YES,
|
||||
wgettext("Yes"));
|
||||
}
|
||||
{
|
||||
core::rect<s32> rect(0, 0, bw, 30);
|
||||
rect = rect + v2s32(size.X/2-bw/2+bw/2+5, size.Y/2-30/2+25);
|
||||
Environment->addButton(rect, this, GUI_ID_YES,
|
||||
wgettext("Yes"));
|
||||
rect = rect + v2s32(size.X/2-bw/2+(bw/2+5), size.Y/2-30/2+25);
|
||||
Environment->addButton(rect, this, GUI_ID_NO,
|
||||
wgettext("No"));
|
||||
}
|
||||
changeCtype("C");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue