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:
@@ -61,7 +61,7 @@ void PaneDisplay::Load( const RString &sMetricsGroup, PlayerNumber pn )
|
||||
|
||||
m_sprPaneUnder.Load( THEME->GetPathG(sMetricsGroup,ssprintf("under p%i",pn+1)) );
|
||||
m_sprPaneUnder->SetName( "Under" );
|
||||
ActorUtil::OnCommand( m_sprPaneUnder, sMetricsGroup );
|
||||
ActorUtil::LoadAllCommandsAndOnCommand( m_sprPaneUnder, sMetricsGroup );
|
||||
this->AddChild( m_sprPaneUnder );
|
||||
|
||||
EMPTY_MACHINE_HIGH_SCORE_NAME.Load( sMetricsGroup, "EmptyMachineHighScoreName" );
|
||||
|
||||
Reference in New Issue
Block a user