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:
@@ -135,8 +135,8 @@ void ScreenTextEntry::BeginScreen()
|
||||
ScreenWithMenuElements::BeginScreen();
|
||||
|
||||
m_textQuestion.SetText( g_sQuestion );
|
||||
SET_XY_AND_ON_COMMAND( m_textQuestion );
|
||||
SET_XY_AND_ON_COMMAND( m_textAnswer );
|
||||
LOAD_ALL_COMMANDS_AND_SET_XY_AND_ON_COMMAND( m_textQuestion );
|
||||
LOAD_ALL_COMMANDS_AND_SET_XY_AND_ON_COMMAND( m_textAnswer );
|
||||
|
||||
UpdateAnswerText();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user