mirror of https://github.com/stella-emu/stella.git
added some more hotkey tooltips to GameInfoDialog
This commit is contained in:
parent
5258d05167
commit
fc1d87f6de
|
@ -221,10 +221,12 @@ void GameInfoDialog::addConsoleTab()
|
||||||
myTVTypeGroup = new RadioButtonGroup();
|
myTVTypeGroup = new RadioButtonGroup();
|
||||||
RadioButtonWidget* r = new RadioButtonWidget(myTab, _font, xpos + lwidth, ypos + 1,
|
RadioButtonWidget* r = new RadioButtonWidget(myTab, _font, xpos + lwidth, ypos + 1,
|
||||||
"Color", myTVTypeGroup);
|
"Color", myTVTypeGroup);
|
||||||
|
r->setToolTip(Event::ConsoleColor, Event::ConsoleColorToggle);
|
||||||
wid.push_back(r);
|
wid.push_back(r);
|
||||||
ypos += lineHeight;
|
ypos += lineHeight;
|
||||||
r = new RadioButtonWidget(myTab, _font, xpos + lwidth, ypos + 1,
|
r = new RadioButtonWidget(myTab, _font, xpos + lwidth, ypos + 1,
|
||||||
"B/W", myTVTypeGroup);
|
"B/W", myTVTypeGroup);
|
||||||
|
r->setToolTip(Event::ConsoleBlackWhite, Event::ConsoleColorToggle);
|
||||||
wid.push_back(r);
|
wid.push_back(r);
|
||||||
ypos += lineHeight + VGAP * 2;
|
ypos += lineHeight + VGAP * 2;
|
||||||
|
|
||||||
|
@ -232,21 +234,25 @@ void GameInfoDialog::addConsoleTab()
|
||||||
myLeftDiffGroup = new RadioButtonGroup();
|
myLeftDiffGroup = new RadioButtonGroup();
|
||||||
r = new RadioButtonWidget(myTab, _font, xpos + lwidth, ypos + 1,
|
r = new RadioButtonWidget(myTab, _font, xpos + lwidth, ypos + 1,
|
||||||
"A (Expert)", myLeftDiffGroup);
|
"A (Expert)", myLeftDiffGroup);
|
||||||
|
r->setToolTip(Event::ConsoleLeftDiffA, Event::ConsoleLeftDiffToggle);
|
||||||
wid.push_back(r);
|
wid.push_back(r);
|
||||||
ypos += lineHeight;
|
ypos += lineHeight;
|
||||||
r = new RadioButtonWidget(myTab, _font, xpos + lwidth, ypos + 1,
|
r = new RadioButtonWidget(myTab, _font, xpos + lwidth, ypos + 1,
|
||||||
"B (Novice)", myLeftDiffGroup);
|
"B (Novice)", myLeftDiffGroup);
|
||||||
wid.push_back(r);
|
wid.push_back(r);
|
||||||
|
r->setToolTip(Event::ConsoleLeftDiffB, Event::ConsoleLeftDiffToggle);
|
||||||
ypos += lineHeight + VGAP * 2;
|
ypos += lineHeight + VGAP * 2;
|
||||||
|
|
||||||
new StaticTextWidget(myTab, _font, xpos, ypos+1, GUI::RIGHT_DIFFICULTY);
|
new StaticTextWidget(myTab, _font, xpos, ypos+1, GUI::RIGHT_DIFFICULTY);
|
||||||
myRightDiffGroup = new RadioButtonGroup();
|
myRightDiffGroup = new RadioButtonGroup();
|
||||||
r = new RadioButtonWidget(myTab, _font, xpos + lwidth, ypos + 1,
|
r = new RadioButtonWidget(myTab, _font, xpos + lwidth, ypos + 1,
|
||||||
"A (Expert)", myRightDiffGroup);
|
"A (Expert)", myRightDiffGroup);
|
||||||
|
r->setToolTip(Event::ConsoleRightDiffA, Event::ConsoleRightDiffToggle);
|
||||||
wid.push_back(r);
|
wid.push_back(r);
|
||||||
ypos += lineHeight;
|
ypos += lineHeight;
|
||||||
r = new RadioButtonWidget(myTab, _font, xpos + lwidth, ypos + 1,
|
r = new RadioButtonWidget(myTab, _font, xpos + lwidth, ypos + 1,
|
||||||
"B (Novice)", myRightDiffGroup);
|
"B (Novice)", myRightDiffGroup);
|
||||||
|
r->setToolTip(Event::ConsoleRightDiffB, Event::ConsoleRightDiffToggle);
|
||||||
wid.push_back(r);
|
wid.push_back(r);
|
||||||
|
|
||||||
// Add items for tab 1
|
// Add items for tab 1
|
||||||
|
@ -355,6 +361,7 @@ void GameInfoDialog::addControllersTab()
|
||||||
myPaddleXCenter->setMinValue(Paddles::MIN_ANALOG_CENTER);
|
myPaddleXCenter->setMinValue(Paddles::MIN_ANALOG_CENTER);
|
||||||
myPaddleXCenter->setMaxValue(Paddles::MAX_ANALOG_CENTER);
|
myPaddleXCenter->setMaxValue(Paddles::MAX_ANALOG_CENTER);
|
||||||
myPaddleXCenter->setTickmarkIntervals(4);
|
myPaddleXCenter->setTickmarkIntervals(4);
|
||||||
|
myPaddleXCenter->setToolTip(Event::DecreasePaddleCenterX, Event::IncreasePaddleCenterX);
|
||||||
wid.push_back(myPaddleXCenter);
|
wid.push_back(myPaddleXCenter);
|
||||||
ypos += lineHeight + VGAP;
|
ypos += lineHeight + VGAP;
|
||||||
|
|
||||||
|
@ -363,6 +370,7 @@ void GameInfoDialog::addControllersTab()
|
||||||
myPaddleYCenter->setMinValue(Paddles::MIN_ANALOG_CENTER);
|
myPaddleYCenter->setMinValue(Paddles::MIN_ANALOG_CENTER);
|
||||||
myPaddleYCenter->setMaxValue(Paddles::MAX_ANALOG_CENTER);
|
myPaddleYCenter->setMaxValue(Paddles::MAX_ANALOG_CENTER);
|
||||||
myPaddleYCenter->setTickmarkIntervals(4);
|
myPaddleYCenter->setTickmarkIntervals(4);
|
||||||
|
myPaddleYCenter->setToolTip(Event::DecreasePaddleCenterY, Event::IncreasePaddleCenterY);
|
||||||
wid.push_back(myPaddleYCenter);
|
wid.push_back(myPaddleYCenter);
|
||||||
|
|
||||||
// Mouse
|
// Mouse
|
||||||
|
|
Loading…
Reference in New Issue