Use a more standard order of yes/no/cancel/whatever buttons in dialogs

master
Perttu Ahola 2012-03-15 13:18:21 +02:00
parent eea3277b81
commit 8551ddc839
2 changed files with 10 additions and 10 deletions

View File

@ -106,15 +106,15 @@ void GUIConfirmMenu::regenerateGui(v2u32 screensize)
int bw = 100; int bw = 100;
{ {
core::rect<s32> rect(0, 0, bw, 30); 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); rect = rect + v2s32(size.X/2-bw/2-(bw/2+5), size.Y/2-30/2+25);
Environment->addButton(rect, this, GUI_ID_NO, Environment->addButton(rect, this, GUI_ID_YES,
wgettext("No")); wgettext("Yes"));
} }
{ {
core::rect<s32> rect(0, 0, bw, 30); 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); rect = rect + v2s32(size.X/2-bw/2+(bw/2+5), size.Y/2-30/2+25);
Environment->addButton(rect, this, GUI_ID_YES, Environment->addButton(rect, this, GUI_ID_NO,
wgettext("Yes")); wgettext("No"));
} }
changeCtype("C"); changeCtype("C");
} }

View File

@ -155,14 +155,14 @@ void GUICreateWorld::regenerateGui(v2u32 screensize)
{ {
core::rect<s32> rect(0, 0, 120, 30); core::rect<s32> rect(0, 0, 120, 30);
rect = rect + v2s32(170, 140) + topleft; rect = rect + v2s32(170, 140) + topleft;
Environment->addButton(rect, this, GUI_ID_CANCEL, Environment->addButton(rect, this, GUI_ID_CREATE,
wgettext("Cancel")); wgettext("Create"));
} }
{ {
core::rect<s32> rect(0, 0, 120, 30); core::rect<s32> rect(0, 0, 120, 30);
rect = rect + v2s32(300, 140) + topleft; rect = rect + v2s32(300, 140) + topleft;
Environment->addButton(rect, this, GUI_ID_CREATE, Environment->addButton(rect, this, GUI_ID_CANCEL,
wgettext("Create")); wgettext("Cancel"));
} }
changeCtype("C"); changeCtype("C");
} }