add graphic for ScreenPlayerOptions CancelAll
This commit is contained in:
@@ -3902,6 +3902,13 @@ Line13=Steps
|
|||||||
Line14=Characters
|
Line14=Characters
|
||||||
Line15=SaveToProfile
|
Line15=SaveToProfile
|
||||||
|
|
||||||
|
CancelAllP1X=
|
||||||
|
CancelAllP1Y=
|
||||||
|
CancelAllP1OnCommand=
|
||||||
|
CancelAllP2X=
|
||||||
|
CancelAllP2Y=
|
||||||
|
CancelAllP2OnCommand=
|
||||||
|
|
||||||
[ScreenRaveOptions]
|
[ScreenRaveOptions]
|
||||||
PrevScreen=ScreenSelectMusic
|
PrevScreen=ScreenSelectMusic
|
||||||
NextScreen=ScreenStage
|
NextScreen=ScreenStage
|
||||||
|
|||||||
@@ -238,3 +238,14 @@ void UtilCommand( Actor& actor, CString sClassName, CString sCommandName )
|
|||||||
actor.Command( THEME->GetMetric(sClassName,actor.GetID()+sCommandName+"Command") );
|
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 );
|
||||||
|
}
|
||||||
|
|||||||
@@ -60,11 +60,8 @@ public:
|
|||||||
Actor *operator->() { return m_pActor; }
|
Actor *operator->() { return m_pActor; }
|
||||||
void Unload() { if(m_pActor) { delete m_pActor; m_pActor=NULL; } }
|
void Unload() { if(m_pActor) { delete m_pActor; m_pActor=NULL; } }
|
||||||
bool IsLoaded() const { return m_pActor != NULL; }
|
bool IsLoaded() const { return m_pActor != NULL; }
|
||||||
void Load( CString sPath )
|
void Load( CString sPath );
|
||||||
{
|
void LoadAndSetName( CString sScreenName, CString sActorName );
|
||||||
Unload();
|
|
||||||
m_pActor = MakeActor( sPath );
|
|
||||||
}
|
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
Actor* m_pActor;
|
Actor* m_pActor;
|
||||||
|
|||||||
@@ -53,6 +53,13 @@ ScreenPlayerOptions::ScreenPlayerOptions( CString sClassName ) :
|
|||||||
|
|
||||||
SOUND->PlayOnceFromDir( ANNOUNCER->GetPathTo("player options intro") );
|
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();
|
UpdateDisqualified();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -122,6 +129,8 @@ void ScreenPlayerOptions::Input( const DeviceInput& DeviceI, const InputEventTyp
|
|||||||
GAMESTATE->m_PlayerOptions[pn].Init();
|
GAMESTATE->m_PlayerOptions[pn].Init();
|
||||||
GAMESTATE->m_PlayerOptions[pn].FromString( PREFSMAN->m_sDefaultModifiers );
|
GAMESTATE->m_PlayerOptions[pn].FromString( PREFSMAN->m_sDefaultModifiers );
|
||||||
|
|
||||||
|
UtilCommand( m_sprCancelAll[pn], m_sName, "Show" );
|
||||||
|
|
||||||
this->ImportOptions();
|
this->ImportOptions();
|
||||||
this->PositionUnderlines();
|
this->PositionUnderlines();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -29,10 +29,12 @@ private:
|
|||||||
|
|
||||||
void UpdateDisqualified();
|
void UpdateDisqualified();
|
||||||
|
|
||||||
bool m_bAcceptedChoices;
|
bool m_bAcceptedChoices;
|
||||||
bool m_bGoToOptions;
|
bool m_bGoToOptions;
|
||||||
bool m_bAskOptionsMessage;
|
bool m_bAskOptionsMessage;
|
||||||
Sprite m_sprOptionsMessage;
|
Sprite m_sprOptionsMessage;
|
||||||
|
|
||||||
|
AutoActor m_sprCancelAll[NUM_PLAYERS];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user