use TimerSeconds to move between attract screens

This commit is contained in:
Chris Danford
2005-02-28 04:44:51 +00:00
parent f0d15f7bc3
commit 3a57d2559e
4 changed files with 6 additions and 21 deletions
+4 -2
View File
@@ -3151,7 +3151,7 @@ FooterOnCommand=hidden,0
FooterOffCommand= FooterOffCommand=
StyleIcon=0 StyleIcon=0
MemoryCardIcons=0 MemoryCardIcons=0
TimerSeconds=5 TimerSeconds=6
TimerStealth=1 TimerStealth=1
ForceTimer=1 ForceTimer=1
TimerX= TimerX=
@@ -3298,6 +3298,7 @@ DancePointsZoom=2
[ScreenRanking] [ScreenRanking]
Class=ScreenRanking Class=ScreenRanking
Fallback=ScreenAttract Fallback=ScreenAttract
TimerSeconds=-1
StepsTypesToHide=dance-couple,dance-solo,pump-halfdouble StepsTypesToHide=dance-couple,dance-solo,pump-halfdouble
ShowCategories=1 ShowCategories=1
CoursesToShow=Courses/DDRMAX/NaokiStandard.crs,Courses/DDRMAX/ParanoiaBrothers.crs,Courses/Samples/PlayersBest1-4.crs CoursesToShow=Courses/DDRMAX/NaokiStandard.crs,Courses/DDRMAX/ParanoiaBrothers.crs,Courses/Samples/PlayersBest1-4.crs
@@ -3305,7 +3306,7 @@ ShowAllStepsScores=0
ShowAllCourseScores=0 ShowAllCourseScores=0
DifficultiesToShow=easy,medium,hard,challenge DifficultiesToShow=easy,medium,hard,challenge
NextScreen=ScreenUnlock NextScreen=ScreenUnlock
SecondsPerPage=10 SecondsPerPage=5
PageFadeSeconds=1.0 PageFadeSeconds=1.0
NoScoreName=STEP NoScoreName=STEP
RowSpacingX=0 RowSpacingX=0
@@ -3439,6 +3440,7 @@ NextScreen=ScreenHowToPlay
[ScreenHowToPlay] [ScreenHowToPlay]
Class=ScreenHowToPlay Class=ScreenHowToPlay
Fallback=ScreenAttract Fallback=ScreenAttract
TimerSeconds=25
NextScreen=ScreenDemonstration NextScreen=ScreenDemonstration
SecondsToShow=25 SecondsToShow=25
UseLifeMeterBar=1 UseLifeMeterBar=1
+1 -15
View File
@@ -112,21 +112,6 @@ void ScreenAttract::Update( float fDelta )
{ {
if( IsFirstUpdate() ) if( IsFirstUpdate() )
{ {
// The shared background isn't loaded until the screen is actually
// showing. The background is loaded by the time of the first update.
if( AutoBeginFadingOut() )
{
const Actor &background = *SCREENMAN->m_pSharedBGA;
float fTimeUntilBeginFadingOut = background.GetTweenTimeLeft() - m_Out.GetTweenTimeLeft();
if( fTimeUntilBeginFadingOut < 0 )
{
LOG->Warn( "Screen '%s' Out BGAnimation (%f seconds) is longer than Background BGAnimation (%f seconds); background BGA will be truncated",
m_sName.c_str(), m_Out.GetTweenTimeLeft(), background.GetTweenTimeLeft() );
fTimeUntilBeginFadingOut = 0;
}
this->PostScreenMessage( SM_BeginFadingOut, fTimeUntilBeginFadingOut );
}
if( GAMESTATE->IsTimeToPlayAttractSounds() ) if( GAMESTATE->IsTimeToPlayAttractSounds() )
SOUND->PlayMusic( THEME->GetPathS(m_sName,"music") ); SOUND->PlayMusic( THEME->GetPathS(m_sName,"music") );
else else
@@ -139,6 +124,7 @@ void ScreenAttract::HandleScreenMessage( const ScreenMessage SM )
{ {
switch( SM ) switch( SM )
{ {
case SM_MenuTimer:
case SM_BeginFadingOut: case SM_BeginFadingOut:
if( !m_Out.IsTransitioning() ) if( !m_Out.IsTransitioning() )
m_Out.StartTransitioning( SM_GoToNextScreen ); m_Out.StartTransitioning( SM_GoToNextScreen );
-1
View File
@@ -19,7 +19,6 @@ public:
virtual void HandleScreenMessage( const ScreenMessage SM ); virtual void HandleScreenMessage( const ScreenMessage SM );
protected: protected:
virtual bool AutoBeginFadingOut() const { return true; }
}; };
-2
View File
@@ -36,8 +36,6 @@ public:
void HandleScreenMessage( const ScreenMessage SM ); void HandleScreenMessage( const ScreenMessage SM );
protected: protected:
virtual bool AutoBeginFadingOut() const { return false; }
struct PageToShow struct PageToShow
{ {
PageToShow() PageToShow()