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:
@@ -22,7 +22,7 @@ void ScreenTestLights::Init()
|
||||
m_textInputs.SetName( "Text" );
|
||||
m_textInputs.LoadFromFont( THEME->GetPathF("Common","normal") );
|
||||
m_textInputs.SetText( "" );
|
||||
SET_XY_AND_ON_COMMAND( m_textInputs );
|
||||
LOAD_ALL_COMMANDS_AND_SET_XY_AND_ON_COMMAND( m_textInputs );
|
||||
this->AddChild( &m_textInputs );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user