clean up strange command code
This commit is contained in:
@@ -129,8 +129,7 @@ float HighScoreWheel::Scroll()
|
|||||||
}
|
}
|
||||||
|
|
||||||
REGISTER_SCREEN_CLASS( ScreenNameEntryTraditional );
|
REGISTER_SCREEN_CLASS( ScreenNameEntryTraditional );
|
||||||
ScreenNameEntryTraditional::ScreenNameEntryTraditional():
|
ScreenNameEntryTraditional::ScreenNameEntryTraditional()
|
||||||
CHANGE_COMMAND("stoptweening;decelerate,.12")
|
|
||||||
{
|
{
|
||||||
if( PREFSMAN->m_bScreenTestMode )
|
if( PREFSMAN->m_bScreenTestMode )
|
||||||
{
|
{
|
||||||
@@ -471,7 +470,7 @@ void ScreenNameEntryTraditional::PositionCharsAndCursor( int pn )
|
|||||||
const bool bHidden = ( iPos < iFirst || iPos > iLast );
|
const bool bHidden = ( iPos < iFirst || iPos > iLast );
|
||||||
const int iActualPos = clamp( iPos, iFirst-1, iLast+1 );
|
const int iActualPos = clamp( iPos, iFirst-1, iLast+1 );
|
||||||
|
|
||||||
bt->RunCommands( CHANGE_COMMAND );
|
bt->PlayCommand( "Change" );
|
||||||
bt->SetX( iActualPos * ALPHABET_GAP_X );
|
bt->SetX( iActualPos * ALPHABET_GAP_X );
|
||||||
bt->SetDiffuseAlpha( bHidden? 0.0f:1.0f );
|
bt->SetDiffuseAlpha( bHidden? 0.0f:1.0f );
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -105,8 +105,6 @@ private:
|
|||||||
wstring m_sSelection[NUM_PLAYERS];
|
wstring m_sSelection[NUM_PLAYERS];
|
||||||
bool m_bStillEnteringName[NUM_PLAYERS];
|
bool m_bStillEnteringName[NUM_PLAYERS];
|
||||||
bool m_bGoToNextScreenWhenCardsRemoved;
|
bool m_bGoToNextScreenWhenCardsRemoved;
|
||||||
|
|
||||||
ActorCommands CHANGE_COMMAND;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user