Pass ActorCommand structures to Actor instead of unparsed command strings.
This way, we can potentially do the parsing early and not parse inside of Actor as the command is executing.
This commit is contained in:
@@ -411,25 +411,28 @@ void ScreenEz2SelectMusic::MenuBack( PlayerNumber pn )
|
||||
|
||||
void ScreenEz2SelectMusic::TweenOffScreen()
|
||||
{
|
||||
m_MusicBannerWheel.Command( "linear,0.5;zoomy,0" );
|
||||
m_PumpDifficultyCircle.Command( "Linear,1;DiffuseAlpha,0" );
|
||||
m_Guide.Command( "Linear,1;DiffuseAlpha,0" );
|
||||
m_PumpDifficultyRating.Command( "Linear,1;DiffuseAlpha,0" );
|
||||
m_Guide.Command( "Linear,1;DiffuseAlpha,0" );
|
||||
m_ChoiceListFrame.Command( "Linear,1;DiffuseAlpha,0" );
|
||||
m_ChoiceListHighlight.Command( "Linear,1;DiffuseAlpha,0" );
|
||||
m_CurrentGroup.Command( "Linear,1;DiffuseAlpha,0" );
|
||||
m_CurrentTitle.Command( "Linear,1;DiffuseAlpha,0" );
|
||||
m_CurrentArtist.Command( "Linear,1;DiffuseAlpha,0" );
|
||||
static const ActorCommands cmds = ParseActorCommands("linear,0.5;zoomy,0");
|
||||
m_MusicBannerWheel.Command( cmds );
|
||||
|
||||
static const ActorCommands cmds2 = ParseActorCommands("Linear,1;DiffuseAlpha,0");
|
||||
m_PumpDifficultyCircle.Command( cmds2 );
|
||||
m_Guide.Command( cmds2 );
|
||||
m_PumpDifficultyRating.Command( cmds2 );
|
||||
m_Guide.Command( cmds2 );
|
||||
m_ChoiceListFrame.Command( cmds2 );
|
||||
m_ChoiceListHighlight.Command( cmds2 );
|
||||
m_CurrentGroup.Command( cmds2 );
|
||||
m_CurrentTitle.Command( cmds2 );
|
||||
m_CurrentArtist.Command( cmds2 );
|
||||
//This should be fixed and changed to OFF_COMMAND
|
||||
|
||||
for(int i=0; i<NUM_PLAYERS; i++)
|
||||
{
|
||||
m_SpeedIcon[i].Command( "Linear,1;DiffuseAlpha,0" );
|
||||
m_MirrorIcon[i].Command( "Linear,1;DiffuseAlpha,0" );
|
||||
m_ShuffleIcon[i].Command( "Linear,1;DiffuseAlpha,0" );
|
||||
m_HiddenIcon[i].Command( "Linear,1;DiffuseAlpha,0" );
|
||||
m_VanishIcon[i].Command( "Linear,1;DiffuseAlpha,0" );
|
||||
m_SpeedIcon[i].Command( cmds2 );
|
||||
m_MirrorIcon[i].Command( cmds2 );
|
||||
m_ShuffleIcon[i].Command( cmds2 );
|
||||
m_HiddenIcon[i].Command( cmds2 );
|
||||
m_VanishIcon[i].Command( cmds2 );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user