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:
@@ -52,7 +52,7 @@ void ScreenTestFonts::Init()
|
||||
|
||||
txt.SetName( "Text" );
|
||||
SetFont( THEME->GetPathF("", FONT(1)) );
|
||||
SET_XY_AND_ON_COMMAND( txt );
|
||||
LOAD_ALL_COMMANDS_AND_SET_XY_AND_ON_COMMAND( txt );
|
||||
SetText( "Foo" );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user