add graphic for ScreenPlayerOptions CancelAll

This commit is contained in:
Chris Danford
2004-03-13 18:15:50 +00:00
parent 5bb3804be8
commit bb8ae37aab
5 changed files with 35 additions and 9 deletions
+7
View File
@@ -3902,6 +3902,13 @@ Line13=Steps
Line14=Characters
Line15=SaveToProfile
CancelAllP1X=
CancelAllP1Y=
CancelAllP1OnCommand=
CancelAllP2X=
CancelAllP2Y=
CancelAllP2OnCommand=
[ScreenRaveOptions]
PrevScreen=ScreenSelectMusic
NextScreen=ScreenStage
+11
View File
@@ -238,3 +238,14 @@ void UtilCommand( Actor& actor, CString sClassName, CString sCommandName )
actor.Command( THEME->GetMetric(sClassName,actor.GetID()+sCommandName+"Command") );
}
void AutoActor::Load( CString sPath )
{
Unload();
m_pActor = MakeActor( sPath );
}
void AutoActor::LoadAndSetName( CString sScreenName, CString sActorName )
{
Load( THEME->GetPathG(sScreenName,sActorName) );
m_pActor->SetName( sActorName );
}
+2 -5
View File
@@ -60,11 +60,8 @@ public:
Actor *operator->() { return m_pActor; }
void Unload() { if(m_pActor) { delete m_pActor; m_pActor=NULL; } }
bool IsLoaded() const { return m_pActor != NULL; }
void Load( CString sPath )
{
Unload();
m_pActor = MakeActor( sPath );
}
void Load( CString sPath );
void LoadAndSetName( CString sScreenName, CString sActorName );
protected:
Actor* m_pActor;
+9
View File
@@ -53,6 +53,13 @@ ScreenPlayerOptions::ScreenPlayerOptions( CString sClassName ) :
SOUND->PlayOnceFromDir( ANNOUNCER->GetPathTo("player options intro") );
FOREACH_HumanPlayer( pn )
{
m_sprCancelAll[pn].LoadAndSetName( "ScreenPlayerOptions", ssprintf("CancelAllP%d",pn+1) );
SET_XY_AND_ON_COMMAND( m_sprCancelAll[pn] );
this->AddChild( m_sprCancelAll[pn] );
}
UpdateDisqualified();
}
@@ -122,6 +129,8 @@ void ScreenPlayerOptions::Input( const DeviceInput& DeviceI, const InputEventTyp
GAMESTATE->m_PlayerOptions[pn].Init();
GAMESTATE->m_PlayerOptions[pn].FromString( PREFSMAN->m_sDefaultModifiers );
UtilCommand( m_sprCancelAll[pn], m_sName, "Show" );
this->ImportOptions();
this->PositionUnderlines();
}
+6 -4
View File
@@ -29,10 +29,12 @@ private:
void UpdateDisqualified();
bool m_bAcceptedChoices;
bool m_bGoToOptions;
bool m_bAskOptionsMessage;
Sprite m_sprOptionsMessage;
bool m_bAcceptedChoices;
bool m_bGoToOptions;
bool m_bAskOptionsMessage;
Sprite m_sprOptionsMessage;
AutoActor m_sprCancelAll[NUM_PLAYERS];
};