diff options
Diffstat (limited to 'gui')
-rw-r--r-- | gui/launcher.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gui/launcher.cpp b/gui/launcher.cpp index 278759760f..0d6a3b5e86 100644 --- a/gui/launcher.cpp +++ b/gui/launcher.cpp @@ -81,6 +81,8 @@ protected: const String &_domain; EditTextWidget *_descriptionWidget; EditTextWidget *_domainWidget; + CheckboxWidget *_fullscreenCheckbox; + CheckboxWidget *_AmigaPalCheckbox; }; EditGameDialog::EditGameDialog(NewGui *gui, Config &config, const String &domain) @@ -118,10 +120,17 @@ EditGameDialog::EditGameDialog(NewGui *gui, Config &config, const String &domain new StaticTextWidget(this, 50, 42, _w-50-10, kLineHeight, path, kTextAlignLeft); // TODO - insert more widgets here; see comments before the class + _fullscreenCheckbox = new CheckboxWidget(this, 15, 62, 200, 16, "Use Fullscreen Mode", 0, 'F'); + _AmigaPalCheckbox = new CheckboxWidget(this, 15, 82, 200, 16, "Use Amiga Palette", 0, 'A'); // Add OK & Cancel buttons addButton(_w-2*(kButtonWidth+10), _h-24, "Cancel", kCloseCmd, 0); addButton(_w-(kButtonWidth+10), _h-24, "OK", kOKCmd, 0); + + // Load in settings for the checkboxs + _fullscreenCheckbox->setState(_config.getBool("fullscreen", false, _domain)); + _AmigaPalCheckbox->setState(_config.getBool("amiga", false, _domain)); + } void EditGameDialog::handleCommand(CommandSender *sender, uint32 cmd, uint32 data) @@ -138,6 +147,8 @@ void EditGameDialog::handleCommand(CommandSender *sender, uint32 cmd, uint32 dat _config.rename_domain(_domain, newDomain); } _config.set("description", _descriptionWidget->getLabel(), newDomain); + _config.setBool("amiga", _AmigaPalCheckbox->getState(), newDomain); + _config.setBool("fullscreen", _fullscreenCheckbox->getState(), newDomain); setResult(1); close(); } else { |