Add tooltip to explain usage of per-player handicaps
This commit is contained in:
parent
26b38a3afe
commit
6805ead6e6
@ -1609,6 +1609,12 @@ void Skin::drawCheckBox(const core::recti &rect, Widget* widget, bool focused)
|
||||
0 /* no clipping */, 0,
|
||||
true /* alpha */);
|
||||
}
|
||||
|
||||
if (focused && widget->hasTooltip())
|
||||
{
|
||||
m_tooltip_at_mouse.push_back(true);
|
||||
m_tooltips.push_back(widget);
|
||||
}
|
||||
} // drawCheckBox
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
@ -151,6 +151,7 @@ void OptionsScreenUI::init()
|
||||
CheckBoxWidget* difficulty = getWidget<CheckBoxWidget>("perPlayerDifficulty");
|
||||
assert( difficulty != NULL );
|
||||
difficulty->setState( UserConfigParams::m_per_player_difficulty );
|
||||
difficulty->setTooltip(_("Handicap stronger players in the kart selection"));
|
||||
|
||||
CheckBoxWidget* show_login = getWidget<CheckBoxWidget>("show-login");
|
||||
assert( show_login!= NULL );
|
||||
|
Loading…
Reference in New Issue
Block a user