Always call LoadAllCommands explicitly.
The hack to LoadAllCommands when playing a command was leading to weird interactions: If a theme element contained an OnCommand, it would cause the rest of the commands defined in metrics to not be loaded.
This commit is contained in:
@@ -30,7 +30,7 @@ void MenuTimer::Load()
|
||||
{
|
||||
m_text[i].LoadFromFont( THEME->GetPathF("MenuTimer","numbers") );
|
||||
m_text[i].SetName( ssprintf("Text%d",i+1) );
|
||||
ActorUtil::OnCommand( m_text[i], "MenuTimer" );
|
||||
ActorUtil::LoadAllCommandsAndOnCommand( m_text[i], "MenuTimer" );
|
||||
this->AddChild( &m_text[i] );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user