Disabled 'race gui style' button while in race
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8091 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
c91285765e
commit
51850f3ed6
@ -125,6 +125,11 @@ void OptionsScreenUI::init()
|
||||
CheckBoxWidget* min_gui = getWidget<CheckBoxWidget>("minimal-racegui");
|
||||
assert( min_gui != NULL );
|
||||
min_gui->setState( UserConfigParams::m_minimal_race_gui);
|
||||
if (StateManager::get()->getGameState() == GUIEngine::INGAME_MENU)
|
||||
min_gui->setDeactivated();
|
||||
else
|
||||
min_gui->setActivated();
|
||||
|
||||
|
||||
// --- select the right skin in the spinner
|
||||
bool currSkinFound = false;
|
||||
@ -146,7 +151,6 @@ void OptionsScreenUI::init()
|
||||
skinSelector->setValue(0);
|
||||
GUIEngine::reloadSkin();
|
||||
}
|
||||
|
||||
} // init
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user