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:
@@ -24,7 +24,7 @@ void ScreenPlayerOptions::Init()
|
||||
{
|
||||
m_sprDisqualify[p].Load( THEME->GetPathG(m_sName,"disqualify") );
|
||||
m_sprDisqualify[p]->SetName( ssprintf("DisqualifyP%i",p+1) );
|
||||
SET_XY( m_sprDisqualify[p] );
|
||||
LOAD_ALL_COMMANDS_AND_SET_XY( m_sprDisqualify[p] );
|
||||
m_sprDisqualify[p]->SetVisible( false ); // unhide later if handicapping options are discovered
|
||||
m_sprDisqualify[p]->SetDrawOrder( 2 );
|
||||
m_framePage.AddChild( m_sprDisqualify[p] );
|
||||
|
||||
Reference in New Issue
Block a user