GUI: Move the lowres string handling logic inside the button widgets
This commit is contained in:
parent
4034ab2335
commit
2296af6b1e
3 changed files with 42 additions and 38 deletions
|
@ -238,29 +238,20 @@ void LauncherDialog::build() {
|
|||
#endif
|
||||
if (!g_system->hasFeature(OSystem::kFeatureNoQuit))
|
||||
new ButtonWidget(this, _title + ".QuitButton", _("~Q~uit"), _("Quit ScummVM"), kQuitCmd);
|
||||
|
||||
new ButtonWidget(this, _title + ".AboutButton", _("A~b~out"), _("About ScummVM"), kAboutCmd);
|
||||
if (g_system->getOverlayWidth() > 320)
|
||||
new ButtonWidget(this, _title + ".OptionsButton", _("Global ~O~ptions..."), _("Change global ScummVM options"), kOptionsCmd);
|
||||
else
|
||||
new ButtonWidget(this, _title + ".OptionsButton", _c("Global ~O~pts...", "lowres"), _("Change global ScummVM options"), kOptionsCmd);
|
||||
new ButtonWidget(this, _title + ".OptionsButton", _("Global ~O~ptions..."), _("Change global ScummVM options"), kOptionsCmd, 0, _c("Global Opts...", "lowres"));
|
||||
|
||||
// Above the lowest button rows: two more buttons (directly below the list box)
|
||||
DropdownButtonWidget *addButton =
|
||||
new DropdownButtonWidget(this, _title + ".AddGameButton", _("~A~dd Game..."), _("Add games to the list"), kAddGameCmd, 0, _c("~A~dd Game...", "lowres"));
|
||||
_addButton = addButton;
|
||||
_removeButton =
|
||||
new ButtonWidget(this, _title + ".RemoveGameButton", _("~R~emove Game"), _("Remove game from the list. The game data files stay intact"), kRemoveGameCmd, 0, _c("~R~emove Game", "lowres"));
|
||||
if (g_system->getOverlayWidth() > 320) {
|
||||
DropdownButtonWidget *addButton =
|
||||
new DropdownButtonWidget(this, _title + ".AddGameButton", _("~A~dd Game..."), _("Add games to the list"), kAddGameCmd);
|
||||
addButton->appendEntry(_("Mass Add..."), kMassAddGameCmd);
|
||||
_addButton = addButton;
|
||||
|
||||
_removeButton =
|
||||
new ButtonWidget(this, _title + ".RemoveGameButton", _("~R~emove Game"), _("Remove game from the list. The game data files stay intact"), kRemoveGameCmd);
|
||||
} else {
|
||||
DropdownButtonWidget *addButton =
|
||||
new DropdownButtonWidget(this, _title + ".AddGameButton", _c("~A~dd Game...", "lowres"), _("Add games to the list"), kAddGameCmd);
|
||||
addButton->appendEntry(_c("Mass Add...", "lowres"), kMassAddGameCmd);
|
||||
_addButton = addButton;
|
||||
|
||||
_removeButton =
|
||||
new ButtonWidget(this, _title + ".RemoveGameButton", _c("~R~emove Game", "lowres"), _("Remove game from the list. The game data files stay intact"), kRemoveGameCmd);
|
||||
}
|
||||
|
||||
// Search box
|
||||
|
@ -994,13 +985,8 @@ void LauncherSimple::build() {
|
|||
_loadButton = loadButton;
|
||||
|
||||
// Add edit button
|
||||
if (g_system->getOverlayWidth() > 320) {
|
||||
_editButton =
|
||||
new ButtonWidget(this, "Launcher.EditGameButton", _("~G~ame Options..."), _("Change game options"), kEditGameCmd);
|
||||
} else {
|
||||
_editButton =
|
||||
new ButtonWidget(this, "Launcher.EditGameButton", _c("~G~ame Opts...", "lowres"), _("Change game options"), kEditGameCmd);
|
||||
}
|
||||
_editButton =
|
||||
new ButtonWidget(this, "Launcher.EditGameButton", _("~G~ame Options..."), _("Change game options"), kEditGameCmd, 0, _c("Game Opts...", "lowres"));
|
||||
|
||||
// Add list with game titles
|
||||
_list = new GroupedListWidget(this, "Launcher.GameList", Common::U32String(), kListSearchCmd);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue