mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-24 21:21:05 +00:00
fix item positions
svn-id: r11122
This commit is contained in:
parent
93037c3fed
commit
76e4cbe2cb
@ -94,7 +94,9 @@ protected:
|
||||
EditGameDialog::EditGameDialog(const String &domain, GameSettings target)
|
||||
: Dialog(8, 50, 320 - 2 * 8, 200 - 2 * 40),
|
||||
_domain(domain) {
|
||||
|
||||
const int vBorder = 5; // Tab border
|
||||
int yoffset;
|
||||
|
||||
// GAME: Path to game data (r/o)
|
||||
String path(ConfMan.get("path", _domain));
|
||||
@ -107,30 +109,36 @@ EditGameDialog::EditGameDialog(const String &domain, GameSettings target)
|
||||
|
||||
// GUI: Add tab widget
|
||||
TabWidget *tab = new TabWidget(this, 0, vBorder, _w, _h - 24 - 2*vBorder);
|
||||
|
||||
tab->addTab("Game");
|
||||
yoffset = vBorder;
|
||||
|
||||
// GUI: Label & edit widget for the game ID
|
||||
new StaticTextWidget(tab, 10, 10, 40, kLineHeight, "ID: ", kTextAlignRight);
|
||||
_domainWidget = new EditTextWidget(tab, 50, 10, _w - 50 - 10, kLineHeight, _domain);
|
||||
new StaticTextWidget(tab, 10, yoffset+2, 40, kLineHeight, "ID: ", kTextAlignRight);
|
||||
_domainWidget = new EditTextWidget(tab, 50, yoffset, _w - 50 - 10, kLineHeight, _domain);
|
||||
yoffset += 16;
|
||||
|
||||
// GUI: Label & edit widget for the description
|
||||
new StaticTextWidget(tab, 10, 26, 40, kLineHeight, "Name: ", kTextAlignRight);
|
||||
_descriptionWidget = new EditTextWidget(tab, 50, 26, _w - 50 - 10, kLineHeight, description);
|
||||
new StaticTextWidget(tab, 10, yoffset+2, 40, kLineHeight, "Name: ", kTextAlignRight);
|
||||
_descriptionWidget = new EditTextWidget(tab, 50, yoffset, _w - 50 - 10, kLineHeight, description);
|
||||
yoffset += 16;
|
||||
|
||||
// GUI: Label for the game path
|
||||
// TODO: Allow editing, and clip to the RIGHT on long paths (to keep meaningful portions)
|
||||
new StaticTextWidget(tab, 10, 42, 40, kLineHeight, "Path: ", kTextAlignRight);
|
||||
new StaticTextWidget(tab, 50, 42, _w - 50 - 10, kLineHeight, path, kTextAlignLeft);
|
||||
new StaticTextWidget(tab, 10, yoffset, 40, kLineHeight, "Path: ", kTextAlignRight);
|
||||
new StaticTextWidget(tab, 50, yoffset, _w - 50 - 10, kLineHeight, path, kTextAlignLeft);
|
||||
|
||||
// TODO: Platform and language dropdowns (?)
|
||||
|
||||
// GUI: Add Graphics tab
|
||||
tab->addTab("Graphics");
|
||||
yoffset = vBorder;
|
||||
|
||||
// The GFX mode popup & a label
|
||||
// TODO - add an API to query the list of available GFX modes, and to get/set the mode
|
||||
PopUpWidget *gfxPopUp;
|
||||
gfxPopUp = new PopUpWidget(tab, 5, vBorder, 280, kLineHeight, "Graphics mode: ", 100);
|
||||
gfxPopUp = new PopUpWidget(tab, 5, yoffset, 280, kLineHeight, "Graphics mode: ", 100);
|
||||
yoffset += 16;
|
||||
gfxPopUp->appendEntry("<global default>");
|
||||
gfxPopUp->appendEntry("");
|
||||
gfxPopUp->appendEntry("Normal (no scaling)");
|
||||
@ -148,7 +156,7 @@ EditGameDialog::EditGameDialog(const String &domain, GameSettings target)
|
||||
gfxPopUp->setEnabled(false);
|
||||
|
||||
// GUI: Full screen checkbox
|
||||
_fullscreenCheckbox = new CheckboxWidget(tab, 15, 62, 200, 16, "Use Fullscreen Mode", 0, 'F');
|
||||
_fullscreenCheckbox = new CheckboxWidget(tab, 15, yoffset, 200, 16, "Use Fullscreen Mode", 0, 'F');
|
||||
_fullscreenCheckbox->setState(ConfMan.getBool("fullscreen", _domain));
|
||||
|
||||
// Activate the first tab
|
||||
|
Loading…
x
Reference in New Issue
Block a user