One more tweak for hiding story mode icon if it's not available.
Now it should work properly, sorry for the mess.
This commit is contained in:
parent
d339d9acef
commit
21cb853079
@ -87,14 +87,14 @@ void MainMenuScreen::loadedFromFile()
|
||||
LabelWidget* w = getWidget<LabelWidget>("info_addons");
|
||||
w->setScrollSpeed(15);
|
||||
|
||||
IconButtonWidget* iw = getWidget<IconButtonWidget>("story");
|
||||
assert(iw != NULL);
|
||||
RibbonWidget* rw_top = getWidget<RibbonWidget>("menu_toprow");
|
||||
assert(rw_top != NULL);
|
||||
|
||||
if (track_manager->getTrack("overworld") == NULL ||
|
||||
track_manager->getTrack("introcutscene") == NULL ||
|
||||
track_manager->getTrack("introcutscene2") == NULL)
|
||||
{
|
||||
iw->setVisible(false);
|
||||
rw_top->removeChildNamed("story");
|
||||
}
|
||||
|
||||
#if DEBUG_MENU_ITEM != 1
|
||||
|
Loading…
x
Reference in New Issue
Block a user