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:
Chris Danford
2007-02-19 09:30:07 +00:00
parent d72ebfa33e
commit 599db61b62
42 changed files with 236 additions and 236 deletions
+3 -3
View File
@@ -33,9 +33,9 @@ void TextBanner::Load( RString sType )
THREE_LINES_SUBTITLE_COMMAND .Load(sType,"ThreeLinesSubtitleCommand");
THREE_LINES_ARTIST_COMMAND .Load(sType,"ThreeLinesArtistCommand");
ActorUtil::SetXYAndOnCommand( m_textTitle, sType );
ActorUtil::SetXYAndOnCommand( m_textSubTitle, sType );
ActorUtil::SetXYAndOnCommand( m_textArtist, sType );
ActorUtil::LoadAllCommandsAndSetXYAndOnCommand( m_textTitle, sType );
ActorUtil::LoadAllCommandsAndSetXYAndOnCommand( m_textSubTitle, sType );
ActorUtil::LoadAllCommandsAndSetXYAndOnCommand( m_textArtist, sType );
}
TextBanner::TextBanner()