diff --git a/src/guiengine/skin.cpp b/src/guiengine/skin.cpp index ad77c23b8..c917eddf3 100644 --- a/src/guiengine/skin.cpp +++ b/src/guiengine/skin.cpp @@ -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 // ---------------------------------------------------------------------------- diff --git a/src/states_screens/options_screen_ui.cpp b/src/states_screens/options_screen_ui.cpp index f1c2e8728..7789226d1 100644 --- a/src/states_screens/options_screen_ui.cpp +++ b/src/states_screens/options_screen_ui.cpp @@ -151,6 +151,7 @@ void OptionsScreenUI::init() CheckBoxWidget* difficulty = getWidget("perPlayerDifficulty"); assert( difficulty != NULL ); difficulty->setState( UserConfigParams::m_per_player_difficulty ); + difficulty->setTooltip(_("Handicap stronger players in the kart selection")); CheckBoxWidget* show_login = getWidget("show-login"); assert( show_login!= NULL );