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:
@@ -14,7 +14,7 @@ void ScreenStatsOverlay::Init()
|
||||
|
||||
m_textStats.LoadFromFont( THEME->GetPathF(m_sName,"stats") );
|
||||
m_textStats.SetName( "Stats" );
|
||||
SET_XY_AND_ON_COMMAND( m_textStats );
|
||||
LOAD_ALL_COMMANDS_AND_SET_XY_AND_ON_COMMAND( m_textStats );
|
||||
this->AddChild( &m_textStats );
|
||||
|
||||
/* "Was that a skip?" This displays a message when an update takes
|
||||
|
||||
Reference in New Issue
Block a user