mirror of
git://projects.qi-hardware.com/gmenu2x.git
synced 2024-12-28 04:46:26 +02:00
Modified the button icons displayed when modifying an integer parameter.
This commit is contained in:
parent
1aac93f36d
commit
87106cdf56
@ -42,21 +42,21 @@ MenuSettingInt::MenuSettingInt(GMenu2X *gmenu2x, const string &name, const strin
|
|||||||
ButtonAction actionInc = MakeDelegate(this, &MenuSettingInt::inc);
|
ButtonAction actionInc = MakeDelegate(this, &MenuSettingInt::inc);
|
||||||
ButtonAction actionDec = MakeDelegate(this, &MenuSettingInt::dec);
|
ButtonAction actionDec = MakeDelegate(this, &MenuSettingInt::dec);
|
||||||
|
|
||||||
btn = new IconButton(gmenu2x, "skin:imgs/buttons/left.png");
|
btn = new IconButton(gmenu2x, "skin:imgs/buttons/l.png");
|
||||||
btn->setAction(actionDec);
|
btn->setAction(actionDec);
|
||||||
buttonBox.add(btn);
|
buttonBox.add(btn);
|
||||||
|
|
||||||
btn = new IconButton(gmenu2x, "skin:imgs/buttons/y.png", gmenu2x->tr["Increase value"]);
|
btn = new IconButton(gmenu2x, "skin:imgs/buttons/left.png", gmenu2x->tr["Decrease"]);
|
||||||
btn->setAction(actionInc);
|
|
||||||
buttonBox.add(btn);
|
|
||||||
|
|
||||||
btn = new IconButton(gmenu2x, "skin:imgs/buttons/right.png");
|
|
||||||
btn->setAction(actionInc);
|
|
||||||
buttonBox.add(btn);
|
|
||||||
|
|
||||||
btn = new IconButton(gmenu2x, "skin:imgs/buttons/x.png", gmenu2x->tr["Decrease value"]);
|
|
||||||
btn->setAction(actionDec);
|
btn->setAction(actionDec);
|
||||||
buttonBox.add(btn);
|
buttonBox.add(btn);
|
||||||
|
|
||||||
|
btn = new IconButton(gmenu2x, "skin:imgs/buttons/r.png");
|
||||||
|
btn->setAction(actionInc);
|
||||||
|
buttonBox.add(btn);
|
||||||
|
|
||||||
|
btn = new IconButton(gmenu2x, "skin:imgs/buttons/right.png", gmenu2x->tr["Increase"]);
|
||||||
|
btn->setAction(actionInc);
|
||||||
|
buttonBox.add(btn);
|
||||||
}
|
}
|
||||||
|
|
||||||
void MenuSettingInt::draw(int y)
|
void MenuSettingInt::draw(int y)
|
||||||
|
Loading…
Reference in New Issue
Block a user