GUI: Got rid of most 'built-in' variables
svn-id: r35018
This commit is contained in:
parent
201c26fcd0
commit
fa942c42cc
13 changed files with 40 additions and 51 deletions
|
@ -344,18 +344,4 @@ void Dialog::removeWidget(Widget *del) {
|
|||
}
|
||||
}
|
||||
|
||||
ButtonWidget *Dialog::addButton(GuiObject *boss, int x, int y, const Common::String &label, uint32 cmd, char hotkey) {
|
||||
int w, h;
|
||||
|
||||
if (g_gui.getWidgetSize() == kBigWidgetSize) {
|
||||
w = kBigButtonWidth;
|
||||
h = kBigButtonHeight;
|
||||
} else {
|
||||
w = kButtonWidth;
|
||||
h = kButtonHeight;
|
||||
}
|
||||
|
||||
return new ButtonWidget(boss, x, y, w, h, label, cmd, hotkey);
|
||||
}
|
||||
|
||||
} // End of namespace GUI
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue