Fixed: Game version selection menu (Bugs 2167730 and 2164305).
svn-id: r34806
This commit is contained in:
parent
cf81446338
commit
9ad49cf983
2 changed files with 7 additions and 9 deletions
|
@ -33,21 +33,19 @@ enum {
|
|||
kChooseCmd = 'Chos'
|
||||
};
|
||||
|
||||
ChooserDialog::ChooserDialog(const String &title, String prefix, const String &buttonLabel)
|
||||
: Dialog(prefix + "chooser") {
|
||||
ChooserDialog::ChooserDialog(const String &title, String dialogId)
|
||||
: Dialog(dialogId) {
|
||||
|
||||
// Headline
|
||||
new StaticTextWidget(this, prefix + "chooser_headline", title);
|
||||
new StaticTextWidget(this, dialogId + ".Headline", title);
|
||||
|
||||
// Add choice list
|
||||
// HACK: Subtracting -12 from the height makes the list look good when
|
||||
// it's used to list savegames in the 320x200 version of the GUI.
|
||||
_list = new ListWidget(this, prefix + "chooser_list");
|
||||
_list = new ListWidget(this, dialogId + ".List");
|
||||
_list->setNumberingMode(kListNumberingOff);
|
||||
|
||||
// Buttons
|
||||
new ButtonWidget(this, prefix + "chooser_cancel", "Cancel", kCloseCmd, 0);
|
||||
_chooseButton = new ButtonWidget(this, prefix + "chooser_ok", buttonLabel, kChooseCmd, 0);
|
||||
new ButtonWidget(this, dialogId + ".Cancel", "Cancel", kCloseCmd, 0);
|
||||
_chooseButton = new ButtonWidget(this, dialogId + ".Choose", "Choose", kChooseCmd, 0);
|
||||
_chooseButton->setEnabled(false);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue