mirror of https://github.com/stella-emu/stella.git
added some more tooltips to UI
This commit is contained in:
parent
c1cbd5d6f3
commit
b338c1b0ad
|
@ -100,6 +100,7 @@ CheatCodeDialog::CheatCodeDialog(OSystem& osystem, DialogContainer& parent,
|
||||||
return (c >= 'a' && c <= 'f') || (c >= '0' && c <= '9');
|
return (c >= 'a' && c <= 'f') || (c >= '0' && c <= '9');
|
||||||
};
|
};
|
||||||
myCheatInput->setTextFilter(f1, 1);
|
myCheatInput->setTextFilter(f1, 1);
|
||||||
|
myCheatInput->setToolTip("See Stella documentation for details.", 1);
|
||||||
|
|
||||||
addToFocusList(wid);
|
addToFocusList(wid);
|
||||||
|
|
||||||
|
|
|
@ -99,6 +99,7 @@ EmulationDialog::EmulationDialog(OSystem& osystem, DialogContainer& parent,
|
||||||
|
|
||||||
// Use sync to vblank
|
// Use sync to vblank
|
||||||
myUseVSync = new CheckboxWidget(this, _font, xpos, ypos + 1, "VSync");
|
myUseVSync = new CheckboxWidget(this, _font, xpos, ypos + 1, "VSync");
|
||||||
|
myUseVSync->setToolTip("Check to enable vertical synced display updates.");
|
||||||
wid.push_back(myUseVSync);
|
wid.push_back(myUseVSync);
|
||||||
ypos += lineHeight + VGAP;
|
ypos += lineHeight + VGAP;
|
||||||
|
|
||||||
|
|
|
@ -97,6 +97,7 @@ EventMappingWidget::EventMappingWidget(GuiObject* boss, const GUI::Font& font,
|
||||||
myCancelMapButton = new ButtonWidget(boss, font, xpos, ypos,
|
myCancelMapButton = new ButtonWidget(boss, font, xpos, ypos,
|
||||||
buttonWidth, buttonHeight,
|
buttonWidth, buttonHeight,
|
||||||
"Cancel", kStopMapCmd);
|
"Cancel", kStopMapCmd);
|
||||||
|
myCancelMapButton->setToolTip("Cancel current mapping.");
|
||||||
myCancelMapButton->setTarget(this);
|
myCancelMapButton->setTarget(this);
|
||||||
myCancelMapButton->clearFlags(Widget::FLAG_ENABLED);
|
myCancelMapButton->clearFlags(Widget::FLAG_ENABLED);
|
||||||
addFocusWidget(myCancelMapButton);
|
addFocusWidget(myCancelMapButton);
|
||||||
|
@ -106,12 +107,14 @@ EventMappingWidget::EventMappingWidget(GuiObject* boss, const GUI::Font& font,
|
||||||
buttonWidth, buttonHeight,
|
buttonWidth, buttonHeight,
|
||||||
"Erase", kEraseCmd);
|
"Erase", kEraseCmd);
|
||||||
myEraseButton->setTarget(this);
|
myEraseButton->setTarget(this);
|
||||||
|
myEraseButton->setToolTip("Erase any mapping for selected event.");
|
||||||
addFocusWidget(myEraseButton);
|
addFocusWidget(myEraseButton);
|
||||||
|
|
||||||
ypos += buttonHeight + VGAP;
|
ypos += buttonHeight + VGAP;
|
||||||
myResetButton = new ButtonWidget(boss, font, xpos, ypos,
|
myResetButton = new ButtonWidget(boss, font, xpos, ypos,
|
||||||
buttonWidth, buttonHeight,
|
buttonWidth, buttonHeight,
|
||||||
"Reset", kResetCmd);
|
"Reset", kResetCmd);
|
||||||
|
myResetButton->setToolTip("Reset mapping for selected event to defaults.");
|
||||||
myResetButton->setTarget(this);
|
myResetButton->setTarget(this);
|
||||||
addFocusWidget(myResetButton);
|
addFocusWidget(myResetButton);
|
||||||
|
|
||||||
|
|
|
@ -109,6 +109,8 @@ UIDialog::UIDialog(OSystem& osystem, DialogContainer& parent,
|
||||||
xpos = myDialogFontPopup->getRight() + fontWidth * 5;
|
xpos = myDialogFontPopup->getRight() + fontWidth * 5;
|
||||||
myHidpiWidget = new CheckboxWidget(myTab, font, xpos,
|
myHidpiWidget = new CheckboxWidget(myTab, font, xpos,
|
||||||
ypos + 1, "HiDPI mode (*)");
|
ypos + 1, "HiDPI mode (*)");
|
||||||
|
myHidpiWidget->setToolTip("Scale the UI by a factor of two when enabled.");
|
||||||
|
|
||||||
wid.push_back(myHidpiWidget);
|
wid.push_back(myHidpiWidget);
|
||||||
|
|
||||||
// Dialog position
|
// Dialog position
|
||||||
|
@ -126,6 +128,7 @@ UIDialog::UIDialog(OSystem& osystem, DialogContainer& parent,
|
||||||
// Center window (in windowed mode)
|
// Center window (in windowed mode)
|
||||||
xpos = myHidpiWidget->getLeft();
|
xpos = myHidpiWidget->getLeft();
|
||||||
myCenter = new CheckboxWidget(myTab, _font, xpos, ypos + 1, "Center windows");
|
myCenter = new CheckboxWidget(myTab, _font, xpos, ypos + 1, "Center windows");
|
||||||
|
myCenter->setToolTip("Check to center all windows, else remember last position.");
|
||||||
wid.push_back(myCenter);
|
wid.push_back(myCenter);
|
||||||
|
|
||||||
// Delay between quick-selecting characters in ListWidget
|
// Delay between quick-selecting characters in ListWidget
|
||||||
|
@ -138,6 +141,8 @@ UIDialog::UIDialog(OSystem& osystem, DialogContainer& parent,
|
||||||
myListDelaySlider->setMaxValue(1000);
|
myListDelaySlider->setMaxValue(1000);
|
||||||
myListDelaySlider->setStepValue(50);
|
myListDelaySlider->setStepValue(50);
|
||||||
myListDelaySlider->setTickmarkIntervals(5);
|
myListDelaySlider->setTickmarkIntervals(5);
|
||||||
|
myListDelaySlider->setToolTip("Set delay between key presses in file lists"
|
||||||
|
" before a search string resets.");
|
||||||
wid.push_back(myListDelaySlider);
|
wid.push_back(myListDelaySlider);
|
||||||
ypos += lineHeight + VGAP;
|
ypos += lineHeight + VGAP;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue