Always call LoadAllCommands explicitly.
The hack to LoadAllCommands when playing a command was leading to weird interactions: If a theme element contained an OnCommand, it would cause the rest of the commands defined in metrics to not be loaded.
This commit is contained in:
@@ -436,14 +436,6 @@ void ActorUtil::SetXY( Actor& actor, const RString &sType )
|
|||||||
{
|
{
|
||||||
ASSERT( !actor.GetName().empty() );
|
ASSERT( !actor.GetName().empty() );
|
||||||
|
|
||||||
/*
|
|
||||||
* Hack: We normally SET_XY in Init(), and run ON_COMMAND in BeginScreen. We
|
|
||||||
* want to load the actor's commands in Init(), since that takes long enough
|
|
||||||
* to skip. So, run LoadAllCommands here if it hasn't been run yet.
|
|
||||||
*/
|
|
||||||
if( !actor.HasCommand("On") ) // this actor hasn't loaded commands yet
|
|
||||||
LoadAllCommands( actor, sType );
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Hack: This is run after InitCommand, and InitCommand might set X/Y. If
|
* Hack: This is run after InitCommand, and InitCommand might set X/Y. If
|
||||||
* these are both 0, leave the actor where it is. If InitCommand doesn't,
|
* these are both 0, leave the actor where it is. If InitCommand doesn't,
|
||||||
@@ -465,41 +457,6 @@ void ActorUtil::LoadCommandFromName( Actor& actor, const RString &sType, const R
|
|||||||
actor.AddCommand( sCommandName, THEME->GetMetricA(sType,sName+sCommandName+"Command") );
|
actor.AddCommand( sCommandName, THEME->GetMetricA(sType,sName+sCommandName+"Command") );
|
||||||
}
|
}
|
||||||
|
|
||||||
void ActorUtil::LoadAndPlayCommand( Actor& actor, const RString &sType, const RString &sCommandName )
|
|
||||||
{
|
|
||||||
// HACK: It's very often that we command things to TweenOffScreen
|
|
||||||
// that we aren't drawing. We know that an Actor is not being
|
|
||||||
// used if its name is blank. So, do nothing on Actors with a blank name.
|
|
||||||
// (Do "playcommand" anyway; BGAs often have no name.)
|
|
||||||
if( sCommandName=="Off" && actor.GetName().empty() )
|
|
||||||
return;
|
|
||||||
|
|
||||||
ASSERT_M(
|
|
||||||
!actor.GetName().empty(),
|
|
||||||
ssprintf("!actor.GetName().empty() ('%s', '%s')", sType.c_str(), sCommandName.c_str())
|
|
||||||
);
|
|
||||||
ASSERT_M(
|
|
||||||
!sType.empty(),
|
|
||||||
ssprintf("!sType.empty() ('%s', '%s')", sType.c_str(), sCommandName.c_str())
|
|
||||||
);
|
|
||||||
|
|
||||||
if( !actor.HasCommand(sCommandName ) ) // this actor hasn't loaded commands yet
|
|
||||||
LoadAllCommands( actor, sType );
|
|
||||||
|
|
||||||
// If we didn't load the command in LoadAllCommands, load the requested command
|
|
||||||
// explicitly. The metric is missing, and ThemeManager will prompt.
|
|
||||||
if( !actor.HasCommand(sCommandName) )
|
|
||||||
{
|
|
||||||
// If this metric exists and we didn't load it in LoadAllCommands, then
|
|
||||||
// LoadAllCommands has a bug.
|
|
||||||
DEBUG_ASSERT( !THEME->HasMetric(sType,actor.GetName()+sCommandName+"Command") );
|
|
||||||
|
|
||||||
LoadCommand( actor, sType, sCommandName );
|
|
||||||
}
|
|
||||||
|
|
||||||
actor.PlayCommand( sCommandName );
|
|
||||||
}
|
|
||||||
|
|
||||||
void ActorUtil::LoadAllCommands( Actor& actor, const RString &sType )
|
void ActorUtil::LoadAllCommands( Actor& actor, const RString &sType )
|
||||||
{
|
{
|
||||||
LoadAllCommandsFromName( actor, sType, actor.GetName() );
|
LoadAllCommandsFromName( actor, sType, actor.GetName() );
|
||||||
@@ -513,7 +470,7 @@ void ActorUtil::LoadAllCommandsFromName( Actor& actor, const RString &sType, con
|
|||||||
FOREACHS_CONST( RString, vsValueNames, v )
|
FOREACHS_CONST( RString, vsValueNames, v )
|
||||||
{
|
{
|
||||||
const RString &sv = *v;
|
const RString &sv = *v;
|
||||||
static RString sEnding = "Command";
|
static const RString sEnding = "Command";
|
||||||
if( EndsWith(sv,sEnding) )
|
if( EndsWith(sv,sEnding) )
|
||||||
{
|
{
|
||||||
RString sCommandName( sv.begin()+sName.size(), sv.end()-sEnding.size() );
|
RString sCommandName( sv.begin()+sName.size(), sv.end()-sEnding.size() );
|
||||||
|
|||||||
+52
-10
@@ -45,25 +45,63 @@ namespace ActorUtil
|
|||||||
|
|
||||||
apActorCommands ParseActorCommands( const RString &sCommands, const RString &sName = "" );
|
apActorCommands ParseActorCommands( const RString &sCommands, const RString &sName = "" );
|
||||||
void SetXY( Actor& actor, const RString &sType );
|
void SetXY( Actor& actor, const RString &sType );
|
||||||
|
inline void PlayCommand( Actor& actor, const RString &sCommandName ) { actor.PlayCommand( sCommandName ); }
|
||||||
|
inline void OnCommand( Actor& actor )
|
||||||
|
{
|
||||||
|
ASSERT( actor.HasCommand("On") );
|
||||||
|
actor.PlayCommand("On");
|
||||||
|
}
|
||||||
|
inline void OffCommand( Actor& actor )
|
||||||
|
{
|
||||||
|
// HACK: It's very often that we command things to TweenOffScreen
|
||||||
|
// that we aren't drawing. We know that an Actor is not being
|
||||||
|
// used if its name is blank. So, do nothing on Actors with a blank name.
|
||||||
|
// (Do "playcommand" anyway; BGAs often have no name.)
|
||||||
|
if( actor.GetName().empty() )
|
||||||
|
return;
|
||||||
|
ASSERT( actor.HasCommand("Off") );
|
||||||
|
actor.PlayCommand("Off");
|
||||||
|
}
|
||||||
|
|
||||||
void LoadCommand( Actor& actor, const RString &sType, const RString &sCommandName );
|
void LoadCommand( Actor& actor, const RString &sType, const RString &sCommandName );
|
||||||
void LoadCommandFromName( Actor& actor, const RString &sType, const RString &sCommandName, const RString &sName );
|
void LoadCommandFromName( Actor& actor, const RString &sType, const RString &sCommandName, const RString &sName );
|
||||||
void LoadAndPlayCommand( Actor& actor, const RString &sType, const RString &sCommandName );
|
|
||||||
void LoadAllCommands( Actor& actor, const RString &sType );
|
void LoadAllCommands( Actor& actor, const RString &sType );
|
||||||
void LoadAllCommandsFromName( Actor& actor, const RString &sType, const RString &sName );
|
void LoadAllCommandsFromName( Actor& actor, const RString &sType, const RString &sName );
|
||||||
inline void OnCommand( Actor& actor, const RString &sType ) { LoadAndPlayCommand( actor, sType, "On" ); }
|
|
||||||
inline void OffCommand( Actor& actor, const RString &sType ) { LoadAndPlayCommand( actor, sType, "Off" ); }
|
inline void LoadAllCommandsAndSetXY( Actor& actor, const RString &sType )
|
||||||
|
{
|
||||||
|
LoadAllCommands( actor, sType );
|
||||||
|
SetXY( actor, sType );
|
||||||
|
}
|
||||||
|
inline void LoadAllCommandsAndOnCommand( Actor& actor, const RString &sType )
|
||||||
|
{
|
||||||
|
LoadAllCommands( actor, sType );
|
||||||
|
OnCommand( actor );
|
||||||
|
}
|
||||||
inline void SetXYAndOnCommand( Actor& actor, const RString &sType )
|
inline void SetXYAndOnCommand( Actor& actor, const RString &sType )
|
||||||
{
|
{
|
||||||
SetXY( actor, sType );
|
SetXY( actor, sType );
|
||||||
OnCommand( actor, sType );
|
OnCommand( actor );
|
||||||
|
}
|
||||||
|
inline void LoadAllCommandsAndSetXYAndOnCommand( Actor& actor, const RString &sType )
|
||||||
|
{
|
||||||
|
LoadAllCommands( actor, sType );
|
||||||
|
SetXY( actor, sType );
|
||||||
|
OnCommand( actor );
|
||||||
}
|
}
|
||||||
|
|
||||||
/* convenience */
|
/* convenience */
|
||||||
inline void SetXY( Actor* pActor, const RString &sType ) { SetXY( *pActor, sType ); }
|
inline void SetXY( Actor* pActor, const RString &sType ) { SetXY( *pActor, sType ); }
|
||||||
inline void LoadAndPlayCommand( Actor* pActor, const RString &sType, const RString &sCommandName ) { if(pActor) LoadAndPlayCommand( *pActor, sType, sCommandName ); }
|
inline void PlayCommand( Actor* pActor, const RString &sCommandName ) { if(pActor) pActor->PlayCommand( sCommandName ); }
|
||||||
inline void OnCommand( Actor* pActor, const RString &sType ) { if(pActor) OnCommand( *pActor, sType ); }
|
inline void OnCommand( Actor* pActor ) { if(pActor) ActorUtil::OnCommand( *pActor ); }
|
||||||
inline void OffCommand( Actor* pActor, const RString &sType ) { if(pActor) OffCommand( *pActor, sType ); }
|
inline void OffCommand( Actor* pActor ) { if(pActor) ActorUtil::OffCommand( *pActor ); }
|
||||||
|
|
||||||
|
inline void LoadAllCommands( Actor* pActor, const RString &sType ) { if(pActor) LoadAllCommands( *pActor, sType ); }
|
||||||
|
|
||||||
|
inline void LoadAllCommandsAndSetXY( Actor* pActor, const RString &sType ) { if(pActor) LoadAllCommandsAndSetXY( *pActor, sType ); }
|
||||||
|
inline void LoadAllCommandsAndOnCommand( Actor* pActor, const RString &sType ) { if(pActor) LoadAllCommandsAndOnCommand( *pActor, sType ); }
|
||||||
inline void SetXYAndOnCommand( Actor* pActor, const RString &sType ) { if(pActor) SetXYAndOnCommand( *pActor, sType ); }
|
inline void SetXYAndOnCommand( Actor* pActor, const RString &sType ) { if(pActor) SetXYAndOnCommand( *pActor, sType ); }
|
||||||
|
inline void LoadAllCommandsAndSetXYAndOnCommand( Actor* pActor, const RString &sType ) { if(pActor) LoadAllCommandsAndSetXYAndOnCommand( *pActor, sType ); }
|
||||||
|
|
||||||
// Return a Sprite, BitmapText, or Model depending on the file type
|
// Return a Sprite, BitmapText, or Model depending on the file type
|
||||||
Actor* LoadFromNode( const XNode* pNode, Actor *pParentActor = NULL );
|
Actor* LoadFromNode( const XNode* pNode, Actor *pParentActor = NULL );
|
||||||
@@ -81,10 +119,14 @@ namespace ActorUtil
|
|||||||
};
|
};
|
||||||
|
|
||||||
#define SET_XY( actor ) ActorUtil::SetXY( actor, m_sName )
|
#define SET_XY( actor ) ActorUtil::SetXY( actor, m_sName )
|
||||||
#define ON_COMMAND( actor ) ActorUtil::OnCommand( actor, m_sName )
|
#define ON_COMMAND( actor ) ActorUtil::OnCommand( actor )
|
||||||
#define OFF_COMMAND( actor ) ActorUtil::OffCommand( actor, m_sName )
|
#define OFF_COMMAND( actor ) ActorUtil::OffCommand( actor )
|
||||||
#define SET_XY_AND_ON_COMMAND( actor ) ActorUtil::SetXYAndOnCommand( actor, m_sName )
|
#define SET_XY_AND_ON_COMMAND( actor ) ActorUtil::SetXYAndOnCommand( actor, m_sName )
|
||||||
#define COMMAND( actor, command_name ) ActorUtil::LoadAndPlayCommand( actor, m_sName, command_name )
|
#define COMMAND( actor, command_name ) ActorUtil::PlayCommand( actor, command_name )
|
||||||
|
#define LOAD_ALL_COMMANDS( actor ) ActorUtil::LoadAllCommands( actor, m_sName )
|
||||||
|
#define LOAD_ALL_COMMANDS_AND_SET_XY( actor ) ActorUtil::LoadAllCommandsAndSetXY( actor, m_sName )
|
||||||
|
#define LOAD_ALL_COMMANDS_AND_ON_COMMAND( actor ) ActorUtil::LoadAllCommandsAndOnCommand( actor, m_sName )
|
||||||
|
#define LOAD_ALL_COMMANDS_AND_SET_XY_AND_ON_COMMAND( actor ) ActorUtil::LoadAllCommandsAndSetXYAndOnCommand( actor, m_sName )
|
||||||
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ void CourseEntryDisplay::Load()
|
|||||||
|
|
||||||
m_sprFrame.SetName( "Bar" );
|
m_sprFrame.SetName( "Bar" );
|
||||||
m_sprFrame.Load( THEME->GetPathG("CourseEntryDisplay","bar") );
|
m_sprFrame.Load( THEME->GetPathG("CourseEntryDisplay","bar") );
|
||||||
SET_XY_AND_ON_COMMAND( &m_sprFrame );
|
LOAD_ALL_COMMANDS_AND_SET_XY_AND_ON_COMMAND( &m_sprFrame );
|
||||||
this->AddChild( &m_sprFrame );
|
this->AddChild( &m_sprFrame );
|
||||||
|
|
||||||
this->m_size.x = m_sprFrame.GetUnzoomedWidth();
|
this->m_size.x = m_sprFrame.GetUnzoomedWidth();
|
||||||
@@ -34,12 +34,12 @@ void CourseEntryDisplay::Load()
|
|||||||
|
|
||||||
m_textNumber.SetName( "Number" );
|
m_textNumber.SetName( "Number" );
|
||||||
m_textNumber.LoadFromFont( THEME->GetPathF("CourseEntryDisplay","number") );
|
m_textNumber.LoadFromFont( THEME->GetPathF("CourseEntryDisplay","number") );
|
||||||
SET_XY_AND_ON_COMMAND( &m_textNumber );
|
LOAD_ALL_COMMANDS_AND_SET_XY_AND_ON_COMMAND( &m_textNumber );
|
||||||
this->AddChild( &m_textNumber );
|
this->AddChild( &m_textNumber );
|
||||||
|
|
||||||
m_TextBanner.SetName( "TextBanner" );
|
m_TextBanner.SetName( "TextBanner" );
|
||||||
m_TextBanner.Load( TEXT_BANNER_TYPE );
|
m_TextBanner.Load( TEXT_BANNER_TYPE );
|
||||||
SET_XY_AND_ON_COMMAND( &m_TextBanner );
|
LOAD_ALL_COMMANDS_AND_SET_XY_AND_ON_COMMAND( &m_TextBanner );
|
||||||
/* Load the m_TextBanner now, so any actor commands sent to us will propagate correctly. */
|
/* Load the m_TextBanner now, so any actor commands sent to us will propagate correctly. */
|
||||||
m_TextBanner.LoadFromString( "", "", "", "", "", "" );
|
m_TextBanner.LoadFromString( "", "", "", "", "", "" );
|
||||||
this->AddChild( &m_TextBanner );
|
this->AddChild( &m_TextBanner );
|
||||||
@@ -51,18 +51,18 @@ void CourseEntryDisplay::Load()
|
|||||||
|
|
||||||
m_textFoot[pn].SetName( SEPARATE_COURSE_METERS? ssprintf("FootP%i", pn+1):RString("Foot") );
|
m_textFoot[pn].SetName( SEPARATE_COURSE_METERS? ssprintf("FootP%i", pn+1):RString("Foot") );
|
||||||
m_textFoot[pn].LoadFromTextureAndChars( THEME->GetPathF("CourseEntryDisplay","difficulty"),"10" );
|
m_textFoot[pn].LoadFromTextureAndChars( THEME->GetPathF("CourseEntryDisplay","difficulty"),"10" );
|
||||||
SET_XY_AND_ON_COMMAND( &m_textFoot[pn] );
|
LOAD_ALL_COMMANDS_AND_SET_XY_AND_ON_COMMAND( &m_textFoot[pn] );
|
||||||
this->AddChild( &m_textFoot[pn] );
|
this->AddChild( &m_textFoot[pn] );
|
||||||
|
|
||||||
m_textDifficultyNumber[pn].SetName( SEPARATE_COURSE_METERS? ssprintf("DifficultyP%i", pn+1):RString("Difficulty") );
|
m_textDifficultyNumber[pn].SetName( SEPARATE_COURSE_METERS? ssprintf("DifficultyP%i", pn+1):RString("Difficulty") );
|
||||||
m_textDifficultyNumber[pn].LoadFromFont( THEME->GetPathF("Common","normal") );
|
m_textDifficultyNumber[pn].LoadFromFont( THEME->GetPathF("Common","normal") );
|
||||||
SET_XY_AND_ON_COMMAND( &m_textDifficultyNumber[pn] );
|
LOAD_ALL_COMMANDS_AND_SET_XY_AND_ON_COMMAND( &m_textDifficultyNumber[pn] );
|
||||||
this->AddChild( &m_textDifficultyNumber[pn] );
|
this->AddChild( &m_textDifficultyNumber[pn] );
|
||||||
}
|
}
|
||||||
|
|
||||||
m_textModifiers.SetName( "Modifiers" );
|
m_textModifiers.SetName( "Modifiers" );
|
||||||
m_textModifiers.LoadFromFont( THEME->GetPathF("Common","normal") );
|
m_textModifiers.LoadFromFont( THEME->GetPathF("Common","normal") );
|
||||||
SET_XY_AND_ON_COMMAND( &m_textModifiers );
|
LOAD_ALL_COMMANDS_AND_SET_XY_AND_ON_COMMAND( &m_textModifiers );
|
||||||
this->AddChild( &m_textModifiers );
|
this->AddChild( &m_textModifiers );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -73,7 +73,7 @@ void DifficultyMeter::Load( const RString &sType )
|
|||||||
Feet = "0X";
|
Feet = "0X";
|
||||||
}
|
}
|
||||||
m_textFeet.LoadFromTextureAndChars( THEME->GetPathF(sType,"bar"), Feet );
|
m_textFeet.LoadFromTextureAndChars( THEME->GetPathF(sType,"bar"), Feet );
|
||||||
ActorUtil::SetXYAndOnCommand( m_textFeet, sType );
|
ActorUtil::LoadAllCommandsAndSetXYAndOnCommand( m_textFeet, sType );
|
||||||
this->AddChild( &m_textFeet );
|
this->AddChild( &m_textFeet );
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -81,7 +81,7 @@ void DifficultyMeter::Load( const RString &sType )
|
|||||||
{
|
{
|
||||||
m_Difficulty.Load( THEME->GetPathG(sType,"difficulty") );
|
m_Difficulty.Load( THEME->GetPathG(sType,"difficulty") );
|
||||||
m_Difficulty->SetName( "Difficulty" );
|
m_Difficulty->SetName( "Difficulty" );
|
||||||
ActorUtil::SetXYAndOnCommand( m_Difficulty, sType );
|
ActorUtil::LoadAllCommandsAndSetXYAndOnCommand( m_Difficulty, sType );
|
||||||
this->AddChild( m_Difficulty );
|
this->AddChild( m_Difficulty );
|
||||||
|
|
||||||
// These commands should have been loaded by SetXYAndOnCommand above.
|
// These commands should have been loaded by SetXYAndOnCommand above.
|
||||||
@@ -96,7 +96,7 @@ void DifficultyMeter::Load( const RString &sType )
|
|||||||
{
|
{
|
||||||
m_textMeter.SetName( "Meter" );
|
m_textMeter.SetName( "Meter" );
|
||||||
m_textMeter.LoadFromFont( THEME->GetPathF(sType,"meter") );
|
m_textMeter.LoadFromFont( THEME->GetPathF(sType,"meter") );
|
||||||
ActorUtil::SetXYAndOnCommand( m_textMeter, sType );
|
ActorUtil::LoadAllCommandsAndSetXYAndOnCommand( m_textMeter, sType );
|
||||||
this->AddChild( &m_textMeter );
|
this->AddChild( &m_textMeter );
|
||||||
|
|
||||||
// These commands should have been loaded by SetXYAndOnCommand above.
|
// These commands should have been loaded by SetXYAndOnCommand above.
|
||||||
@@ -111,7 +111,7 @@ void DifficultyMeter::Load( const RString &sType )
|
|||||||
{
|
{
|
||||||
m_textEditDescription.SetName( "EditDescription" );
|
m_textEditDescription.SetName( "EditDescription" );
|
||||||
m_textEditDescription.LoadFromFont( THEME->GetPathF(sType,"EditDescription") );
|
m_textEditDescription.LoadFromFont( THEME->GetPathF(sType,"EditDescription") );
|
||||||
ActorUtil::SetXYAndOnCommand( m_textEditDescription, sType );
|
ActorUtil::LoadAllCommandsAndSetXYAndOnCommand( m_textEditDescription, sType );
|
||||||
this->AddChild( &m_textEditDescription );
|
this->AddChild( &m_textEditDescription );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ FadingBanner::FadingBanner()
|
|||||||
for( int i=0; i<NUM_BANNERS; i++ )
|
for( int i=0; i<NUM_BANNERS; i++ )
|
||||||
{
|
{
|
||||||
m_Banner[i].SetName( "Banner" );
|
m_Banner[i].SetName( "Banner" );
|
||||||
ActorUtil::OnCommand( m_Banner[i], "FadingBanner" );
|
ActorUtil::LoadAllCommandsAndOnCommand( m_Banner[i], "FadingBanner" );
|
||||||
this->AddChild( &m_Banner[i] );
|
this->AddChild( &m_Banner[i] );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ void MenuTimer::Load()
|
|||||||
{
|
{
|
||||||
m_text[i].LoadFromFont( THEME->GetPathF("MenuTimer","numbers") );
|
m_text[i].LoadFromFont( THEME->GetPathF("MenuTimer","numbers") );
|
||||||
m_text[i].SetName( ssprintf("Text%d",i+1) );
|
m_text[i].SetName( ssprintf("Text%d",i+1) );
|
||||||
ActorUtil::OnCommand( m_text[i], "MenuTimer" );
|
ActorUtil::LoadAllCommandsAndOnCommand( m_text[i], "MenuTimer" );
|
||||||
this->AddChild( &m_text[i] );
|
this->AddChild( &m_text[i] );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -80,12 +80,12 @@ MusicWheelItem::MusicWheelItem( RString sType ):
|
|||||||
|
|
||||||
m_textCourse.SetName( "CourseName" );
|
m_textCourse.SetName( "CourseName" );
|
||||||
m_textCourse.LoadFromFont( THEME->GetPathF(sType,"course") );
|
m_textCourse.LoadFromFont( THEME->GetPathF(sType,"course") );
|
||||||
SET_XY_AND_ON_COMMAND( &m_textCourse );
|
LOAD_ALL_COMMANDS_AND_SET_XY_AND_ON_COMMAND( &m_textCourse );
|
||||||
this->AddChild( &m_textCourse );
|
this->AddChild( &m_textCourse );
|
||||||
|
|
||||||
m_textSort.SetName( "Sort" );
|
m_textSort.SetName( "Sort" );
|
||||||
m_textSort.LoadFromFont( THEME->GetPathF(sType,"sort") );
|
m_textSort.LoadFromFont( THEME->GetPathF(sType,"sort") );
|
||||||
SET_XY_AND_ON_COMMAND( &m_textSort );
|
LOAD_ALL_COMMANDS_AND_SET_XY_AND_ON_COMMAND( &m_textSort );
|
||||||
this->AddChild( &m_textSort );
|
this->AddChild( &m_textSort );
|
||||||
|
|
||||||
FOREACH_PlayerNumber( p )
|
FOREACH_PlayerNumber( p )
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ void PaneDisplay::Load( const RString &sMetricsGroup, PlayerNumber pn )
|
|||||||
|
|
||||||
m_sprPaneUnder.Load( THEME->GetPathG(sMetricsGroup,ssprintf("under p%i",pn+1)) );
|
m_sprPaneUnder.Load( THEME->GetPathG(sMetricsGroup,ssprintf("under p%i",pn+1)) );
|
||||||
m_sprPaneUnder->SetName( "Under" );
|
m_sprPaneUnder->SetName( "Under" );
|
||||||
ActorUtil::OnCommand( m_sprPaneUnder, sMetricsGroup );
|
ActorUtil::LoadAllCommandsAndOnCommand( m_sprPaneUnder, sMetricsGroup );
|
||||||
this->AddChild( m_sprPaneUnder );
|
this->AddChild( m_sprPaneUnder );
|
||||||
|
|
||||||
EMPTY_MACHINE_HIGH_SCORE_NAME.Load( sMetricsGroup, "EmptyMachineHighScoreName" );
|
EMPTY_MACHINE_HIGH_SCORE_NAME.Load( sMetricsGroup, "EmptyMachineHighScoreName" );
|
||||||
|
|||||||
@@ -383,14 +383,14 @@ void Player::Init(
|
|||||||
{
|
{
|
||||||
m_pCombo->SetName( "Combo" );
|
m_pCombo->SetName( "Combo" );
|
||||||
m_pCombo->Load( m_pPlayerState, m_pPlayerStageStats );
|
m_pCombo->Load( m_pPlayerState, m_pPlayerStageStats );
|
||||||
ActorUtil::OnCommand( m_pCombo, sType );
|
ActorUtil::LoadAllCommandsAndOnCommand( m_pCombo, sType );
|
||||||
}
|
}
|
||||||
|
|
||||||
if( m_pJudgment )
|
if( m_pJudgment )
|
||||||
{
|
{
|
||||||
m_pJudgment->SetName( "Judgment" );
|
m_pJudgment->SetName( "Judgment" );
|
||||||
m_pJudgment->LoadNormal();
|
m_pJudgment->LoadNormal();
|
||||||
ActorUtil::OnCommand( m_pJudgment, sType );
|
ActorUtil::LoadAllCommandsAndOnCommand( m_pJudgment, sType );
|
||||||
}
|
}
|
||||||
|
|
||||||
// Load HoldJudgments
|
// Load HoldJudgments
|
||||||
|
|||||||
@@ -26,18 +26,18 @@ void ScoreDisplayLifeTime::Init( const PlayerState* pPlayerState, const PlayerSt
|
|||||||
m_sprFrame.Load( THEME->GetPathG(sType,"frame") );
|
m_sprFrame.Load( THEME->GetPathG(sType,"frame") );
|
||||||
m_sprFrame->SetName( "Frame" );
|
m_sprFrame->SetName( "Frame" );
|
||||||
this->AddChild( m_sprFrame );
|
this->AddChild( m_sprFrame );
|
||||||
ActorUtil::OnCommand( m_sprFrame, sType );
|
ActorUtil::LoadAllCommandsAndOnCommand( m_sprFrame, sType );
|
||||||
|
|
||||||
m_textTimeRemaining.LoadFromFont( THEME->GetPathF(sType, "TimeRemaining") );
|
m_textTimeRemaining.LoadFromFont( THEME->GetPathF(sType, "TimeRemaining") );
|
||||||
m_textTimeRemaining.SetName( "TimeRemaining" );
|
m_textTimeRemaining.SetName( "TimeRemaining" );
|
||||||
this->AddChild( &m_textTimeRemaining );
|
this->AddChild( &m_textTimeRemaining );
|
||||||
ActorUtil::OnCommand( m_textTimeRemaining, sType );
|
ActorUtil::LoadAllCommandsAndOnCommand( m_textTimeRemaining, sType );
|
||||||
m_textTimeRemaining.RunCommands( CommonMetrics::PLAYER_COLOR.GetValue(pn) );
|
m_textTimeRemaining.RunCommands( CommonMetrics::PLAYER_COLOR.GetValue(pn) );
|
||||||
|
|
||||||
m_textDeltaSeconds.LoadFromFont( THEME->GetPathF(sType,"DeltaSeconds") );
|
m_textDeltaSeconds.LoadFromFont( THEME->GetPathF(sType,"DeltaSeconds") );
|
||||||
m_textDeltaSeconds.SetName( "DeltaSeconds" );
|
m_textDeltaSeconds.SetName( "DeltaSeconds" );
|
||||||
this->AddChild( &m_textDeltaSeconds );
|
this->AddChild( &m_textDeltaSeconds );
|
||||||
ActorUtil::OnCommand( m_textDeltaSeconds, sType );
|
ActorUtil::LoadAllCommandsAndOnCommand( m_textDeltaSeconds, sType );
|
||||||
|
|
||||||
FOREACH_TapNoteScore( tns )
|
FOREACH_TapNoteScore( tns )
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -18,19 +18,19 @@ void ScreenBookkeeping::Init()
|
|||||||
|
|
||||||
m_textAllTime.LoadFromFont( THEME->GetPathF(m_sName,"AllTime") );
|
m_textAllTime.LoadFromFont( THEME->GetPathF(m_sName,"AllTime") );
|
||||||
m_textAllTime.SetName( "AllTime" );
|
m_textAllTime.SetName( "AllTime" );
|
||||||
SET_XY_AND_ON_COMMAND( m_textAllTime );
|
LOAD_ALL_COMMANDS_AND_SET_XY_AND_ON_COMMAND( m_textAllTime );
|
||||||
this->AddChild( &m_textAllTime );
|
this->AddChild( &m_textAllTime );
|
||||||
|
|
||||||
m_textTitle.LoadFromFont( THEME->GetPathF(m_sName,"title") );
|
m_textTitle.LoadFromFont( THEME->GetPathF(m_sName,"title") );
|
||||||
m_textTitle.SetName( "Title" );
|
m_textTitle.SetName( "Title" );
|
||||||
SET_XY_AND_ON_COMMAND( m_textTitle );
|
LOAD_ALL_COMMANDS_AND_SET_XY_AND_ON_COMMAND( m_textTitle );
|
||||||
this->AddChild( &m_textTitle );
|
this->AddChild( &m_textTitle );
|
||||||
|
|
||||||
for( int i=0; i<NUM_BOOKKEEPING_COLS; i++ )
|
for( int i=0; i<NUM_BOOKKEEPING_COLS; i++ )
|
||||||
{
|
{
|
||||||
m_textData[i].LoadFromFont( THEME->GetPathF(m_sName,"data") );
|
m_textData[i].LoadFromFont( THEME->GetPathF(m_sName,"data") );
|
||||||
m_textData[i].SetName( "Data" );
|
m_textData[i].SetName( "Data" );
|
||||||
SET_XY_AND_ON_COMMAND( m_textData[i] );
|
LOAD_ALL_COMMANDS_AND_SET_XY_AND_ON_COMMAND( m_textData[i] );
|
||||||
float fX = SCALE( i, 0.f, NUM_BOOKKEEPING_COLS-1, SCREEN_LEFT+50, SCREEN_RIGHT-160 );
|
float fX = SCALE( i, 0.f, NUM_BOOKKEEPING_COLS-1, SCREEN_LEFT+50, SCREEN_RIGHT-160 );
|
||||||
m_textData[i].SetX( fX );
|
m_textData[i].SetX( fX );
|
||||||
this->AddChild( &m_textData[i] );
|
this->AddChild( &m_textData[i] );
|
||||||
|
|||||||
@@ -746,18 +746,18 @@ void ScreenEdit::Init()
|
|||||||
m_textInputTips.SetName( "EditHelp" );
|
m_textInputTips.SetName( "EditHelp" );
|
||||||
m_textInputTips.LoadFromFont( THEME->GetPathF("ScreenEdit","EditHelp") );
|
m_textInputTips.LoadFromFont( THEME->GetPathF("ScreenEdit","EditHelp") );
|
||||||
m_textInputTips.SetText( EDIT_HELP_TEXT );
|
m_textInputTips.SetText( EDIT_HELP_TEXT );
|
||||||
SET_XY_AND_ON_COMMAND( m_textInputTips );
|
LOAD_ALL_COMMANDS_AND_SET_XY_AND_ON_COMMAND( m_textInputTips );
|
||||||
this->AddChild( &m_textInputTips );
|
this->AddChild( &m_textInputTips );
|
||||||
|
|
||||||
m_textInfo.SetName( "Info" );
|
m_textInfo.SetName( "Info" );
|
||||||
m_textInfo.LoadFromFont( THEME->GetPathF("ScreenEdit","Info") );
|
m_textInfo.LoadFromFont( THEME->GetPathF("ScreenEdit","Info") );
|
||||||
SET_XY_AND_ON_COMMAND( m_textInfo );
|
LOAD_ALL_COMMANDS_AND_SET_XY_AND_ON_COMMAND( m_textInfo );
|
||||||
this->AddChild( &m_textInfo );
|
this->AddChild( &m_textInfo );
|
||||||
|
|
||||||
m_textPlayRecordHelp.SetName( "PlayRecordHelp" );
|
m_textPlayRecordHelp.SetName( "PlayRecordHelp" );
|
||||||
m_textPlayRecordHelp.LoadFromFont( THEME->GetPathF("ScreenEdit","PlayRecordHelp") );
|
m_textPlayRecordHelp.LoadFromFont( THEME->GetPathF("ScreenEdit","PlayRecordHelp") );
|
||||||
m_textPlayRecordHelp.SetText( PLAY_RECORD_HELP_TEXT );
|
m_textPlayRecordHelp.SetText( PLAY_RECORD_HELP_TEXT );
|
||||||
SET_XY_AND_ON_COMMAND( m_textPlayRecordHelp );
|
LOAD_ALL_COMMANDS_AND_SET_XY_AND_ON_COMMAND( m_textPlayRecordHelp );
|
||||||
this->AddChild( &m_textPlayRecordHelp );
|
this->AddChild( &m_textPlayRecordHelp );
|
||||||
|
|
||||||
m_soundAddNote.Load( THEME->GetPathS("ScreenEdit","AddNote"), true );
|
m_soundAddNote.Load( THEME->GetPathS("ScreenEdit","AddNote"), true );
|
||||||
|
|||||||
@@ -45,13 +45,13 @@ void ScreenEditMenu::Init()
|
|||||||
|
|
||||||
m_textExplanation.SetName( "Explanation" );
|
m_textExplanation.SetName( "Explanation" );
|
||||||
m_textExplanation.LoadFromFont( THEME->GetPathF(m_sName,"explanation") );
|
m_textExplanation.LoadFromFont( THEME->GetPathF(m_sName,"explanation") );
|
||||||
SET_XY( m_textExplanation );
|
LOAD_ALL_COMMANDS_AND_SET_XY( m_textExplanation );
|
||||||
RefreshExplanationText();
|
RefreshExplanationText();
|
||||||
this->AddChild( &m_textExplanation );
|
this->AddChild( &m_textExplanation );
|
||||||
|
|
||||||
m_textNumStepsLoadedFromProfile.SetName( "NumStepsLoadedFromProfile" );
|
m_textNumStepsLoadedFromProfile.SetName( "NumStepsLoadedFromProfile" );
|
||||||
m_textNumStepsLoadedFromProfile.LoadFromFont( THEME->GetPathF(m_sName,"NumStepsLoadedFromProfile") );
|
m_textNumStepsLoadedFromProfile.LoadFromFont( THEME->GetPathF(m_sName,"NumStepsLoadedFromProfile") );
|
||||||
SET_XY_AND_ON_COMMAND( m_textNumStepsLoadedFromProfile );
|
LOAD_ALL_COMMANDS_AND_SET_XY_AND_ON_COMMAND( m_textNumStepsLoadedFromProfile );
|
||||||
RefreshNumStepsLoadedFromProfile();
|
RefreshNumStepsLoadedFromProfile();
|
||||||
this->AddChild( &m_textNumStepsLoadedFromProfile );
|
this->AddChild( &m_textNumStepsLoadedFromProfile );
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -103,7 +103,7 @@ void ScreenEnding::Init()
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
ActorUtil::LoadAllCommands( m_sprRemoveMemoryCard[p], m_sName );
|
ActorUtil::LoadAllCommands( m_sprRemoveMemoryCard[p], m_sName );
|
||||||
SET_XY_AND_ON_COMMAND( m_sprRemoveMemoryCard[p] );
|
LOAD_ALL_COMMANDS_AND_SET_XY_AND_ON_COMMAND( m_sprRemoveMemoryCard[p] );
|
||||||
this->AddChild( &m_sprRemoveMemoryCard[p] );
|
this->AddChild( &m_sprRemoveMemoryCard[p] );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -275,13 +275,13 @@ void ScreenEvaluation::Init()
|
|||||||
m_SmallBanner[i].ScaleToClipped( BANNER_WIDTH, BANNER_HEIGHT );
|
m_SmallBanner[i].ScaleToClipped( BANNER_WIDTH, BANNER_HEIGHT );
|
||||||
m_SmallBanner[i].SetName( ssprintf("SmallBanner%d",i+1) );
|
m_SmallBanner[i].SetName( ssprintf("SmallBanner%d",i+1) );
|
||||||
ActorUtil::LoadAllCommands( m_SmallBanner[i], m_sName );
|
ActorUtil::LoadAllCommands( m_SmallBanner[i], m_sName );
|
||||||
SET_XY( m_SmallBanner[i] );
|
LOAD_ALL_COMMANDS_AND_SET_XY( m_SmallBanner[i] );
|
||||||
this->AddChild( &m_SmallBanner[i] );
|
this->AddChild( &m_SmallBanner[i] );
|
||||||
|
|
||||||
m_sprSmallBannerFrame[i].Load( THEME->GetPathG(m_sName,"banner frame") );
|
m_sprSmallBannerFrame[i].Load( THEME->GetPathG(m_sName,"banner frame") );
|
||||||
m_sprSmallBannerFrame[i]->SetName( ssprintf("SmallBanner%d",i+1) );
|
m_sprSmallBannerFrame[i]->SetName( ssprintf("SmallBanner%d",i+1) );
|
||||||
ActorUtil::LoadAllCommands( *m_sprSmallBannerFrame[i], m_sName );
|
ActorUtil::LoadAllCommands( *m_sprSmallBannerFrame[i], m_sName );
|
||||||
SET_XY( m_sprSmallBannerFrame[i] );
|
LOAD_ALL_COMMANDS_AND_SET_XY( m_sprSmallBannerFrame[i] );
|
||||||
this->AddChild( m_sprSmallBannerFrame[i] );
|
this->AddChild( m_sprSmallBannerFrame[i] );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -294,13 +294,13 @@ void ScreenEvaluation::Init()
|
|||||||
m_LargeBanner.ScaleToClipped( BANNER_WIDTH, BANNER_HEIGHT );
|
m_LargeBanner.ScaleToClipped( BANNER_WIDTH, BANNER_HEIGHT );
|
||||||
m_LargeBanner.SetName( "LargeBanner" );
|
m_LargeBanner.SetName( "LargeBanner" );
|
||||||
ActorUtil::LoadAllCommands( m_LargeBanner, m_sName );
|
ActorUtil::LoadAllCommands( m_LargeBanner, m_sName );
|
||||||
SET_XY( m_LargeBanner );
|
LOAD_ALL_COMMANDS_AND_SET_XY( m_LargeBanner );
|
||||||
this->AddChild( &m_LargeBanner );
|
this->AddChild( &m_LargeBanner );
|
||||||
|
|
||||||
m_sprLargeBannerFrame.Load( THEME->GetPathG(m_sName,"banner frame") );
|
m_sprLargeBannerFrame.Load( THEME->GetPathG(m_sName,"banner frame") );
|
||||||
m_sprLargeBannerFrame->SetName( "LargeBannerFrame" );
|
m_sprLargeBannerFrame->SetName( "LargeBannerFrame" );
|
||||||
ActorUtil::LoadAllCommands( *m_sprLargeBannerFrame, m_sName );
|
ActorUtil::LoadAllCommands( *m_sprLargeBannerFrame, m_sName );
|
||||||
SET_XY( m_sprLargeBannerFrame );
|
LOAD_ALL_COMMANDS_AND_SET_XY( m_sprLargeBannerFrame );
|
||||||
this->AddChild( m_sprLargeBannerFrame );
|
this->AddChild( m_sprLargeBannerFrame );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -317,7 +317,7 @@ void ScreenEvaluation::Init()
|
|||||||
m_DifficultyIcon[p].SetFromSteps( p, GAMESTATE->m_pCurSteps[p] );
|
m_DifficultyIcon[p].SetFromSteps( p, GAMESTATE->m_pCurSteps[p] );
|
||||||
m_DifficultyIcon[p].SetName( ssprintf("DifficultyIconP%d",p+1) );
|
m_DifficultyIcon[p].SetName( ssprintf("DifficultyIconP%d",p+1) );
|
||||||
ActorUtil::LoadAllCommands( m_DifficultyIcon[p], m_sName );
|
ActorUtil::LoadAllCommands( m_DifficultyIcon[p], m_sName );
|
||||||
SET_XY( m_DifficultyIcon[p] );
|
LOAD_ALL_COMMANDS_AND_SET_XY( m_DifficultyIcon[p] );
|
||||||
this->AddChild( &m_DifficultyIcon[p] );
|
this->AddChild( &m_DifficultyIcon[p] );
|
||||||
|
|
||||||
m_DifficultyMeter[p].SetName( ssprintf("DifficultyMeterP%d",p+1) );
|
m_DifficultyMeter[p].SetName( ssprintf("DifficultyMeterP%d",p+1) );
|
||||||
@@ -327,13 +327,13 @@ void ScreenEvaluation::Init()
|
|||||||
else
|
else
|
||||||
m_DifficultyMeter[p].SetFromSteps( GAMESTATE->m_pCurSteps[p] );
|
m_DifficultyMeter[p].SetFromSteps( GAMESTATE->m_pCurSteps[p] );
|
||||||
ActorUtil::LoadAllCommands( m_DifficultyMeter[p], m_sName );
|
ActorUtil::LoadAllCommands( m_DifficultyMeter[p], m_sName );
|
||||||
SET_XY( m_DifficultyMeter[p] );
|
LOAD_ALL_COMMANDS_AND_SET_XY( m_DifficultyMeter[p] );
|
||||||
this->AddChild( &m_DifficultyMeter[p] );
|
this->AddChild( &m_DifficultyMeter[p] );
|
||||||
|
|
||||||
m_textPlayerOptions[p].LoadFromFont( THEME->GetPathF(m_sName,"PlayerOptions") );
|
m_textPlayerOptions[p].LoadFromFont( THEME->GetPathF(m_sName,"PlayerOptions") );
|
||||||
m_textPlayerOptions[p].SetName( ssprintf("PlayerOptionsP%d",p+1) );
|
m_textPlayerOptions[p].SetName( ssprintf("PlayerOptionsP%d",p+1) );
|
||||||
ActorUtil::LoadAllCommands( m_textPlayerOptions[p], m_sName );
|
ActorUtil::LoadAllCommands( m_textPlayerOptions[p], m_sName );
|
||||||
SET_XY( m_textPlayerOptions[p] );
|
LOAD_ALL_COMMANDS_AND_SET_XY( m_textPlayerOptions[p] );
|
||||||
vector<RString> v;
|
vector<RString> v;
|
||||||
GAMESTATE->m_pPlayerState[p]->m_PlayerOptions.GetStage().GetLocalizedMods( v );
|
GAMESTATE->m_pPlayerState[p]->m_PlayerOptions.GetStage().GetLocalizedMods( v );
|
||||||
RString sPO = join( PLAYER_OPTIONS_SEPARATOR, v );
|
RString sPO = join( PLAYER_OPTIONS_SEPARATOR, v );
|
||||||
@@ -353,14 +353,14 @@ void ScreenEvaluation::Init()
|
|||||||
m_sprGradeFrame[p].Load( THEME->GetPathG(m_sName,ssprintf("grade frame p%d",p+1)) );
|
m_sprGradeFrame[p].Load( THEME->GetPathG(m_sName,ssprintf("grade frame p%d",p+1)) );
|
||||||
m_sprGradeFrame[p]->SetName( ssprintf("GradeFrameP%d",p+1) );
|
m_sprGradeFrame[p]->SetName( ssprintf("GradeFrameP%d",p+1) );
|
||||||
ActorUtil::LoadAllCommands( *m_sprGradeFrame[p], m_sName );
|
ActorUtil::LoadAllCommands( *m_sprGradeFrame[p], m_sName );
|
||||||
SET_XY( m_sprGradeFrame[p] );
|
LOAD_ALL_COMMANDS_AND_SET_XY( m_sprGradeFrame[p] );
|
||||||
this->AddChild( m_sprGradeFrame[p] );
|
this->AddChild( m_sprGradeFrame[p] );
|
||||||
|
|
||||||
m_Grades[p].Load( THEME->GetPathG(m_sName,"grades") );
|
m_Grades[p].Load( THEME->GetPathG(m_sName,"grades") );
|
||||||
m_Grades[p].SetGrade( p, grade[p] );
|
m_Grades[p].SetGrade( p, grade[p] );
|
||||||
m_Grades[p].SetName( ssprintf("GradeP%d",p+1) );
|
m_Grades[p].SetName( ssprintf("GradeP%d",p+1) );
|
||||||
ActorUtil::LoadAllCommands( m_Grades[p], m_sName );
|
ActorUtil::LoadAllCommands( m_Grades[p], m_sName );
|
||||||
SET_XY( m_Grades[p] );
|
LOAD_ALL_COMMANDS_AND_SET_XY( m_Grades[p] );
|
||||||
this->AddChild( &m_Grades[p] );
|
this->AddChild( &m_Grades[p] );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -375,7 +375,7 @@ void ScreenEvaluation::Init()
|
|||||||
m_sprPercentFrame[p].Load( THEME->GetPathG(m_sName,ssprintf("percent frame p%d",p+1)) );
|
m_sprPercentFrame[p].Load( THEME->GetPathG(m_sName,ssprintf("percent frame p%d",p+1)) );
|
||||||
m_sprPercentFrame[p]->SetName( ssprintf("PercentFrameP%d",p+1) );
|
m_sprPercentFrame[p]->SetName( ssprintf("PercentFrameP%d",p+1) );
|
||||||
ActorUtil::LoadAllCommands( *m_sprPercentFrame[p], m_sName );
|
ActorUtil::LoadAllCommands( *m_sprPercentFrame[p], m_sName );
|
||||||
SET_XY( m_sprPercentFrame[p] );
|
LOAD_ALL_COMMANDS_AND_SET_XY( m_sprPercentFrame[p] );
|
||||||
this->AddChild( m_sprPercentFrame[p] );
|
this->AddChild( m_sprPercentFrame[p] );
|
||||||
|
|
||||||
/* Use "ScreenEvaluation Percent" for the [metric set], but position and
|
/* Use "ScreenEvaluation Percent" for the [metric set], but position and
|
||||||
@@ -383,7 +383,7 @@ void ScreenEvaluation::Init()
|
|||||||
m_Percent[p].SetName( ssprintf("PercentP%d",p+1) );
|
m_Percent[p].SetName( ssprintf("PercentP%d",p+1) );
|
||||||
m_Percent[p].Load( GAMESTATE->m_pPlayerState[p], &STATSMAN->m_CurStageStats.m_player[p], "ScreenEvaluation Percent", true );
|
m_Percent[p].Load( GAMESTATE->m_pPlayerState[p], &STATSMAN->m_CurStageStats.m_player[p], "ScreenEvaluation Percent", true );
|
||||||
ActorUtil::LoadAllCommands( m_Percent[p], m_sName );
|
ActorUtil::LoadAllCommands( m_Percent[p], m_sName );
|
||||||
SET_XY( m_Percent[p] );
|
LOAD_ALL_COMMANDS_AND_SET_XY( m_Percent[p] );
|
||||||
this->AddChild( &m_Percent[p] );
|
this->AddChild( &m_Percent[p] );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -398,7 +398,7 @@ void ScreenEvaluation::Init()
|
|||||||
m_sprBonusFrame[p].Load( THEME->GetPathG(m_sName,ssprintf("bonus frame p%d",p+1)) );
|
m_sprBonusFrame[p].Load( THEME->GetPathG(m_sName,ssprintf("bonus frame p%d",p+1)) );
|
||||||
m_sprBonusFrame[p]->SetName( ssprintf("BonusFrameP%d",p+1) );
|
m_sprBonusFrame[p]->SetName( ssprintf("BonusFrameP%d",p+1) );
|
||||||
ActorUtil::LoadAllCommands( *m_sprBonusFrame[p], m_sName );
|
ActorUtil::LoadAllCommands( *m_sprBonusFrame[p], m_sName );
|
||||||
SET_XY( m_sprBonusFrame[p] );
|
LOAD_ALL_COMMANDS_AND_SET_XY( m_sprBonusFrame[p] );
|
||||||
this->AddChild( m_sprBonusFrame[p] );
|
this->AddChild( m_sprBonusFrame[p] );
|
||||||
|
|
||||||
for( int r=0; r<NUM_SHOWN_RADAR_CATEGORIES; r++ ) // foreach line
|
for( int r=0; r<NUM_SHOWN_RADAR_CATEGORIES; r++ ) // foreach line
|
||||||
@@ -407,7 +407,7 @@ void ScreenEvaluation::Init()
|
|||||||
m_sprPossibleBar[p][r].SetWidth( m_sprPossibleBar[p][r].GetUnzoomedWidth() * STATSMAN->m_CurStageStats.m_player[p].m_radarPossible[r] );
|
m_sprPossibleBar[p][r].SetWidth( m_sprPossibleBar[p][r].GetUnzoomedWidth() * STATSMAN->m_CurStageStats.m_player[p].m_radarPossible[r] );
|
||||||
m_sprPossibleBar[p][r].SetName( ssprintf("BarPossible%dP%d",r+1,p+1) );
|
m_sprPossibleBar[p][r].SetName( ssprintf("BarPossible%dP%d",r+1,p+1) );
|
||||||
ActorUtil::LoadAllCommands( m_sprPossibleBar[p][r], m_sName );
|
ActorUtil::LoadAllCommands( m_sprPossibleBar[p][r], m_sName );
|
||||||
SET_XY( m_sprPossibleBar[p][r] );
|
LOAD_ALL_COMMANDS_AND_SET_XY( m_sprPossibleBar[p][r] );
|
||||||
this->AddChild( &m_sprPossibleBar[p][r] );
|
this->AddChild( &m_sprPossibleBar[p][r] );
|
||||||
|
|
||||||
m_sprActualBar[p][r].Load( THEME->GetPathG(m_sName,ssprintf("bar actual p%d",p+1)) );
|
m_sprActualBar[p][r].Load( THEME->GetPathG(m_sName,ssprintf("bar actual p%d",p+1)) );
|
||||||
@@ -419,7 +419,7 @@ void ScreenEvaluation::Init()
|
|||||||
|
|
||||||
m_sprActualBar[p][r].SetName( ssprintf("BarActual%dP%d",r+1,p+1) );
|
m_sprActualBar[p][r].SetName( ssprintf("BarActual%dP%d",r+1,p+1) );
|
||||||
ActorUtil::LoadAllCommands( m_sprActualBar[p][r], m_sName );
|
ActorUtil::LoadAllCommands( m_sprActualBar[p][r], m_sName );
|
||||||
SET_XY( m_sprActualBar[p][r] );
|
LOAD_ALL_COMMANDS_AND_SET_XY( m_sprActualBar[p][r] );
|
||||||
|
|
||||||
// .99999 is fairly close to 1.00, so we use that
|
// .99999 is fairly close to 1.00, so we use that
|
||||||
if( STATSMAN->m_CurStageStats.m_player[p].m_radarActual[r] > 0.99999f )
|
if( STATSMAN->m_CurStageStats.m_player[p].m_radarActual[r] > 0.99999f )
|
||||||
@@ -439,7 +439,7 @@ void ScreenEvaluation::Init()
|
|||||||
m_sprSurvivedFrame[p].Load( THEME->GetPathG(m_sName,ssprintf("survived frame p%d",p+1)) );
|
m_sprSurvivedFrame[p].Load( THEME->GetPathG(m_sName,ssprintf("survived frame p%d",p+1)) );
|
||||||
m_sprSurvivedFrame[p]->SetName( ssprintf("SurvivedFrameP%d",p+1) );
|
m_sprSurvivedFrame[p]->SetName( ssprintf("SurvivedFrameP%d",p+1) );
|
||||||
ActorUtil::LoadAllCommands( *m_sprSurvivedFrame[p], m_sName );
|
ActorUtil::LoadAllCommands( *m_sprSurvivedFrame[p], m_sName );
|
||||||
SET_XY( m_sprSurvivedFrame[p] );
|
LOAD_ALL_COMMANDS_AND_SET_XY( m_sprSurvivedFrame[p] );
|
||||||
this->AddChild( m_sprSurvivedFrame[p] );
|
this->AddChild( m_sprSurvivedFrame[p] );
|
||||||
|
|
||||||
m_textSurvivedNumber[p].LoadFromFont( THEME->GetPathF(m_sName, "stage") );
|
m_textSurvivedNumber[p].LoadFromFont( THEME->GetPathF(m_sName, "stage") );
|
||||||
@@ -449,7 +449,7 @@ void ScreenEvaluation::Init()
|
|||||||
m_textSurvivedNumber[p].SetText( ssprintf("%02d", STATSMAN->m_CurStageStats.m_player[p].m_iSongsPassed) );
|
m_textSurvivedNumber[p].SetText( ssprintf("%02d", STATSMAN->m_CurStageStats.m_player[p].m_iSongsPassed) );
|
||||||
m_textSurvivedNumber[p].SetName( ssprintf("SurvivedNumberP%d",p+1) );
|
m_textSurvivedNumber[p].SetName( ssprintf("SurvivedNumberP%d",p+1) );
|
||||||
ActorUtil::LoadAllCommands( m_textSurvivedNumber[p], m_sName );
|
ActorUtil::LoadAllCommands( m_textSurvivedNumber[p], m_sName );
|
||||||
SET_XY( m_textSurvivedNumber[p] );
|
LOAD_ALL_COMMANDS_AND_SET_XY( m_textSurvivedNumber[p] );
|
||||||
this->AddChild( &m_textSurvivedNumber[p] );
|
this->AddChild( &m_textSurvivedNumber[p] );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -464,7 +464,7 @@ void ScreenEvaluation::Init()
|
|||||||
m_sprWinFrame[p].Load( THEME->GetPathG(m_sName,ssprintf("win frame p%d",p+1)) );
|
m_sprWinFrame[p].Load( THEME->GetPathG(m_sName,ssprintf("win frame p%d",p+1)) );
|
||||||
m_sprWinFrame[p]->SetName( ssprintf("WinFrameP%d",p+1) );
|
m_sprWinFrame[p]->SetName( ssprintf("WinFrameP%d",p+1) );
|
||||||
ActorUtil::LoadAllCommands( *m_sprWinFrame[p], m_sName );
|
ActorUtil::LoadAllCommands( *m_sprWinFrame[p], m_sName );
|
||||||
SET_XY( m_sprWinFrame[p] );
|
LOAD_ALL_COMMANDS_AND_SET_XY( m_sprWinFrame[p] );
|
||||||
this->AddChild( m_sprWinFrame[p] );
|
this->AddChild( m_sprWinFrame[p] );
|
||||||
|
|
||||||
m_sprWin[p].Load( THEME->GetPathG(m_sName,ssprintf("win p%d 1x3",p+1)) );
|
m_sprWin[p].Load( THEME->GetPathG(m_sName,ssprintf("win p%d 1x3",p+1)) );
|
||||||
@@ -473,7 +473,7 @@ void ScreenEvaluation::Init()
|
|||||||
m_sprWin[p].SetState( iFrame );
|
m_sprWin[p].SetState( iFrame );
|
||||||
m_sprWin[p].SetName( ssprintf("WinP%d",p+1) );
|
m_sprWin[p].SetName( ssprintf("WinP%d",p+1) );
|
||||||
ActorUtil::LoadAllCommands( m_sprWin[p], m_sName );
|
ActorUtil::LoadAllCommands( m_sprWin[p], m_sName );
|
||||||
SET_XY( m_sprWin[p] );
|
LOAD_ALL_COMMANDS_AND_SET_XY( m_sprWin[p] );
|
||||||
this->AddChild( &m_sprWin[p] );
|
this->AddChild( &m_sprWin[p] );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -495,7 +495,7 @@ void ScreenEvaluation::Init()
|
|||||||
m_sprJudgeLabels[l].SetState( l );
|
m_sprJudgeLabels[l].SetState( l );
|
||||||
m_sprJudgeLabels[l].SetName( JudgeLineToString(l)+"Label" );
|
m_sprJudgeLabels[l].SetName( JudgeLineToString(l)+"Label" );
|
||||||
ActorUtil::LoadAllCommands( m_sprJudgeLabels[l], m_sName );
|
ActorUtil::LoadAllCommands( m_sprJudgeLabels[l], m_sName );
|
||||||
SET_XY( m_sprJudgeLabels[l] );
|
LOAD_ALL_COMMANDS_AND_SET_XY( m_sprJudgeLabels[l] );
|
||||||
this->AddChild( &m_sprJudgeLabels[l] );
|
this->AddChild( &m_sprJudgeLabels[l] );
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -506,7 +506,7 @@ void ScreenEvaluation::Init()
|
|||||||
m_textJudgeNumbers[l][p].RunCommands( CommonMetrics::PLAYER_COLOR.GetValue(p) );
|
m_textJudgeNumbers[l][p].RunCommands( CommonMetrics::PLAYER_COLOR.GetValue(p) );
|
||||||
m_textJudgeNumbers[l][p].SetName( JudgeLineToString(l)+ssprintf("NumberP%d",p+1) );
|
m_textJudgeNumbers[l][p].SetName( JudgeLineToString(l)+ssprintf("NumberP%d",p+1) );
|
||||||
ActorUtil::LoadAllCommands( m_textJudgeNumbers[l][p], m_sName );
|
ActorUtil::LoadAllCommands( m_textJudgeNumbers[l][p], m_sName );
|
||||||
SET_XY( m_textJudgeNumbers[l][p] );
|
LOAD_ALL_COMMANDS_AND_SET_XY( m_textJudgeNumbers[l][p] );
|
||||||
this->AddChild( &m_textJudgeNumbers[l][p] );
|
this->AddChild( &m_textJudgeNumbers[l][p] );
|
||||||
|
|
||||||
int iValue;
|
int iValue;
|
||||||
@@ -541,7 +541,7 @@ void ScreenEvaluation::Init()
|
|||||||
m_sprStatsLabel[l]->StopAnimating();
|
m_sprStatsLabel[l]->StopAnimating();
|
||||||
m_sprStatsLabel[l]->SetName( StatLineToString(l)+"Label" );
|
m_sprStatsLabel[l]->SetName( StatLineToString(l)+"Label" );
|
||||||
ActorUtil::LoadAllCommands( *m_sprStatsLabel[l], m_sName );
|
ActorUtil::LoadAllCommands( *m_sprStatsLabel[l], m_sName );
|
||||||
SET_XY( m_sprStatsLabel[l] );
|
LOAD_ALL_COMMANDS_AND_SET_XY( m_sprStatsLabel[l] );
|
||||||
this->AddChild( m_sprStatsLabel[l] );
|
this->AddChild( m_sprStatsLabel[l] );
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -551,7 +551,7 @@ void ScreenEvaluation::Init()
|
|||||||
m_textStatsText[l][p].RunCommands( CommonMetrics::PLAYER_COLOR.GetValue(p) );
|
m_textStatsText[l][p].RunCommands( CommonMetrics::PLAYER_COLOR.GetValue(p) );
|
||||||
m_textStatsText[l][p].SetName( StatLineToString(l)+ssprintf("TextP%d",p+1) );
|
m_textStatsText[l][p].SetName( StatLineToString(l)+ssprintf("TextP%d",p+1) );
|
||||||
ActorUtil::LoadAllCommands( m_textStatsText[l][p], m_sName );
|
ActorUtil::LoadAllCommands( m_textStatsText[l][p], m_sName );
|
||||||
SET_XY( m_textStatsText[l][p] );
|
LOAD_ALL_COMMANDS_AND_SET_XY( m_textStatsText[l][p] );
|
||||||
this->AddChild( &m_textStatsText[l][p] );
|
this->AddChild( &m_textStatsText[l][p] );
|
||||||
|
|
||||||
static const int indeces[NUM_StatLine] =
|
static const int indeces[NUM_StatLine] =
|
||||||
@@ -574,7 +574,7 @@ void ScreenEvaluation::Init()
|
|||||||
m_sprScoreLabel.Load( THEME->GetPathG(m_sName,"score label") );
|
m_sprScoreLabel.Load( THEME->GetPathG(m_sName,"score label") );
|
||||||
m_sprScoreLabel->SetName( "ScoreLabel" );
|
m_sprScoreLabel->SetName( "ScoreLabel" );
|
||||||
ActorUtil::LoadAllCommands( *m_sprScoreLabel, m_sName );
|
ActorUtil::LoadAllCommands( *m_sprScoreLabel, m_sName );
|
||||||
SET_XY( m_sprScoreLabel );
|
LOAD_ALL_COMMANDS_AND_SET_XY( m_sprScoreLabel );
|
||||||
this->AddChild( m_sprScoreLabel );
|
this->AddChild( m_sprScoreLabel );
|
||||||
|
|
||||||
FOREACH_EnabledPlayer( p )
|
FOREACH_EnabledPlayer( p )
|
||||||
@@ -584,7 +584,7 @@ void ScreenEvaluation::Init()
|
|||||||
m_textScore[p].RunCommands( CommonMetrics::PLAYER_COLOR.GetValue(p) );
|
m_textScore[p].RunCommands( CommonMetrics::PLAYER_COLOR.GetValue(p) );
|
||||||
m_textScore[p].SetName( ssprintf("ScoreNumberP%d",p+1) );
|
m_textScore[p].SetName( ssprintf("ScoreNumberP%d",p+1) );
|
||||||
ActorUtil::LoadAllCommands( m_textScore[p], m_sName );
|
ActorUtil::LoadAllCommands( m_textScore[p], m_sName );
|
||||||
SET_XY( m_textScore[p] );
|
LOAD_ALL_COMMANDS_AND_SET_XY( m_textScore[p] );
|
||||||
m_textScore[p].SetText( ssprintf("%*.0i", NUM_SCORE_DIGITS, STATSMAN->m_CurStageStats.m_player[p].m_iScore) );
|
m_textScore[p].SetText( ssprintf("%*.0i", NUM_SCORE_DIGITS, STATSMAN->m_CurStageStats.m_player[p].m_iScore) );
|
||||||
this->AddChild( &m_textScore[p] );
|
this->AddChild( &m_textScore[p] );
|
||||||
}
|
}
|
||||||
@@ -595,7 +595,7 @@ void ScreenEvaluation::Init()
|
|||||||
m_sprTotalScoreLabel.Load( THEME->GetPathG(m_sName,"totalscore label") );
|
m_sprTotalScoreLabel.Load( THEME->GetPathG(m_sName,"totalscore label") );
|
||||||
m_sprTotalScoreLabel->SetName( "TotalScoreLabel" );
|
m_sprTotalScoreLabel->SetName( "TotalScoreLabel" );
|
||||||
ActorUtil::LoadAllCommands( *m_sprTotalScoreLabel, m_sName );
|
ActorUtil::LoadAllCommands( *m_sprTotalScoreLabel, m_sName );
|
||||||
SET_XY( m_sprTotalScoreLabel );
|
LOAD_ALL_COMMANDS_AND_SET_XY( m_sprTotalScoreLabel );
|
||||||
this->AddChild( m_sprTotalScoreLabel );
|
this->AddChild( m_sprTotalScoreLabel );
|
||||||
|
|
||||||
FOREACH_EnabledPlayer( p )
|
FOREACH_EnabledPlayer( p )
|
||||||
@@ -612,7 +612,7 @@ void ScreenEvaluation::Init()
|
|||||||
m_textTotalScore[p].SetName( ssprintf("TotalScoreNumberP%d",p+1) );
|
m_textTotalScore[p].SetName( ssprintf("TotalScoreNumberP%d",p+1) );
|
||||||
m_textTotalScore[p].SetText( ssprintf("%*.0i", NUM_SCORE_DIGITS+2, iTotalScore) );
|
m_textTotalScore[p].SetText( ssprintf("%*.0i", NUM_SCORE_DIGITS+2, iTotalScore) );
|
||||||
ActorUtil::LoadAllCommands( m_textTotalScore[p], m_sName );
|
ActorUtil::LoadAllCommands( m_textTotalScore[p], m_sName );
|
||||||
SET_XY( m_textTotalScore[p] );
|
LOAD_ALL_COMMANDS_AND_SET_XY( m_textTotalScore[p] );
|
||||||
|
|
||||||
this->AddChild( &m_textTotalScore[p] );
|
this->AddChild( &m_textTotalScore[p] );
|
||||||
}
|
}
|
||||||
@@ -626,7 +626,7 @@ void ScreenEvaluation::Init()
|
|||||||
m_sprTimeLabel.Load( THEME->GetPathG(m_sName,"time label") );
|
m_sprTimeLabel.Load( THEME->GetPathG(m_sName,"time label") );
|
||||||
m_sprTimeLabel->SetName( "TimeLabel" );
|
m_sprTimeLabel->SetName( "TimeLabel" );
|
||||||
ActorUtil::LoadAllCommands( *m_sprTimeLabel, m_sName );
|
ActorUtil::LoadAllCommands( *m_sprTimeLabel, m_sName );
|
||||||
SET_XY( m_sprTimeLabel );
|
LOAD_ALL_COMMANDS_AND_SET_XY( m_sprTimeLabel );
|
||||||
this->AddChild( m_sprTimeLabel );
|
this->AddChild( m_sprTimeLabel );
|
||||||
|
|
||||||
FOREACH_EnabledPlayer( p )
|
FOREACH_EnabledPlayer( p )
|
||||||
@@ -636,7 +636,7 @@ void ScreenEvaluation::Init()
|
|||||||
m_textTime[p].RunCommands( CommonMetrics::PLAYER_COLOR.GetValue(p) );
|
m_textTime[p].RunCommands( CommonMetrics::PLAYER_COLOR.GetValue(p) );
|
||||||
m_textTime[p].SetName( ssprintf("TimeNumberP%d",p+1) );
|
m_textTime[p].SetName( ssprintf("TimeNumberP%d",p+1) );
|
||||||
ActorUtil::LoadAllCommands( m_textTime[p], m_sName );
|
ActorUtil::LoadAllCommands( m_textTime[p], m_sName );
|
||||||
SET_XY( m_textTime[p] );
|
LOAD_ALL_COMMANDS_AND_SET_XY( m_textTime[p] );
|
||||||
m_textTime[p].SetText( SecondsToMMSSMsMs(STATSMAN->m_CurStageStats.m_player[p].m_fAliveSeconds) );
|
m_textTime[p].SetText( SecondsToMMSSMsMs(STATSMAN->m_CurStageStats.m_player[p].m_fAliveSeconds) );
|
||||||
this->AddChild( &m_textTime[p] );
|
this->AddChild( &m_textTime[p] );
|
||||||
}
|
}
|
||||||
@@ -655,7 +655,7 @@ void ScreenEvaluation::Init()
|
|||||||
m_sprMachineRecord[p].Load( THEME->GetPathG( m_sName, ssprintf("MachineRecord %02d",STATSMAN->m_CurStageStats.m_player[p].m_iMachineHighScoreIndex+1) ) );
|
m_sprMachineRecord[p].Load( THEME->GetPathG( m_sName, ssprintf("MachineRecord %02d",STATSMAN->m_CurStageStats.m_player[p].m_iMachineHighScoreIndex+1) ) );
|
||||||
m_sprMachineRecord[p]->SetName( ssprintf("MachineRecordP%d",p+1) );
|
m_sprMachineRecord[p]->SetName( ssprintf("MachineRecordP%d",p+1) );
|
||||||
ActorUtil::LoadAllCommands( *m_sprMachineRecord[p], m_sName );
|
ActorUtil::LoadAllCommands( *m_sprMachineRecord[p], m_sName );
|
||||||
SET_XY( m_sprMachineRecord[p] );
|
LOAD_ALL_COMMANDS_AND_SET_XY( m_sprMachineRecord[p] );
|
||||||
this->AddChild( m_sprMachineRecord[p] );
|
this->AddChild( m_sprMachineRecord[p] );
|
||||||
}
|
}
|
||||||
if( STATSMAN->m_CurStageStats.m_player[p].m_iPersonalHighScoreIndex != -1 )
|
if( STATSMAN->m_CurStageStats.m_player[p].m_iPersonalHighScoreIndex != -1 )
|
||||||
@@ -663,7 +663,7 @@ void ScreenEvaluation::Init()
|
|||||||
m_sprPersonalRecord[p].Load( THEME->GetPathG( m_sName, ssprintf("PersonalRecord %02d",STATSMAN->m_CurStageStats.m_player[p].m_iPersonalHighScoreIndex+1) ) );
|
m_sprPersonalRecord[p].Load( THEME->GetPathG( m_sName, ssprintf("PersonalRecord %02d",STATSMAN->m_CurStageStats.m_player[p].m_iPersonalHighScoreIndex+1) ) );
|
||||||
m_sprPersonalRecord[p]->SetName( ssprintf("PersonalRecordP%d",p+1) );
|
m_sprPersonalRecord[p]->SetName( ssprintf("PersonalRecordP%d",p+1) );
|
||||||
ActorUtil::LoadAllCommands( *m_sprPersonalRecord[p], m_sName );
|
ActorUtil::LoadAllCommands( *m_sprPersonalRecord[p], m_sName );
|
||||||
SET_XY( m_sprPersonalRecord[p] );
|
LOAD_ALL_COMMANDS_AND_SET_XY( m_sprPersonalRecord[p] );
|
||||||
this->AddChild( m_sprPersonalRecord[p] );
|
this->AddChild( m_sprPersonalRecord[p] );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -683,7 +683,7 @@ void ScreenEvaluation::Init()
|
|||||||
m_sprTryExtraStage.Load( THEME->GetPathG(m_sName,GAMESTATE->IsExtraStage()?"try extra2":"try extra1") );
|
m_sprTryExtraStage.Load( THEME->GetPathG(m_sName,GAMESTATE->IsExtraStage()?"try extra2":"try extra1") );
|
||||||
m_sprTryExtraStage->SetName( "TryExtraStage" );
|
m_sprTryExtraStage->SetName( "TryExtraStage" );
|
||||||
ActorUtil::LoadAllCommands( *m_sprTryExtraStage, m_sName );
|
ActorUtil::LoadAllCommands( *m_sprTryExtraStage, m_sName );
|
||||||
SET_XY( m_sprTryExtraStage );
|
LOAD_ALL_COMMANDS_AND_SET_XY( m_sprTryExtraStage );
|
||||||
this->AddChild( m_sprTryExtraStage );
|
this->AddChild( m_sprTryExtraStage );
|
||||||
|
|
||||||
if( GAMESTATE->IsExtraStage() )
|
if( GAMESTATE->IsExtraStage() )
|
||||||
|
|||||||
@@ -609,13 +609,13 @@ void ScreenEz2SelectMusic::MusicChanged()
|
|||||||
{
|
{
|
||||||
m_sprBalloon.StopTweening();
|
m_sprBalloon.StopTweening();
|
||||||
m_sprBalloon.Load( THEME->GetPathG("ScreenSelectMusic","balloon marathon") );
|
m_sprBalloon.Load( THEME->GetPathG("ScreenSelectMusic","balloon marathon") );
|
||||||
SET_XY_AND_ON_COMMAND( m_sprBalloon );
|
LOAD_ALL_COMMANDS_AND_SET_XY_AND_ON_COMMAND( m_sprBalloon );
|
||||||
}
|
}
|
||||||
else if( pSong->IsLong() )
|
else if( pSong->IsLong() )
|
||||||
{
|
{
|
||||||
m_sprBalloon.StopTweening();
|
m_sprBalloon.StopTweening();
|
||||||
m_sprBalloon.Load( THEME->GetPathG("ScreenSelectMusic","balloon long") );
|
m_sprBalloon.Load( THEME->GetPathG("ScreenSelectMusic","balloon long") );
|
||||||
SET_XY_AND_ON_COMMAND( m_sprBalloon );
|
LOAD_ALL_COMMANDS_AND_SET_XY_AND_ON_COMMAND( m_sprBalloon );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -478,7 +478,7 @@ void ScreenGameplay::Init()
|
|||||||
pi->m_sprOniGameOver.Load( THEME->GetPathG(m_sName,"oni gameover") );
|
pi->m_sprOniGameOver.Load( THEME->GetPathG(m_sName,"oni gameover") );
|
||||||
pi->m_sprOniGameOver->SetName( ssprintf("OniGameOver%s",pi->GetName().c_str()) );
|
pi->m_sprOniGameOver->SetName( ssprintf("OniGameOver%s",pi->GetName().c_str()) );
|
||||||
ActorUtil::LoadAllCommands( *pi->m_sprOniGameOver, m_sName );
|
ActorUtil::LoadAllCommands( *pi->m_sprOniGameOver, m_sName );
|
||||||
SET_XY( pi->m_sprOniGameOver );
|
LOAD_ALL_COMMANDS_AND_SET_XY( pi->m_sprOniGameOver );
|
||||||
this->AddChild( pi->m_sprOniGameOver );
|
this->AddChild( pi->m_sprOniGameOver );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -500,7 +500,7 @@ void ScreenGameplay::Init()
|
|||||||
m_sprLifeFrame.Load( THEME->GetPathG(m_sName,bBattery?"oni life frame":"life frame") );
|
m_sprLifeFrame.Load( THEME->GetPathG(m_sName,bBattery?"oni life frame":"life frame") );
|
||||||
m_sprLifeFrame->SetName( "LifeFrame" );
|
m_sprLifeFrame->SetName( "LifeFrame" );
|
||||||
ActorUtil::LoadAllCommands( *m_sprLifeFrame, m_sName );
|
ActorUtil::LoadAllCommands( *m_sprLifeFrame, m_sName );
|
||||||
SET_XY( m_sprLifeFrame );
|
LOAD_ALL_COMMANDS_AND_SET_XY( m_sprLifeFrame );
|
||||||
this->AddChild( m_sprLifeFrame );
|
this->AddChild( m_sprLifeFrame );
|
||||||
|
|
||||||
//
|
//
|
||||||
@@ -509,7 +509,7 @@ void ScreenGameplay::Init()
|
|||||||
m_sprScoreFrame.Load( THEME->GetPathG(m_sName,bBattery?"oni score frame":"score frame") );
|
m_sprScoreFrame.Load( THEME->GetPathG(m_sName,bBattery?"oni score frame":"score frame") );
|
||||||
m_sprScoreFrame.SetName( "ScoreFrame" );
|
m_sprScoreFrame.SetName( "ScoreFrame" );
|
||||||
ActorUtil::LoadAllCommands( m_sprScoreFrame, m_sName );
|
ActorUtil::LoadAllCommands( m_sprScoreFrame, m_sName );
|
||||||
SET_XY( m_sprScoreFrame );
|
LOAD_ALL_COMMANDS_AND_SET_XY( m_sprScoreFrame );
|
||||||
this->AddChild( &m_sprScoreFrame );
|
this->AddChild( &m_sprScoreFrame );
|
||||||
|
|
||||||
|
|
||||||
@@ -523,7 +523,7 @@ void ScreenGameplay::Init()
|
|||||||
m_pCombinedLifeMeter = new CombinedLifeMeterTug;
|
m_pCombinedLifeMeter = new CombinedLifeMeterTug;
|
||||||
m_pCombinedLifeMeter->SetName( "CombinedLife" );
|
m_pCombinedLifeMeter->SetName( "CombinedLife" );
|
||||||
ActorUtil::LoadAllCommands( *m_pCombinedLifeMeter, m_sName );
|
ActorUtil::LoadAllCommands( *m_pCombinedLifeMeter, m_sName );
|
||||||
SET_XY( *m_pCombinedLifeMeter );
|
LOAD_ALL_COMMANDS_AND_SET_XY( *m_pCombinedLifeMeter );
|
||||||
this->AddChild( m_pCombinedLifeMeter );
|
this->AddChild( m_pCombinedLifeMeter );
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -556,7 +556,7 @@ void ScreenGameplay::Init()
|
|||||||
pi->m_pLifeMeter->Load( pi->GetPlayerState(), pi->GetPlayerStageStats() );
|
pi->m_pLifeMeter->Load( pi->GetPlayerState(), pi->GetPlayerStageStats() );
|
||||||
pi->m_pLifeMeter->SetName( ssprintf("Life%s",pi->GetName().c_str()) );
|
pi->m_pLifeMeter->SetName( ssprintf("Life%s",pi->GetName().c_str()) );
|
||||||
ActorUtil::LoadAllCommands( *pi->m_pLifeMeter, m_sName );
|
ActorUtil::LoadAllCommands( *pi->m_pLifeMeter, m_sName );
|
||||||
SET_XY( pi->m_pLifeMeter );
|
LOAD_ALL_COMMANDS_AND_SET_XY( pi->m_pLifeMeter );
|
||||||
this->AddChild( pi->m_pLifeMeter );
|
this->AddChild( pi->m_pLifeMeter );
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
@@ -581,7 +581,7 @@ void ScreenGameplay::Init()
|
|||||||
m_Scoreboard[col].SetShadowLength( 0 );
|
m_Scoreboard[col].SetShadowLength( 0 );
|
||||||
m_Scoreboard[col].SetName( ssprintf("ScoreboardC%iP%i",col+1,pn+1) );
|
m_Scoreboard[col].SetName( ssprintf("ScoreboardC%iP%i",col+1,pn+1) );
|
||||||
ActorUtil::LoadAllCommands( m_Scoreboard[col], m_sName );
|
ActorUtil::LoadAllCommands( m_Scoreboard[col], m_sName );
|
||||||
SET_XY( m_Scoreboard[col] );
|
LOAD_ALL_COMMANDS_AND_SET_XY( m_Scoreboard[col] );
|
||||||
m_Scoreboard[col].SetText( NSMAN->m_Scoreboard[col] );
|
m_Scoreboard[col].SetText( NSMAN->m_Scoreboard[col] );
|
||||||
m_Scoreboard[col].SetVertAlign( align_top );
|
m_Scoreboard[col].SetVertAlign( align_top );
|
||||||
this->AddChild( &m_Scoreboard[col] );
|
this->AddChild( &m_Scoreboard[col] );
|
||||||
@@ -593,7 +593,7 @@ void ScreenGameplay::Init()
|
|||||||
m_MaxCombo.LoadFromFont( THEME->GetPathF(m_sName,"max combo") );
|
m_MaxCombo.LoadFromFont( THEME->GetPathF(m_sName,"max combo") );
|
||||||
m_MaxCombo.SetName( "MaxCombo" );
|
m_MaxCombo.SetName( "MaxCombo" );
|
||||||
ActorUtil::LoadAllCommands( m_MaxCombo, m_sName );
|
ActorUtil::LoadAllCommands( m_MaxCombo, m_sName );
|
||||||
SET_XY( m_MaxCombo );
|
LOAD_ALL_COMMANDS_AND_SET_XY( m_MaxCombo );
|
||||||
m_MaxCombo.SetText( ssprintf("%d", m_vPlayerInfo[0].GetPlayerStageStats()->m_iMaxCombo) ); // TODO: Make this work for both players
|
m_MaxCombo.SetText( ssprintf("%d", m_vPlayerInfo[0].GetPlayerStageStats()->m_iMaxCombo) ); // TODO: Make this work for both players
|
||||||
this->AddChild( &m_MaxCombo );
|
this->AddChild( &m_MaxCombo );
|
||||||
|
|
||||||
@@ -605,7 +605,7 @@ void ScreenGameplay::Init()
|
|||||||
{
|
{
|
||||||
pi->m_pPrimaryScoreDisplay->SetName( ssprintf("Score%s",pi->GetName().c_str()) );
|
pi->m_pPrimaryScoreDisplay->SetName( ssprintf("Score%s",pi->GetName().c_str()) );
|
||||||
ActorUtil::LoadAllCommands( *pi->m_pPrimaryScoreDisplay, m_sName );
|
ActorUtil::LoadAllCommands( *pi->m_pPrimaryScoreDisplay, m_sName );
|
||||||
SET_XY( pi->m_pPrimaryScoreDisplay );
|
LOAD_ALL_COMMANDS_AND_SET_XY( pi->m_pPrimaryScoreDisplay );
|
||||||
if( GAMESTATE->m_PlayMode != PLAY_MODE_RAVE || SHOW_SCORE_IN_RAVE ) /* XXX: ugly */
|
if( GAMESTATE->m_PlayMode != PLAY_MODE_RAVE || SHOW_SCORE_IN_RAVE ) /* XXX: ugly */
|
||||||
this->AddChild( pi->m_pPrimaryScoreDisplay );
|
this->AddChild( pi->m_pPrimaryScoreDisplay );
|
||||||
}
|
}
|
||||||
@@ -616,7 +616,7 @@ void ScreenGameplay::Init()
|
|||||||
{
|
{
|
||||||
pi->m_pSecondaryScoreDisplay->SetName( ssprintf("SecondaryScore%s",pi->GetName().c_str()) );
|
pi->m_pSecondaryScoreDisplay->SetName( ssprintf("SecondaryScore%s",pi->GetName().c_str()) );
|
||||||
ActorUtil::LoadAllCommands( *pi->m_pSecondaryScoreDisplay, m_sName );
|
ActorUtil::LoadAllCommands( *pi->m_pSecondaryScoreDisplay, m_sName );
|
||||||
SET_XY( pi->m_pSecondaryScoreDisplay );
|
LOAD_ALL_COMMANDS_AND_SET_XY( pi->m_pSecondaryScoreDisplay );
|
||||||
this->AddChild( pi->m_pSecondaryScoreDisplay );
|
this->AddChild( pi->m_pSecondaryScoreDisplay );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -626,7 +626,7 @@ void ScreenGameplay::Init()
|
|||||||
//
|
//
|
||||||
m_sprCourseSongNumber.SetName( "CourseSongNumber" );
|
m_sprCourseSongNumber.SetName( "CourseSongNumber" );
|
||||||
ActorUtil::LoadAllCommands( m_sprCourseSongNumber, m_sName );
|
ActorUtil::LoadAllCommands( m_sprCourseSongNumber, m_sName );
|
||||||
SET_XY( m_sprCourseSongNumber );
|
LOAD_ALL_COMMANDS_AND_SET_XY( m_sprCourseSongNumber );
|
||||||
if( GAMESTATE->IsCourseMode() )
|
if( GAMESTATE->IsCourseMode() )
|
||||||
this->AddChild( &m_sprCourseSongNumber );
|
this->AddChild( &m_sprCourseSongNumber );
|
||||||
|
|
||||||
@@ -640,7 +640,7 @@ void ScreenGameplay::Init()
|
|||||||
pi->m_ptextCourseSongNumber->SetShadowLength( 0 );
|
pi->m_ptextCourseSongNumber->SetShadowLength( 0 );
|
||||||
pi->m_ptextCourseSongNumber->SetName( ssprintf("SongNumber%s",pi->GetName().c_str()) );
|
pi->m_ptextCourseSongNumber->SetName( ssprintf("SongNumber%s",pi->GetName().c_str()) );
|
||||||
ActorUtil::LoadAllCommands( *pi->m_ptextCourseSongNumber, m_sName );
|
ActorUtil::LoadAllCommands( *pi->m_ptextCourseSongNumber, m_sName );
|
||||||
SET_XY( pi->m_ptextCourseSongNumber );
|
LOAD_ALL_COMMANDS_AND_SET_XY( pi->m_ptextCourseSongNumber );
|
||||||
pi->m_ptextCourseSongNumber->SetText( "" );
|
pi->m_ptextCourseSongNumber->SetText( "" );
|
||||||
pi->m_ptextCourseSongNumber->SetDiffuse( RageColor(0,0.5f,1,1) ); // light blue
|
pi->m_ptextCourseSongNumber->SetDiffuse( RageColor(0,0.5f,1,1) ); // light blue
|
||||||
this->AddChild( pi->m_ptextCourseSongNumber );
|
this->AddChild( pi->m_ptextCourseSongNumber );
|
||||||
@@ -651,7 +651,7 @@ void ScreenGameplay::Init()
|
|||||||
pi->m_ptextStepsDescription->LoadFromFont( THEME->GetPathF(m_sName,"StepsDescription") );
|
pi->m_ptextStepsDescription->LoadFromFont( THEME->GetPathF(m_sName,"StepsDescription") );
|
||||||
pi->m_ptextStepsDescription->SetName( ssprintf("StepsDescription%s",pi->GetName().c_str()) );
|
pi->m_ptextStepsDescription->SetName( ssprintf("StepsDescription%s",pi->GetName().c_str()) );
|
||||||
ActorUtil::LoadAllCommands( *pi->m_ptextStepsDescription, m_sName );
|
ActorUtil::LoadAllCommands( *pi->m_ptextStepsDescription, m_sName );
|
||||||
SET_XY( pi->m_ptextStepsDescription );
|
LOAD_ALL_COMMANDS_AND_SET_XY( pi->m_ptextStepsDescription );
|
||||||
this->AddChild( pi->m_ptextStepsDescription );
|
this->AddChild( pi->m_ptextStepsDescription );
|
||||||
|
|
||||||
//
|
//
|
||||||
@@ -663,7 +663,7 @@ void ScreenGameplay::Init()
|
|||||||
pi->m_ptextPlayerOptions->SetShadowLength( 0 );
|
pi->m_ptextPlayerOptions->SetShadowLength( 0 );
|
||||||
pi->m_ptextPlayerOptions->SetName( ssprintf("PlayerOptions%s",pi->GetName().c_str()) );
|
pi->m_ptextPlayerOptions->SetName( ssprintf("PlayerOptions%s",pi->GetName().c_str()) );
|
||||||
ActorUtil::LoadAllCommands( *pi->m_ptextPlayerOptions, m_sName );
|
ActorUtil::LoadAllCommands( *pi->m_ptextPlayerOptions, m_sName );
|
||||||
SET_XY( pi->m_ptextPlayerOptions );
|
LOAD_ALL_COMMANDS_AND_SET_XY( pi->m_ptextPlayerOptions );
|
||||||
this->AddChild( pi->m_ptextPlayerOptions );
|
this->AddChild( pi->m_ptextPlayerOptions );
|
||||||
|
|
||||||
//
|
//
|
||||||
@@ -697,7 +697,7 @@ void ScreenGameplay::Init()
|
|||||||
m_textSongOptions.SetShadowLength( 0 );
|
m_textSongOptions.SetShadowLength( 0 );
|
||||||
m_textSongOptions.SetName( "SongOptions" );
|
m_textSongOptions.SetName( "SongOptions" );
|
||||||
ActorUtil::LoadAllCommands( m_textSongOptions, m_sName );
|
ActorUtil::LoadAllCommands( m_textSongOptions, m_sName );
|
||||||
SET_XY( m_textSongOptions );
|
LOAD_ALL_COMMANDS_AND_SET_XY( m_textSongOptions );
|
||||||
m_textSongOptions.SetText( GAMESTATE->m_SongOptions.GetStage().GetLocalizedString() );
|
m_textSongOptions.SetText( GAMESTATE->m_SongOptions.GetStage().GetLocalizedString() );
|
||||||
this->AddChild( &m_textSongOptions );
|
this->AddChild( &m_textSongOptions );
|
||||||
|
|
||||||
@@ -709,7 +709,7 @@ void ScreenGameplay::Init()
|
|||||||
pi->m_pActiveAttackList->Init( pi->GetPlayerState() );
|
pi->m_pActiveAttackList->Init( pi->GetPlayerState() );
|
||||||
pi->m_pActiveAttackList->SetName( ssprintf("ActiveAttackList%s",pi->GetName().c_str()) );
|
pi->m_pActiveAttackList->SetName( ssprintf("ActiveAttackList%s",pi->GetName().c_str()) );
|
||||||
ActorUtil::LoadAllCommands( *pi->m_pActiveAttackList, m_sName );
|
ActorUtil::LoadAllCommands( *pi->m_pActiveAttackList, m_sName );
|
||||||
SET_XY( pi->m_pActiveAttackList );
|
LOAD_ALL_COMMANDS_AND_SET_XY( pi->m_pActiveAttackList );
|
||||||
this->AddChild( pi->m_pActiveAttackList );
|
this->AddChild( pi->m_pActiveAttackList );
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -734,7 +734,7 @@ void ScreenGameplay::Init()
|
|||||||
m_textDebug.LoadFromFont( THEME->GetPathF("Common","normal") );
|
m_textDebug.LoadFromFont( THEME->GetPathF("Common","normal") );
|
||||||
m_textDebug.SetName( "Debug" );
|
m_textDebug.SetName( "Debug" );
|
||||||
ActorUtil::LoadAllCommands( m_textDebug, m_sName );
|
ActorUtil::LoadAllCommands( m_textDebug, m_sName );
|
||||||
SET_XY( m_textDebug );
|
LOAD_ALL_COMMANDS_AND_SET_XY( m_textDebug );
|
||||||
m_textDebug.SetDrawOrder( DRAW_ORDER_TRANSITIONS-1 ); // just under transitions, over the foreground
|
m_textDebug.SetDrawOrder( DRAW_ORDER_TRANSITIONS-1 ); // just under transitions, over the foreground
|
||||||
this->AddChild( &m_textDebug );
|
this->AddChild( &m_textDebug );
|
||||||
|
|
||||||
@@ -746,7 +746,7 @@ void ScreenGameplay::Init()
|
|||||||
m_textSurviveTime.SetShadowLength( 0 );
|
m_textSurviveTime.SetShadowLength( 0 );
|
||||||
m_textSurviveTime.SetName( "SurviveTime" );
|
m_textSurviveTime.SetName( "SurviveTime" );
|
||||||
ActorUtil::LoadAllCommands( m_textSurviveTime, m_sName );
|
ActorUtil::LoadAllCommands( m_textSurviveTime, m_sName );
|
||||||
SET_XY( m_textSurviveTime );
|
LOAD_ALL_COMMANDS_AND_SET_XY( m_textSurviveTime );
|
||||||
m_textSurviveTime.SetDrawOrder( DRAW_ORDER_TRANSITIONS-1 );
|
m_textSurviveTime.SetDrawOrder( DRAW_ORDER_TRANSITIONS-1 );
|
||||||
m_textSurviveTime.SetDiffuse( RageColor(1,1,1,0) );
|
m_textSurviveTime.SetDiffuse( RageColor(1,1,1,0) );
|
||||||
this->AddChild( &m_textSurviveTime );
|
this->AddChild( &m_textSurviveTime );
|
||||||
@@ -1087,7 +1087,7 @@ void ScreenGameplay::LoadNextSong()
|
|||||||
pi->m_pActiveAttackList->Refresh();
|
pi->m_pActiveAttackList->Refresh();
|
||||||
|
|
||||||
// reset oni game over graphic
|
// reset oni game over graphic
|
||||||
SET_XY_AND_ON_COMMAND( pi->m_sprOniGameOver );
|
LOAD_ALL_COMMANDS_AND_SET_XY_AND_ON_COMMAND( pi->m_sprOniGameOver );
|
||||||
|
|
||||||
if( GAMESTATE->m_SongOptions.GetCurrent().m_LifeType==SongOptions::LIFE_BATTERY && pi->GetPlayerStageStats()->m_bFailed ) // already failed
|
if( GAMESTATE->m_SongOptions.GetCurrent().m_LifeType==SongOptions::LIFE_BATTERY && pi->GetPlayerStageStats()->m_bFailed ) // already failed
|
||||||
pi->ShowOniGameOver();
|
pi->ShowOniGameOver();
|
||||||
@@ -1152,13 +1152,13 @@ void ScreenGameplay::LoadNextSong()
|
|||||||
if( pi->m_pDifficultyIcon )
|
if( pi->m_pDifficultyIcon )
|
||||||
{
|
{
|
||||||
pi->m_pDifficultyIcon->SetName( ssprintf("Difficulty%s%s",pi->GetName().c_str(),bReverse?"Reverse":"") );
|
pi->m_pDifficultyIcon->SetName( ssprintf("Difficulty%s%s",pi->GetName().c_str(),bReverse?"Reverse":"") );
|
||||||
SET_XY( pi->m_pDifficultyIcon );
|
LOAD_ALL_COMMANDS_AND_SET_XY( pi->m_pDifficultyIcon );
|
||||||
}
|
}
|
||||||
|
|
||||||
if( pi->m_pDifficultyMeter )
|
if( pi->m_pDifficultyMeter )
|
||||||
{
|
{
|
||||||
pi->m_pDifficultyMeter->SetName( ssprintf("DifficultyMeter%s%s",pi->GetName().c_str(),bReverse?"Reverse":"") );
|
pi->m_pDifficultyMeter->SetName( ssprintf("DifficultyMeter%s%s",pi->GetName().c_str(),bReverse?"Reverse":"") );
|
||||||
SET_XY( pi->m_pDifficultyMeter );
|
LOAD_ALL_COMMANDS_AND_SET_XY( pi->m_pDifficultyMeter );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1167,7 +1167,7 @@ void ScreenGameplay::LoadNextSong()
|
|||||||
* player is in reverse and the other isn't. What to do? */
|
* player is in reverse and the other isn't. What to do? */
|
||||||
m_LyricDisplay.SetName( ssprintf( "Lyrics%s", bAllReverse? "Reverse": (bAtLeastOneReverse? "OneReverse": "")) );
|
m_LyricDisplay.SetName( ssprintf( "Lyrics%s", bAllReverse? "Reverse": (bAtLeastOneReverse? "OneReverse": "")) );
|
||||||
ActorUtil::LoadAllCommands( m_LyricDisplay, m_sName );
|
ActorUtil::LoadAllCommands( m_LyricDisplay, m_sName );
|
||||||
SET_XY( m_LyricDisplay );
|
LOAD_ALL_COMMANDS_AND_SET_XY( m_LyricDisplay );
|
||||||
|
|
||||||
m_SongFinished.Reset();
|
m_SongFinished.Reset();
|
||||||
|
|
||||||
@@ -2530,7 +2530,7 @@ void ScreenGameplay::HandleScreenMessage( const ScreenMessage SM )
|
|||||||
FOREACH_EnabledPlayer(p)
|
FOREACH_EnabledPlayer(p)
|
||||||
fMaxSurviveSeconds = max( fMaxSurviveSeconds, STATSMAN->m_CurStageStats.m_player[p].m_fAliveSeconds );
|
fMaxSurviveSeconds = max( fMaxSurviveSeconds, STATSMAN->m_CurStageStats.m_player[p].m_fAliveSeconds );
|
||||||
m_textSurviveTime.SetText( "TIME: " + SecondsToMMSSMsMs(fMaxSurviveSeconds) );
|
m_textSurviveTime.SetText( "TIME: " + SecondsToMMSSMsMs(fMaxSurviveSeconds) );
|
||||||
SET_XY_AND_ON_COMMAND( m_textSurviveTime );
|
LOAD_ALL_COMMANDS_AND_SET_XY_AND_ON_COMMAND( m_textSurviveTime );
|
||||||
}
|
}
|
||||||
|
|
||||||
if( GAMESTATE->IsCourseMode() )
|
if( GAMESTATE->IsCourseMode() )
|
||||||
|
|||||||
@@ -84,7 +84,7 @@ void ScreenHowToPlay::Init()
|
|||||||
m_pmDancePad->SetName( "Pad" );
|
m_pmDancePad->SetName( "Pad" );
|
||||||
m_pmDancePad->LoadMilkshapeAscii( GetAnimPath(ANIM_DANCE_PAD) );
|
m_pmDancePad->LoadMilkshapeAscii( GetAnimPath(ANIM_DANCE_PAD) );
|
||||||
m_pmDancePad->SetRotationX( 35 );
|
m_pmDancePad->SetRotationX( 35 );
|
||||||
SET_XY_AND_ON_COMMAND( m_pmDancePad );
|
LOAD_ALL_COMMANDS_AND_SET_XY_AND_ON_COMMAND( m_pmDancePad );
|
||||||
}
|
}
|
||||||
|
|
||||||
// Display random character
|
// Display random character
|
||||||
@@ -114,7 +114,7 @@ void ScreenHowToPlay::Init()
|
|||||||
|
|
||||||
m_pmCharacter->SetRotationX( 40 );
|
m_pmCharacter->SetRotationX( 40 );
|
||||||
m_pmCharacter->SetCullMode( CULL_NONE ); // many of the models floating around have the vertex order flipped
|
m_pmCharacter->SetCullMode( CULL_NONE ); // many of the models floating around have the vertex order flipped
|
||||||
SET_XY_AND_ON_COMMAND( m_pmCharacter );
|
LOAD_ALL_COMMANDS_AND_SET_XY_AND_ON_COMMAND( m_pmCharacter );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -124,7 +124,7 @@ void ScreenHowToPlay::Init()
|
|||||||
m_pLifeMeterBar = new LifeMeterBar;
|
m_pLifeMeterBar = new LifeMeterBar;
|
||||||
m_pLifeMeterBar->SetName("LifeMeterBar");
|
m_pLifeMeterBar->SetName("LifeMeterBar");
|
||||||
m_pLifeMeterBar->Load( GAMESTATE->m_pPlayerState[PLAYER_1], &STATSMAN->m_CurStageStats.m_player[PLAYER_1] );
|
m_pLifeMeterBar->Load( GAMESTATE->m_pPlayerState[PLAYER_1], &STATSMAN->m_CurStageStats.m_player[PLAYER_1] );
|
||||||
SET_XY_AND_ON_COMMAND( m_pLifeMeterBar );
|
LOAD_ALL_COMMANDS_AND_SET_XY_AND_ON_COMMAND( m_pLifeMeterBar );
|
||||||
m_pLifeMeterBar->FillForHowToPlay( NUM_W2S, NUM_MISSES );
|
m_pLifeMeterBar->FillForHowToPlay( NUM_W2S, NUM_MISSES );
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -162,7 +162,7 @@ void ScreenHowToPlay::Init()
|
|||||||
m_Player.Load( m_NoteData );
|
m_Player.Load( m_NoteData );
|
||||||
m_Player->SetName( "Player" );
|
m_Player->SetName( "Player" );
|
||||||
this->AddChild( m_Player );
|
this->AddChild( m_Player );
|
||||||
SET_XY_AND_ON_COMMAND( m_Player );
|
LOAD_ALL_COMMANDS_AND_SET_XY_AND_ON_COMMAND( m_Player );
|
||||||
|
|
||||||
// Don't show judgement
|
// Don't show judgement
|
||||||
PO_GROUP_ASSIGN( GAMESTATE->m_pPlayerState[PLAYER_1]->m_PlayerOptions, ModsLevel_Stage, m_fBlind, 1.0f );
|
PO_GROUP_ASSIGN( GAMESTATE->m_pPlayerState[PLAYER_1]->m_PlayerOptions, ModsLevel_Stage, m_fBlind, 1.0f );
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ void ScreenMapControllers::Init()
|
|||||||
|
|
||||||
m_textDevices.LoadFromFont( THEME->GetPathF("Common","normal") );
|
m_textDevices.LoadFromFont( THEME->GetPathF("Common","normal") );
|
||||||
m_textDevices.SetName( "Devices" );
|
m_textDevices.SetName( "Devices" );
|
||||||
SET_XY_AND_ON_COMMAND( m_textDevices );
|
LOAD_ALL_COMMANDS_AND_SET_XY_AND_ON_COMMAND( m_textDevices );
|
||||||
this->AddChild( &m_textDevices );
|
this->AddChild( &m_textDevices );
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -47,14 +47,14 @@ void HighScoreWheelItem::Load( int iRankIndex, const HighScore& hs )
|
|||||||
m_textRank.SetText( ssprintf("%d", iRankIndex+1) );
|
m_textRank.SetText( ssprintf("%d", iRankIndex+1) );
|
||||||
m_textRank.SetShadowLength( 2 );
|
m_textRank.SetShadowLength( 2 );
|
||||||
this->AddChild( &m_textRank );
|
this->AddChild( &m_textRank );
|
||||||
SET_XY_AND_ON_COMMAND( m_textRank );
|
LOAD_ALL_COMMANDS_AND_SET_XY_AND_ON_COMMAND( m_textRank );
|
||||||
|
|
||||||
m_textName.SetName( "Name" );
|
m_textName.SetName( "Name" );
|
||||||
m_textName.LoadFromFont( THEME->GetPathF(m_sName,"name") );
|
m_textName.LoadFromFont( THEME->GetPathF(m_sName,"name") );
|
||||||
m_textName.SetText( hs.GetDisplayName() );
|
m_textName.SetText( hs.GetDisplayName() );
|
||||||
m_textName.SetShadowLength( 2 );
|
m_textName.SetShadowLength( 2 );
|
||||||
this->AddChild( &m_textName );
|
this->AddChild( &m_textName );
|
||||||
SET_XY_AND_ON_COMMAND( m_textName );
|
LOAD_ALL_COMMANDS_AND_SET_XY_AND_ON_COMMAND( m_textName );
|
||||||
|
|
||||||
m_textScore.SetName( "Score" );
|
m_textScore.SetName( "Score" );
|
||||||
m_textScore.LoadFromFont( THEME->GetPathF(m_sName,"score") );
|
m_textScore.LoadFromFont( THEME->GetPathF(m_sName,"score") );
|
||||||
@@ -64,14 +64,14 @@ void HighScoreWheelItem::Load( int iRankIndex, const HighScore& hs )
|
|||||||
m_textScore.SetText( ssprintf("%i", hs.GetScore()) );
|
m_textScore.SetText( ssprintf("%i", hs.GetScore()) );
|
||||||
m_textScore.SetShadowLength( 2 );
|
m_textScore.SetShadowLength( 2 );
|
||||||
this->AddChild( &m_textScore );
|
this->AddChild( &m_textScore );
|
||||||
SET_XY_AND_ON_COMMAND( m_textScore );
|
LOAD_ALL_COMMANDS_AND_SET_XY_AND_ON_COMMAND( m_textScore );
|
||||||
|
|
||||||
m_textDate.SetName( "Date" );
|
m_textDate.SetName( "Date" );
|
||||||
m_textDate.LoadFromFont( THEME->GetPathF(m_sName,"date") );
|
m_textDate.LoadFromFont( THEME->GetPathF(m_sName,"date") );
|
||||||
m_textDate.SetText( ssprintf("%02d/%02d", hs.GetDateTime().tm_mon+1, hs.GetDateTime().tm_mday) );
|
m_textDate.SetText( ssprintf("%02d/%02d", hs.GetDateTime().tm_mon+1, hs.GetDateTime().tm_mday) );
|
||||||
m_textDate.SetShadowLength( 2 );
|
m_textDate.SetShadowLength( 2 );
|
||||||
this->AddChild( &m_textDate );
|
this->AddChild( &m_textDate );
|
||||||
SET_XY_AND_ON_COMMAND( m_textDate );
|
LOAD_ALL_COMMANDS_AND_SET_XY_AND_ON_COMMAND( m_textDate );
|
||||||
}
|
}
|
||||||
|
|
||||||
void HighScoreWheelItem::LoadBlank( int iRankIndex )
|
void HighScoreWheelItem::LoadBlank( int iRankIndex )
|
||||||
@@ -213,7 +213,7 @@ void ScreenNameEntryTraditional::Init()
|
|||||||
{
|
{
|
||||||
m_sprOutOfRanking[p].Load( THEME->GetPathG( m_sName,ssprintf("OutOfRankingP%i",p+1)) );
|
m_sprOutOfRanking[p].Load( THEME->GetPathG( m_sName,ssprintf("OutOfRankingP%i",p+1)) );
|
||||||
m_sprOutOfRanking[p]->SetName( ssprintf("OutOfRankingP%i",p+1) );
|
m_sprOutOfRanking[p]->SetName( ssprintf("OutOfRankingP%i",p+1) );
|
||||||
SET_XY_AND_ON_COMMAND( m_sprOutOfRanking[p] );
|
LOAD_ALL_COMMANDS_AND_SET_XY_AND_ON_COMMAND( m_sprOutOfRanking[p] );
|
||||||
this->AddChild( m_sprOutOfRanking[p] );
|
this->AddChild( m_sprOutOfRanking[p] );
|
||||||
|
|
||||||
continue; // skip
|
continue; // skip
|
||||||
@@ -221,11 +221,11 @@ void ScreenNameEntryTraditional::Init()
|
|||||||
|
|
||||||
m_sprNameFrame[p].Load( THEME->GetPathG(m_sName,ssprintf("name frame p%i",p+1)) );
|
m_sprNameFrame[p].Load( THEME->GetPathG(m_sName,ssprintf("name frame p%i",p+1)) );
|
||||||
m_sprNameFrame[p]->SetName( ssprintf("EntryFrameP%i",p+1) );
|
m_sprNameFrame[p]->SetName( ssprintf("EntryFrameP%i",p+1) );
|
||||||
SET_XY_AND_ON_COMMAND( m_sprNameFrame[p] );
|
LOAD_ALL_COMMANDS_AND_SET_XY_AND_ON_COMMAND( m_sprNameFrame[p] );
|
||||||
this->AddChild( m_sprNameFrame[p] );
|
this->AddChild( m_sprNameFrame[p] );
|
||||||
|
|
||||||
m_Keyboard[p].SetName( ssprintf("KeyboardP%i",p+1) );
|
m_Keyboard[p].SetName( ssprintf("KeyboardP%i",p+1) );
|
||||||
SET_XY_AND_ON_COMMAND( m_Keyboard[p] );
|
LOAD_ALL_COMMANDS_AND_SET_XY_AND_ON_COMMAND( m_Keyboard[p] );
|
||||||
this->AddChild( &m_Keyboard[p] );
|
this->AddChild( &m_Keyboard[p] );
|
||||||
|
|
||||||
/* Add letters to m_Keyboard. */
|
/* Add letters to m_Keyboard. */
|
||||||
@@ -286,7 +286,7 @@ void ScreenNameEntryTraditional::Init()
|
|||||||
|
|
||||||
m_textSelection[p].SetName( ssprintf("SelectionP%i",p+1) );
|
m_textSelection[p].SetName( ssprintf("SelectionP%i",p+1) );
|
||||||
m_textSelection[p].LoadFromFont( THEME->GetPathF(m_sName,"entry") );
|
m_textSelection[p].LoadFromFont( THEME->GetPathF(m_sName,"entry") );
|
||||||
SET_XY_AND_ON_COMMAND( m_textSelection[p] );
|
LOAD_ALL_COMMANDS_AND_SET_XY_AND_ON_COMMAND( m_textSelection[p] );
|
||||||
this->AddChild( &m_textSelection[p] );
|
this->AddChild( &m_textSelection[p] );
|
||||||
|
|
||||||
m_SelectedChar[p] = 0;
|
m_SelectedChar[p] = 0;
|
||||||
@@ -321,7 +321,7 @@ void ScreenNameEntryTraditional::Init()
|
|||||||
* all actors, even if we're going to hide it anyway, so any style commands
|
* all actors, even if we're going to hide it anyway, so any style commands
|
||||||
* are run. */
|
* are run. */
|
||||||
#define SET_ON( actor ) \
|
#define SET_ON( actor ) \
|
||||||
SET_XY_AND_ON_COMMAND( actor ); \
|
LOAD_ALL_COMMANDS_AND_SET_XY_AND_ON_COMMAND( actor ); \
|
||||||
if( m_FeatDisplay[p].size()>1 ) \
|
if( m_FeatDisplay[p].size()>1 ) \
|
||||||
{ \
|
{ \
|
||||||
(actor).FinishTweening(); \
|
(actor).FinishTweening(); \
|
||||||
@@ -433,7 +433,7 @@ void ScreenNameEntryTraditional::Init()
|
|||||||
* itself is ugly. */
|
* itself is ugly. */
|
||||||
display.m_sprBannerFrame.Load( THEME->GetPathG(m_sName,ssprintf("banner frame p%i",p+1)) );
|
display.m_sprBannerFrame.Load( THEME->GetPathG(m_sName,ssprintf("banner frame p%i",p+1)) );
|
||||||
display.m_sprBannerFrame->SetName( ssprintf("BannerFrameP%i",p+1) );
|
display.m_sprBannerFrame->SetName( ssprintf("BannerFrameP%i",p+1) );
|
||||||
SET_XY_AND_ON_COMMAND( display.m_sprBannerFrame );
|
LOAD_ALL_COMMANDS_AND_SET_XY_AND_ON_COMMAND( display.m_sprBannerFrame );
|
||||||
this->AddChild( display.m_sprBannerFrame );
|
this->AddChild( display.m_sprBannerFrame );
|
||||||
}
|
}
|
||||||
#undef SET_ON
|
#undef SET_ON
|
||||||
|
|||||||
@@ -50,20 +50,20 @@ void ScreenNetRoom::Init()
|
|||||||
m_sprTitleBG.SetName( "TitleBG" );
|
m_sprTitleBG.SetName( "TitleBG" );
|
||||||
m_sprTitleBG.SetWidth( TITLEBG_WIDTH );
|
m_sprTitleBG.SetWidth( TITLEBG_WIDTH );
|
||||||
m_sprTitleBG.SetHeight( TITLEBG_HEIGHT );
|
m_sprTitleBG.SetHeight( TITLEBG_HEIGHT );
|
||||||
SET_XY_AND_ON_COMMAND( m_sprTitleBG );
|
LOAD_ALL_COMMANDS_AND_SET_XY_AND_ON_COMMAND( m_sprTitleBG );
|
||||||
this->AddChild( &m_sprTitleBG);
|
this->AddChild( &m_sprTitleBG);
|
||||||
|
|
||||||
m_textTitle.LoadFromFont( THEME->GetPathF(m_sName,"wheel") );
|
m_textTitle.LoadFromFont( THEME->GetPathF(m_sName,"wheel") );
|
||||||
m_textTitle.SetShadowLength( 0 );
|
m_textTitle.SetShadowLength( 0 );
|
||||||
m_textTitle.SetName( "Title" );
|
m_textTitle.SetName( "Title" );
|
||||||
m_textTitle.SetMaxWidth( TITLEBG_WIDTH );
|
m_textTitle.SetMaxWidth( TITLEBG_WIDTH );
|
||||||
SET_XY_AND_ON_COMMAND( m_textTitle );
|
LOAD_ALL_COMMANDS_AND_SET_XY_AND_ON_COMMAND( m_textTitle );
|
||||||
this->AddChild( &m_textTitle);
|
this->AddChild( &m_textTitle);
|
||||||
|
|
||||||
m_RoomWheel.SetName( "RoomWheel" );
|
m_RoomWheel.SetName( "RoomWheel" );
|
||||||
m_RoomWheel.Load( "RoomWheel" );
|
m_RoomWheel.Load( "RoomWheel" );
|
||||||
m_RoomWheel.BeginScreen();
|
m_RoomWheel.BeginScreen();
|
||||||
SET_XY_AND_ON_COMMAND( m_RoomWheel );
|
LOAD_ALL_COMMANDS_AND_SET_XY_AND_ON_COMMAND( m_RoomWheel );
|
||||||
this->AddChild( &m_RoomWheel );
|
this->AddChild( &m_RoomWheel );
|
||||||
|
|
||||||
m_roomInfo.SetName( "RoomInfoDisplay" );
|
m_roomInfo.SetName( "RoomInfoDisplay" );
|
||||||
|
|||||||
@@ -44,14 +44,14 @@ void ScreenNetSelectBase::Init()
|
|||||||
m_sprChatInputBox.Load( THEME->GetPathG( m_sName, "ChatInputBox" ) );
|
m_sprChatInputBox.Load( THEME->GetPathG( m_sName, "ChatInputBox" ) );
|
||||||
m_sprChatInputBox.SetWidth( CHATINPUT_WIDTH );
|
m_sprChatInputBox.SetWidth( CHATINPUT_WIDTH );
|
||||||
m_sprChatInputBox.SetHeight( CHATINPUT_HEIGHT );
|
m_sprChatInputBox.SetHeight( CHATINPUT_HEIGHT );
|
||||||
SET_XY_AND_ON_COMMAND( m_sprChatInputBox );
|
LOAD_ALL_COMMANDS_AND_SET_XY_AND_ON_COMMAND( m_sprChatInputBox );
|
||||||
this->AddChild( &m_sprChatInputBox );
|
this->AddChild( &m_sprChatInputBox );
|
||||||
|
|
||||||
m_sprChatOutputBox.SetName( "ChatOutputBox" );
|
m_sprChatOutputBox.SetName( "ChatOutputBox" );
|
||||||
m_sprChatOutputBox.Load( THEME->GetPathG( m_sName, "ChatOutputBox" ) );
|
m_sprChatOutputBox.Load( THEME->GetPathG( m_sName, "ChatOutputBox" ) );
|
||||||
m_sprChatOutputBox.SetWidth( CHATOUTPUT_WIDTH );
|
m_sprChatOutputBox.SetWidth( CHATOUTPUT_WIDTH );
|
||||||
m_sprChatOutputBox.SetHeight( CHATOUTPUT_HEIGHT );
|
m_sprChatOutputBox.SetHeight( CHATOUTPUT_HEIGHT );
|
||||||
SET_XY_AND_ON_COMMAND( m_sprChatOutputBox );
|
LOAD_ALL_COMMANDS_AND_SET_XY_AND_ON_COMMAND( m_sprChatOutputBox );
|
||||||
this->AddChild( &m_sprChatOutputBox );
|
this->AddChild( &m_sprChatOutputBox );
|
||||||
|
|
||||||
m_textChatInput.LoadFromFont( THEME->GetPathF(m_sName,"chat") );
|
m_textChatInput.LoadFromFont( THEME->GetPathF(m_sName,"chat") );
|
||||||
@@ -60,7 +60,7 @@ void ScreenNetSelectBase::Init()
|
|||||||
m_textChatInput.SetShadowLength( 0 );
|
m_textChatInput.SetShadowLength( 0 );
|
||||||
m_textChatInput.SetName( "ChatInput" );
|
m_textChatInput.SetName( "ChatInput" );
|
||||||
m_textChatInput.SetWrapWidthPixels( (int)(CHAT_TEXT_INPUT_WIDTH) );
|
m_textChatInput.SetWrapWidthPixels( (int)(CHAT_TEXT_INPUT_WIDTH) );
|
||||||
SET_XY_AND_ON_COMMAND( m_textChatInput );
|
LOAD_ALL_COMMANDS_AND_SET_XY_AND_ON_COMMAND( m_textChatInput );
|
||||||
this->AddChild( &m_textChatInput );
|
this->AddChild( &m_textChatInput );
|
||||||
|
|
||||||
m_textChatOutput.LoadFromFont( THEME->GetPathF(m_sName,"chat") );
|
m_textChatOutput.LoadFromFont( THEME->GetPathF(m_sName,"chat") );
|
||||||
@@ -69,7 +69,7 @@ void ScreenNetSelectBase::Init()
|
|||||||
m_textChatOutput.SetVertAlign( align_bottom );
|
m_textChatOutput.SetVertAlign( align_bottom );
|
||||||
m_textChatOutput.SetShadowLength( 0 );
|
m_textChatOutput.SetShadowLength( 0 );
|
||||||
m_textChatOutput.SetName( "ChatOutput" );
|
m_textChatOutput.SetName( "ChatOutput" );
|
||||||
SET_XY_AND_ON_COMMAND( m_textChatOutput );
|
LOAD_ALL_COMMANDS_AND_SET_XY_AND_ON_COMMAND( m_textChatOutput );
|
||||||
this->AddChild( &m_textChatOutput );
|
this->AddChild( &m_textChatOutput );
|
||||||
|
|
||||||
m_textChatOutput.SetText( NSMAN->m_sChatText );
|
m_textChatOutput.SetText( NSMAN->m_sChatText );
|
||||||
@@ -217,7 +217,7 @@ void ScreenNetSelectBase::UpdateUsers()
|
|||||||
|
|
||||||
void UtilSetQuadInit( Actor& actor, const RString &sClassName )
|
void UtilSetQuadInit( Actor& actor, const RString &sClassName )
|
||||||
{
|
{
|
||||||
ActorUtil::SetXYAndOnCommand( actor, sClassName );
|
ActorUtil::LoadAllCommandsAndSetXYAndOnCommand( actor, sClassName );
|
||||||
actor.RunCommands( THEME->GetMetricA( sClassName, actor.GetName() + "Command" ) );
|
actor.RunCommands( THEME->GetMetricA( sClassName, actor.GetName() + "Command" ) );
|
||||||
actor.SetWidth( THEME->GetMetricF( sClassName, actor.GetName() + "Width" ) );
|
actor.SetWidth( THEME->GetMetricF( sClassName, actor.GetName() + "Width" ) );
|
||||||
actor.SetHeight( THEME->GetMetricF( sClassName, actor.GetName() + "Height" ) );
|
actor.SetHeight( THEME->GetMetricF( sClassName, actor.GetName() + "Height" ) );
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ void ScreenNetSelectMusic::Init()
|
|||||||
m_sprDiff.SetName( "DiffBG" );
|
m_sprDiff.SetName( "DiffBG" );
|
||||||
m_sprDiff.SetWidth( DIFFBG_WIDTH );
|
m_sprDiff.SetWidth( DIFFBG_WIDTH );
|
||||||
m_sprDiff.SetHeight( DIFFBG_HEIGHT );
|
m_sprDiff.SetHeight( DIFFBG_HEIGHT );
|
||||||
SET_XY_AND_ON_COMMAND( m_sprDiff );
|
LOAD_ALL_COMMANDS_AND_SET_XY_AND_ON_COMMAND( m_sprDiff );
|
||||||
this->AddChild( &m_sprDiff);
|
this->AddChild( &m_sprDiff);
|
||||||
|
|
||||||
FOREACH_EnabledPlayer (p)
|
FOREACH_EnabledPlayer (p)
|
||||||
@@ -62,20 +62,20 @@ void ScreenNetSelectMusic::Init()
|
|||||||
m_DifficultyIcon[p].Load( THEME->GetPathG( "ScreenSelectMusic",
|
m_DifficultyIcon[p].Load( THEME->GetPathG( "ScreenSelectMusic",
|
||||||
ssprintf("difficulty icons 1x%d",
|
ssprintf("difficulty icons 1x%d",
|
||||||
NUM_Difficulty)) );
|
NUM_Difficulty)) );
|
||||||
SET_XY( m_DifficultyIcon[p] );
|
LOAD_ALL_COMMANDS_AND_SET_XY( m_DifficultyIcon[p] );
|
||||||
this->AddChild( &m_DifficultyIcon[p] );
|
this->AddChild( &m_DifficultyIcon[p] );
|
||||||
ON_COMMAND( m_DifficultyIcon[p] );
|
ON_COMMAND( m_DifficultyIcon[p] );
|
||||||
m_DC[p] = GAMESTATE->m_PreferredDifficulty[p];
|
m_DC[p] = GAMESTATE->m_PreferredDifficulty[p];
|
||||||
|
|
||||||
m_DifficultyMeters[p].SetName( ssprintf("MeterP%d",p+1) );
|
m_DifficultyMeters[p].SetName( ssprintf("MeterP%d",p+1) );
|
||||||
m_DifficultyMeters[p].Load( "DifficultyMeter" );
|
m_DifficultyMeters[p].Load( "DifficultyMeter" );
|
||||||
SET_XY_AND_ON_COMMAND( m_DifficultyMeters[p] );
|
LOAD_ALL_COMMANDS_AND_SET_XY_AND_ON_COMMAND( m_DifficultyMeters[p] );
|
||||||
this->AddChild( &m_DifficultyMeters[p] );
|
this->AddChild( &m_DifficultyMeters[p] );
|
||||||
}
|
}
|
||||||
|
|
||||||
m_MusicWheel.SetName( "MusicWheel" );
|
m_MusicWheel.SetName( "MusicWheel" );
|
||||||
m_MusicWheel.Load( "MusicWheel" );
|
m_MusicWheel.Load( "MusicWheel" );
|
||||||
SET_XY( m_MusicWheel );
|
LOAD_ALL_COMMANDS_AND_SET_XY( m_MusicWheel );
|
||||||
m_MusicWheel.BeginScreen();
|
m_MusicWheel.BeginScreen();
|
||||||
ON_COMMAND( m_MusicWheel );
|
ON_COMMAND( m_MusicWheel );
|
||||||
this->AddChild( &m_MusicWheel );
|
this->AddChild( &m_MusicWheel );
|
||||||
@@ -86,7 +86,7 @@ void ScreenNetSelectMusic::Init()
|
|||||||
m_BPMDisplay.SetName( "BPMDisplay" );
|
m_BPMDisplay.SetName( "BPMDisplay" );
|
||||||
m_BPMDisplay.LoadFromFont( THEME->GetPathF("BPMDisplay","bpm") );
|
m_BPMDisplay.LoadFromFont( THEME->GetPathF("BPMDisplay","bpm") );
|
||||||
m_BPMDisplay.Load();
|
m_BPMDisplay.Load();
|
||||||
SET_XY_AND_ON_COMMAND( m_BPMDisplay );
|
LOAD_ALL_COMMANDS_AND_SET_XY_AND_ON_COMMAND( m_BPMDisplay );
|
||||||
this->AddChild( &m_BPMDisplay );
|
this->AddChild( &m_BPMDisplay );
|
||||||
|
|
||||||
FOREACH_EnabledPlayer( p )
|
FOREACH_EnabledPlayer( p )
|
||||||
@@ -94,7 +94,7 @@ void ScreenNetSelectMusic::Init()
|
|||||||
m_OptionIconRow[p].SetName( ssprintf("OptionIconsP%d",p+1) );
|
m_OptionIconRow[p].SetName( ssprintf("OptionIconsP%d",p+1) );
|
||||||
m_OptionIconRow[p].Load();
|
m_OptionIconRow[p].Load();
|
||||||
m_OptionIconRow[p].SetFromGameState( p );
|
m_OptionIconRow[p].SetFromGameState( p );
|
||||||
SET_XY_AND_ON_COMMAND( m_OptionIconRow[p] );
|
LOAD_ALL_COMMANDS_AND_SET_XY_AND_ON_COMMAND( m_OptionIconRow[p] );
|
||||||
this->AddChild( &m_OptionIconRow[p] );
|
this->AddChild( &m_OptionIconRow[p] );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -116,7 +116,7 @@ void ScreenOptions::Init()
|
|||||||
|
|
||||||
m_sprPage.Load( THEME->GetPathG(m_sName,"page") );
|
m_sprPage.Load( THEME->GetPathG(m_sName,"page") );
|
||||||
m_sprPage->SetName( "Page" );
|
m_sprPage->SetName( "Page" );
|
||||||
SET_XY( m_sprPage );
|
LOAD_ALL_COMMANDS_AND_SET_XY( m_sprPage );
|
||||||
m_framePage.AddChild( m_sprPage );
|
m_framePage.AddChild( m_sprPage );
|
||||||
|
|
||||||
// init line line highlights
|
// init line line highlights
|
||||||
@@ -145,7 +145,7 @@ void ScreenOptions::Init()
|
|||||||
m_textExplanation[p].LoadFromFont( THEME->GetPathF(m_sName,"explanation") );
|
m_textExplanation[p].LoadFromFont( THEME->GetPathF(m_sName,"explanation") );
|
||||||
m_textExplanation[p].SetDrawOrder( 2 );
|
m_textExplanation[p].SetDrawOrder( 2 );
|
||||||
m_textExplanation[p].SetName( "Explanation" + PlayerNumberToString(p) );
|
m_textExplanation[p].SetName( "Explanation" + PlayerNumberToString(p) );
|
||||||
SET_XY( m_textExplanation[p] );
|
LOAD_ALL_COMMANDS_AND_SET_XY( m_textExplanation[p] );
|
||||||
m_framePage.AddChild( &m_textExplanation[p] );
|
m_framePage.AddChild( &m_textExplanation[p] );
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -154,7 +154,7 @@ void ScreenOptions::Init()
|
|||||||
m_textExplanationTogether.LoadFromFont( THEME->GetPathF(m_sName,"explanation") );
|
m_textExplanationTogether.LoadFromFont( THEME->GetPathF(m_sName,"explanation") );
|
||||||
m_textExplanationTogether.SetDrawOrder( 2 );
|
m_textExplanationTogether.SetDrawOrder( 2 );
|
||||||
m_textExplanationTogether.SetName( "ExplanationTogether" );
|
m_textExplanationTogether.SetName( "ExplanationTogether" );
|
||||||
SET_XY( m_textExplanationTogether );
|
LOAD_ALL_COMMANDS_AND_SET_XY( m_textExplanationTogether );
|
||||||
m_framePage.AddChild( &m_textExplanationTogether );
|
m_framePage.AddChild( &m_textExplanationTogether );
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
@@ -169,14 +169,14 @@ void ScreenOptions::Init()
|
|||||||
m_ScrollBar.Load( "DualScrollBar" );
|
m_ScrollBar.Load( "DualScrollBar" );
|
||||||
FOREACH_PlayerNumber( p )
|
FOREACH_PlayerNumber( p )
|
||||||
m_ScrollBar.EnablePlayer( p, GAMESTATE->IsHumanPlayer(p) );
|
m_ScrollBar.EnablePlayer( p, GAMESTATE->IsHumanPlayer(p) );
|
||||||
SET_XY( m_ScrollBar );
|
LOAD_ALL_COMMANDS_AND_SET_XY( m_ScrollBar );
|
||||||
m_ScrollBar.SetDrawOrder( 2 );
|
m_ScrollBar.SetDrawOrder( 2 );
|
||||||
m_framePage.AddChild( &m_ScrollBar );
|
m_framePage.AddChild( &m_ScrollBar );
|
||||||
}
|
}
|
||||||
|
|
||||||
m_sprMore.Load( THEME->GetPathG( m_sName,"more") );
|
m_sprMore.Load( THEME->GetPathG( m_sName,"more") );
|
||||||
m_sprMore->SetName( "More" );
|
m_sprMore->SetName( "More" );
|
||||||
SET_XY( m_sprMore );
|
LOAD_ALL_COMMANDS_AND_SET_XY( m_sprMore );
|
||||||
m_sprMore->SetDrawOrder( 2 );
|
m_sprMore->SetDrawOrder( 2 );
|
||||||
m_sprMore->PlayCommand( "LoseFocus" );
|
m_sprMore->PlayCommand( "LoseFocus" );
|
||||||
m_framePage.AddChild( m_sprMore );
|
m_framePage.AddChild( m_sprMore );
|
||||||
|
|||||||
@@ -42,12 +42,12 @@ void ScreenPackages::Init()
|
|||||||
|
|
||||||
m_sprExistingBG.SetName( "PackagesBG" );
|
m_sprExistingBG.SetName( "PackagesBG" );
|
||||||
m_sprExistingBG.Load( THEME->GetPathG( m_sName, "PackagesBG" ) );
|
m_sprExistingBG.Load( THEME->GetPathG( m_sName, "PackagesBG" ) );
|
||||||
SET_XY_AND_ON_COMMAND( m_sprExistingBG );
|
LOAD_ALL_COMMANDS_AND_SET_XY_AND_ON_COMMAND( m_sprExistingBG );
|
||||||
this->AddChild( &m_sprExistingBG );
|
this->AddChild( &m_sprExistingBG );
|
||||||
|
|
||||||
m_sprWebBG.SetName( "WebBG" );
|
m_sprWebBG.SetName( "WebBG" );
|
||||||
m_sprWebBG.Load( THEME->GetPathG( m_sName, "WebBG" ) );
|
m_sprWebBG.Load( THEME->GetPathG( m_sName, "WebBG" ) );
|
||||||
SET_XY_AND_ON_COMMAND( m_sprWebBG );
|
LOAD_ALL_COMMANDS_AND_SET_XY_AND_ON_COMMAND( m_sprWebBG );
|
||||||
this->AddChild( &m_sprWebBG );
|
this->AddChild( &m_sprWebBG );
|
||||||
|
|
||||||
COMMAND( m_sprExistingBG, "Back" );
|
COMMAND( m_sprExistingBG, "Back" );
|
||||||
@@ -58,7 +58,7 @@ void ScreenPackages::Init()
|
|||||||
m_textPackages.SetShadowLength( 0 );
|
m_textPackages.SetShadowLength( 0 );
|
||||||
m_textPackages.SetName( "Packages" );
|
m_textPackages.SetName( "Packages" );
|
||||||
m_textPackages.SetMaxWidth( EXISTINGBG_WIDTH );
|
m_textPackages.SetMaxWidth( EXISTINGBG_WIDTH );
|
||||||
SET_XY_AND_ON_COMMAND( m_textPackages );
|
LOAD_ALL_COMMANDS_AND_SET_XY_AND_ON_COMMAND( m_textPackages );
|
||||||
this->AddChild( &m_textPackages );
|
this->AddChild( &m_textPackages );
|
||||||
RefreshPackages();
|
RefreshPackages();
|
||||||
|
|
||||||
@@ -66,7 +66,7 @@ void ScreenPackages::Init()
|
|||||||
m_textWeb.SetShadowLength( 0 );
|
m_textWeb.SetShadowLength( 0 );
|
||||||
m_textWeb.SetName( "Web" );
|
m_textWeb.SetName( "Web" );
|
||||||
m_textWeb.SetMaxWidth( WEBBG_WIDTH );
|
m_textWeb.SetMaxWidth( WEBBG_WIDTH );
|
||||||
SET_XY_AND_ON_COMMAND( m_textWeb );
|
LOAD_ALL_COMMANDS_AND_SET_XY_AND_ON_COMMAND( m_textWeb );
|
||||||
this->AddChild( &m_textWeb);
|
this->AddChild( &m_textWeb);
|
||||||
m_Links.push_back( " " );
|
m_Links.push_back( " " );
|
||||||
m_LinkTitles.push_back( "--Visit URL--" );
|
m_LinkTitles.push_back( "--Visit URL--" );
|
||||||
@@ -74,31 +74,31 @@ void ScreenPackages::Init()
|
|||||||
m_textURL.LoadFromFont( THEME->GetPathF( m_sName,"default") );
|
m_textURL.LoadFromFont( THEME->GetPathF( m_sName,"default") );
|
||||||
m_textURL.SetShadowLength( 0 );
|
m_textURL.SetShadowLength( 0 );
|
||||||
m_textURL.SetName( "WebURL" );
|
m_textURL.SetName( "WebURL" );
|
||||||
SET_XY_AND_ON_COMMAND( m_textURL );
|
LOAD_ALL_COMMANDS_AND_SET_XY_AND_ON_COMMAND( m_textURL );
|
||||||
this->AddChild( &m_textURL );
|
this->AddChild( &m_textURL );
|
||||||
UpdateLinksList();
|
UpdateLinksList();
|
||||||
|
|
||||||
m_sprWebSel.SetName( "WebSel" );
|
m_sprWebSel.SetName( "WebSel" );
|
||||||
m_sprWebSel.Load( THEME->GetPathG( m_sName, "WebSel" ) );
|
m_sprWebSel.Load( THEME->GetPathG( m_sName, "WebSel" ) );
|
||||||
SET_XY_AND_ON_COMMAND( m_sprWebSel );
|
LOAD_ALL_COMMANDS_AND_SET_XY_AND_ON_COMMAND( m_sprWebSel );
|
||||||
this->AddChild( &m_sprWebSel );
|
this->AddChild( &m_sprWebSel );
|
||||||
|
|
||||||
m_sprDLBG.SetName( "Download" );
|
m_sprDLBG.SetName( "Download" );
|
||||||
m_sprDLBG.Load( THEME->GetPathG( m_sName, "DownloadBG" ) );
|
m_sprDLBG.Load( THEME->GetPathG( m_sName, "DownloadBG" ) );
|
||||||
SET_XY_AND_ON_COMMAND( m_sprDLBG );
|
LOAD_ALL_COMMANDS_AND_SET_XY_AND_ON_COMMAND( m_sprDLBG );
|
||||||
this->AddChild( &m_sprDLBG );
|
this->AddChild( &m_sprDLBG );
|
||||||
|
|
||||||
//(HTTP ELEMENTS)
|
//(HTTP ELEMENTS)
|
||||||
m_sprDL.SetName( "Download" );
|
m_sprDL.SetName( "Download" );
|
||||||
m_sprDL.Load( THEME->GetPathG( m_sName, "Download" ) );
|
m_sprDL.Load( THEME->GetPathG( m_sName, "Download" ) );
|
||||||
SET_XY_AND_ON_COMMAND( m_sprDL );
|
LOAD_ALL_COMMANDS_AND_SET_XY_AND_ON_COMMAND( m_sprDL );
|
||||||
this->AddChild( &m_sprDL );
|
this->AddChild( &m_sprDL );
|
||||||
m_sprDL.RunCommands( THEME->GetMetricA( m_sName, "DownloadProgressCommand" ) );
|
m_sprDL.RunCommands( THEME->GetMetricA( m_sName, "DownloadProgressCommand" ) );
|
||||||
|
|
||||||
m_textStatus.LoadFromFont( THEME->GetPathF(m_sName,"default") );
|
m_textStatus.LoadFromFont( THEME->GetPathF(m_sName,"default") );
|
||||||
m_textStatus.SetShadowLength( 0 );
|
m_textStatus.SetShadowLength( 0 );
|
||||||
m_textStatus.SetName( "DownloadStatus" );
|
m_textStatus.SetName( "DownloadStatus" );
|
||||||
SET_XY_AND_ON_COMMAND( m_textStatus );
|
LOAD_ALL_COMMANDS_AND_SET_XY_AND_ON_COMMAND( m_textStatus );
|
||||||
this->AddChild( &m_textStatus );
|
this->AddChild( &m_textStatus );
|
||||||
|
|
||||||
UpdateProgress();
|
UpdateProgress();
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ void ScreenPlayerOptions::Init()
|
|||||||
{
|
{
|
||||||
m_sprDisqualify[p].Load( THEME->GetPathG(m_sName,"disqualify") );
|
m_sprDisqualify[p].Load( THEME->GetPathG(m_sName,"disqualify") );
|
||||||
m_sprDisqualify[p]->SetName( ssprintf("DisqualifyP%i",p+1) );
|
m_sprDisqualify[p]->SetName( ssprintf("DisqualifyP%i",p+1) );
|
||||||
SET_XY( m_sprDisqualify[p] );
|
LOAD_ALL_COMMANDS_AND_SET_XY( m_sprDisqualify[p] );
|
||||||
m_sprDisqualify[p]->SetVisible( false ); // unhide later if handicapping options are discovered
|
m_sprDisqualify[p]->SetVisible( false ); // unhide later if handicapping options are discovered
|
||||||
m_sprDisqualify[p]->SetDrawOrder( 2 );
|
m_sprDisqualify[p]->SetDrawOrder( 2 );
|
||||||
m_framePage.AddChild( m_sprDisqualify[p] );
|
m_framePage.AddChild( m_sprDisqualify[p] );
|
||||||
|
|||||||
@@ -80,7 +80,7 @@ void ScreenPrompt::BeginScreen()
|
|||||||
ENUM_CLAMP( m_Answer, PromptAnswer(0), PromptAnswer(g_PromptType) );
|
ENUM_CLAMP( m_Answer, PromptAnswer(0), PromptAnswer(g_PromptType) );
|
||||||
|
|
||||||
m_textQuestion.SetText( g_sText );
|
m_textQuestion.SetText( g_sText );
|
||||||
SET_XY_AND_ON_COMMAND( m_textQuestion );
|
LOAD_ALL_COMMANDS_AND_SET_XY_AND_ON_COMMAND( m_textQuestion );
|
||||||
|
|
||||||
ON_COMMAND( m_sprCursor );
|
ON_COMMAND( m_sprCursor );
|
||||||
|
|
||||||
@@ -94,7 +94,7 @@ void ScreenPrompt::BeginScreen()
|
|||||||
sAnswer = "OK";
|
sAnswer = "OK";
|
||||||
|
|
||||||
m_textAnswer[i].SetText( ANSWER_TEXT(sAnswer) );
|
m_textAnswer[i].SetText( ANSWER_TEXT(sAnswer) );
|
||||||
SET_XY_AND_ON_COMMAND( m_textAnswer[i] );
|
LOAD_ALL_COMMANDS_AND_SET_XY_AND_ON_COMMAND( m_textAnswer[i] );
|
||||||
}
|
}
|
||||||
|
|
||||||
for( int i=g_PromptType+1; i<NUM_PromptAnswer; i++ )
|
for( int i=g_PromptType+1; i<NUM_PromptAnswer; i++ )
|
||||||
|
|||||||
@@ -127,8 +127,8 @@ void ScreenRanking::Init()
|
|||||||
|
|
||||||
void ScreenRanking::BeginScreen()
|
void ScreenRanking::BeginScreen()
|
||||||
{
|
{
|
||||||
SET_XY( m_textStepsType );
|
LOAD_ALL_COMMANDS_AND_SET_XY( m_textStepsType );
|
||||||
SET_XY( m_sprPageType );
|
LOAD_ALL_COMMANDS_AND_SET_XY( m_sprPageType );
|
||||||
|
|
||||||
m_iNextPageToShow = 0;
|
m_iNextPageToShow = 0;
|
||||||
|
|
||||||
@@ -468,7 +468,7 @@ void ScreenRankingScroller::BeginScreen()
|
|||||||
{
|
{
|
||||||
ScreenRanking::BeginScreen();
|
ScreenRanking::BeginScreen();
|
||||||
|
|
||||||
SET_XY( m_ListScoreRowItems );
|
LOAD_ALL_COMMANDS_AND_SET_XY( m_ListScoreRowItems );
|
||||||
}
|
}
|
||||||
|
|
||||||
void ScoreScroller::SetScoreFromHighScoreList( BitmapText *pTextStepsScore, const HighScoreList &hsl )
|
void ScoreScroller::SetScoreFromHighScoreList( BitmapText *pTextStepsScore, const HighScoreList &hsl )
|
||||||
@@ -757,12 +757,12 @@ float ScreenRankingLines::SetPage( const PageToShow &pts )
|
|||||||
void ScreenRankingLines::BeginScreen()
|
void ScreenRankingLines::BeginScreen()
|
||||||
{
|
{
|
||||||
if( m_PageType == PageType_Category )
|
if( m_PageType == PageType_Category )
|
||||||
SET_XY( m_textCategory );
|
LOAD_ALL_COMMANDS_AND_SET_XY( m_textCategory );
|
||||||
|
|
||||||
if( m_PageType == PageType_Trail )
|
if( m_PageType == PageType_Trail )
|
||||||
{
|
{
|
||||||
SET_XY( m_Banner );
|
LOAD_ALL_COMMANDS_AND_SET_XY( m_Banner );
|
||||||
SET_XY( m_textCourseTitle );
|
LOAD_ALL_COMMANDS_AND_SET_XY( m_textCourseTitle );
|
||||||
}
|
}
|
||||||
|
|
||||||
ScreenRanking::BeginScreen();
|
ScreenRanking::BeginScreen();
|
||||||
|
|||||||
@@ -56,25 +56,25 @@ void ScreenSelectDifficulty::Init()
|
|||||||
{
|
{
|
||||||
m_sprPicture[page][choice].SetName( ssprintf("PicturePage%dChoice%d",page+1,choice+1) );
|
m_sprPicture[page][choice].SetName( ssprintf("PicturePage%dChoice%d",page+1,choice+1) );
|
||||||
m_sprPicture[page][choice].Load( THEME->GetPathG(m_sName,ssprintf("picture%d",c+1)) );
|
m_sprPicture[page][choice].Load( THEME->GetPathG(m_sName,ssprintf("picture%d",c+1)) );
|
||||||
SET_XY( m_sprPicture[page][choice] );
|
LOAD_ALL_COMMANDS_AND_SET_XY( m_sprPicture[page][choice] );
|
||||||
m_framePages.AddChild( &m_sprPicture[page][choice] );
|
m_framePages.AddChild( &m_sprPicture[page][choice] );
|
||||||
|
|
||||||
m_sprInfo[page][choice].SetName( ssprintf("InfoPage%dChoice%d",page+1,choice+1) );
|
m_sprInfo[page][choice].SetName( ssprintf("InfoPage%dChoice%d",page+1,choice+1) );
|
||||||
m_sprInfo[page][choice].Load( THEME->GetPathG(m_sName,ssprintf("info%d",c+1)) );
|
m_sprInfo[page][choice].Load( THEME->GetPathG(m_sName,ssprintf("info%d",c+1)) );
|
||||||
SET_XY( m_sprInfo[page][choice] );
|
LOAD_ALL_COMMANDS_AND_SET_XY( m_sprInfo[page][choice] );
|
||||||
m_framePages.AddChild( &m_sprInfo[page][choice] );
|
m_framePages.AddChild( &m_sprInfo[page][choice] );
|
||||||
}
|
}
|
||||||
|
|
||||||
m_sprMore[page].SetName( ssprintf("MorePage%d",page+1) );
|
m_sprMore[page].SetName( ssprintf("MorePage%d",page+1) );
|
||||||
m_sprMore[page].Load( THEME->GetPathG(m_sName,ssprintf("more page%d",page+1)) );
|
m_sprMore[page].Load( THEME->GetPathG(m_sName,ssprintf("more page%d",page+1)) );
|
||||||
SET_XY( m_sprMore[page] );
|
LOAD_ALL_COMMANDS_AND_SET_XY( m_sprMore[page] );
|
||||||
m_framePages.AddChild( &m_sprMore[page] );
|
m_framePages.AddChild( &m_sprMore[page] );
|
||||||
|
|
||||||
m_sprExplanation[page].SetName( ssprintf("ExplanationPage%d",page+1) );
|
m_sprExplanation[page].SetName( ssprintf("ExplanationPage%d",page+1) );
|
||||||
m_sprExplanation[page].Load( THEME->GetPathG(m_sName,"explanation") );
|
m_sprExplanation[page].Load( THEME->GetPathG(m_sName,"explanation") );
|
||||||
m_sprExplanation[page].StopAnimating();
|
m_sprExplanation[page].StopAnimating();
|
||||||
m_sprExplanation[page].SetState( page );
|
m_sprExplanation[page].SetState( page );
|
||||||
SET_XY( m_sprExplanation[page] );
|
LOAD_ALL_COMMANDS_AND_SET_XY( m_sprExplanation[page] );
|
||||||
m_framePages.AddChild( &m_sprExplanation[page] );
|
m_framePages.AddChild( &m_sprExplanation[page] );
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -109,6 +109,7 @@ void ScreenSelectDifficulty::Init()
|
|||||||
|
|
||||||
m_sprOK[p].SetName( "OK" );
|
m_sprOK[p].SetName( "OK" );
|
||||||
m_sprOK[p].Load( THEME->GetPathG(m_sName,"ok 2x1") );
|
m_sprOK[p].Load( THEME->GetPathG(m_sName,"ok 2x1") );
|
||||||
|
ActorUtil::LoadAllCommands( m_sprOK[p], m_sName );
|
||||||
m_sprOK[p].SetState( p );
|
m_sprOK[p].SetState( p );
|
||||||
m_sprOK[p].StopAnimating();
|
m_sprOK[p].StopAnimating();
|
||||||
m_sprOK[p].SetDiffuse( RageColor(1,1,1,0) );
|
m_sprOK[p].SetDiffuse( RageColor(1,1,1,0) );
|
||||||
|
|||||||
@@ -238,13 +238,13 @@ void ScreenSelectGroup::TweenOffScreen()
|
|||||||
|
|
||||||
void ScreenSelectGroup::TweenOnScreen()
|
void ScreenSelectGroup::TweenOnScreen()
|
||||||
{
|
{
|
||||||
SET_XY_AND_ON_COMMAND( m_sprExplanation );
|
LOAD_ALL_COMMANDS_AND_SET_XY_AND_ON_COMMAND( m_sprExplanation );
|
||||||
SET_XY_AND_ON_COMMAND( m_sprFrame );
|
LOAD_ALL_COMMANDS_AND_SET_XY_AND_ON_COMMAND( m_sprFrame );
|
||||||
SET_XY_AND_ON_COMMAND( m_Banner );
|
LOAD_ALL_COMMANDS_AND_SET_XY_AND_ON_COMMAND( m_Banner );
|
||||||
SET_XY_AND_ON_COMMAND( m_textNumber );
|
LOAD_ALL_COMMANDS_AND_SET_XY_AND_ON_COMMAND( m_textNumber );
|
||||||
SET_XY_AND_ON_COMMAND( m_sprContents );
|
LOAD_ALL_COMMANDS_AND_SET_XY_AND_ON_COMMAND( m_sprContents );
|
||||||
SET_XY_AND_ON_COMMAND( m_MusicList );
|
LOAD_ALL_COMMANDS_AND_SET_XY_AND_ON_COMMAND( m_MusicList );
|
||||||
SET_XY_AND_ON_COMMAND( m_GroupList );
|
LOAD_ALL_COMMANDS_AND_SET_XY_AND_ON_COMMAND( m_GroupList );
|
||||||
m_MusicList.TweenOnScreen();
|
m_MusicList.TweenOnScreen();
|
||||||
m_GroupList.TweenOnScreen();
|
m_GroupList.TweenOnScreen();
|
||||||
|
|
||||||
|
|||||||
@@ -795,7 +795,7 @@ void ScreenSelectMaster::TweenOnScreen()
|
|||||||
m_vsprIcon[c]->PlayCommand( (int(c) == m_iChoice[0])? "GainFocus":"LoseFocus" );
|
m_vsprIcon[c]->PlayCommand( (int(c) == m_iChoice[0])? "GainFocus":"LoseFocus" );
|
||||||
m_vsprIcon[c]->FinishTweening();
|
m_vsprIcon[c]->FinishTweening();
|
||||||
if( USE_ICON_METRICS )
|
if( USE_ICON_METRICS )
|
||||||
SET_XY_AND_ON_COMMAND( m_vsprIcon[c] );
|
LOAD_ALL_COMMANDS_AND_SET_XY_AND_ON_COMMAND( m_vsprIcon[c] );
|
||||||
else
|
else
|
||||||
m_vsprIcon[c]->PlayCommand( "On" );
|
m_vsprIcon[c]->PlayCommand( "On" );
|
||||||
}
|
}
|
||||||
@@ -814,7 +814,7 @@ void ScreenSelectMaster::TweenOnScreen()
|
|||||||
}
|
}
|
||||||
|
|
||||||
m_Scroller[*p].SetCurrentAndDestinationItem( (float)m_iChoice[*p] );
|
m_Scroller[*p].SetCurrentAndDestinationItem( (float)m_iChoice[*p] );
|
||||||
SET_XY_AND_ON_COMMAND( m_Scroller[*p] );
|
LOAD_ALL_COMMANDS_AND_SET_XY_AND_ON_COMMAND( m_Scroller[*p] );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ void ScreenSelectMode::Init()
|
|||||||
{
|
{
|
||||||
m_iCurrentChar[pn]= -1; // minus 1 indicates no character.
|
m_iCurrentChar[pn]= -1; // minus 1 indicates no character.
|
||||||
m_CurChar[pn].SetName(ssprintf("CharacterIconP%d",pn+1));
|
m_CurChar[pn].SetName(ssprintf("CharacterIconP%d",pn+1));
|
||||||
SET_XY( m_CurChar[pn] );
|
LOAD_ALL_COMMANDS_AND_SET_XY( m_CurChar[pn] );
|
||||||
}
|
}
|
||||||
m_bSelected = false;
|
m_bSelected = false;
|
||||||
m_ChoiceListFrame.Load( THEME->GetPathG("ScreenSelectMode","list frame"));
|
m_ChoiceListFrame.Load( THEME->GetPathG("ScreenSelectMode","list frame"));
|
||||||
|
|||||||
@@ -113,24 +113,24 @@ void ScreenSelectMusic::Init()
|
|||||||
|
|
||||||
m_MusicWheel.SetName( "MusicWheel" );
|
m_MusicWheel.SetName( "MusicWheel" );
|
||||||
m_MusicWheel.Load( MUSIC_WHEEL_TYPE );
|
m_MusicWheel.Load( MUSIC_WHEEL_TYPE );
|
||||||
SET_XY( m_MusicWheel );
|
LOAD_ALL_COMMANDS_AND_SET_XY( m_MusicWheel );
|
||||||
this->AddChild( &m_MusicWheel );
|
this->AddChild( &m_MusicWheel );
|
||||||
|
|
||||||
// this is loaded SetSong and TweenToSong
|
// this is loaded SetSong and TweenToSong
|
||||||
m_Banner.SetName( "Banner" );
|
m_Banner.SetName( "Banner" );
|
||||||
m_Banner.SetZTestMode( ZTEST_WRITE_ON_PASS ); // do have to pass the z test
|
m_Banner.SetZTestMode( ZTEST_WRITE_ON_PASS ); // do have to pass the z test
|
||||||
SET_XY( m_Banner );
|
LOAD_ALL_COMMANDS_AND_SET_XY( m_Banner );
|
||||||
this->AddChild( &m_Banner );
|
this->AddChild( &m_Banner );
|
||||||
|
|
||||||
m_sprCDTitleFront.SetName( "CDTitle" );
|
m_sprCDTitleFront.SetName( "CDTitle" );
|
||||||
m_sprCDTitleFront.Load( THEME->GetPathG(m_sName,"fallback cdtitle") );
|
m_sprCDTitleFront.Load( THEME->GetPathG(m_sName,"fallback cdtitle") );
|
||||||
SET_XY( m_sprCDTitleFront );
|
LOAD_ALL_COMMANDS_AND_SET_XY( m_sprCDTitleFront );
|
||||||
COMMAND( m_sprCDTitleFront, "Front" );
|
COMMAND( m_sprCDTitleFront, "Front" );
|
||||||
this->AddChild( &m_sprCDTitleFront );
|
this->AddChild( &m_sprCDTitleFront );
|
||||||
|
|
||||||
m_sprCDTitleBack.SetName( "CDTitle" );
|
m_sprCDTitleBack.SetName( "CDTitle" );
|
||||||
m_sprCDTitleBack.Load( THEME->GetPathG(m_sName,"fallback cdtitle") );
|
m_sprCDTitleBack.Load( THEME->GetPathG(m_sName,"fallback cdtitle") );
|
||||||
SET_XY( m_sprCDTitleBack );
|
LOAD_ALL_COMMANDS_AND_SET_XY( m_sprCDTitleBack );
|
||||||
COMMAND( m_sprCDTitleBack, "Back" );
|
COMMAND( m_sprCDTitleBack, "Back" );
|
||||||
this->AddChild( &m_sprCDTitleBack );
|
this->AddChild( &m_sprCDTitleBack );
|
||||||
|
|
||||||
@@ -138,14 +138,14 @@ void ScreenSelectMusic::Init()
|
|||||||
{
|
{
|
||||||
m_sprHighScoreFrame[p].SetName( ssprintf("ScoreFrameP%d",p+1) );
|
m_sprHighScoreFrame[p].SetName( ssprintf("ScoreFrameP%d",p+1) );
|
||||||
m_sprHighScoreFrame[p].Load( THEME->GetPathG(m_sName,ssprintf("score frame p%d",p+1)) );
|
m_sprHighScoreFrame[p].Load( THEME->GetPathG(m_sName,ssprintf("score frame p%d",p+1)) );
|
||||||
SET_XY( m_sprHighScoreFrame[p] );
|
LOAD_ALL_COMMANDS_AND_SET_XY( m_sprHighScoreFrame[p] );
|
||||||
this->AddChild( &m_sprHighScoreFrame[p] );
|
this->AddChild( &m_sprHighScoreFrame[p] );
|
||||||
|
|
||||||
m_textHighScore[p].SetName( ssprintf("ScoreP%d",p+1) );
|
m_textHighScore[p].SetName( ssprintf("ScoreP%d",p+1) );
|
||||||
m_textHighScore[p].LoadFromFont( THEME->GetPathF(m_sName,"score") );
|
m_textHighScore[p].LoadFromFont( THEME->GetPathF(m_sName,"score") );
|
||||||
m_textHighScore[p].SetShadowLength( 0 );
|
m_textHighScore[p].SetShadowLength( 0 );
|
||||||
m_textHighScore[p].RunCommands( CommonMetrics::PLAYER_COLOR.GetValue(p) );
|
m_textHighScore[p].RunCommands( CommonMetrics::PLAYER_COLOR.GetValue(p) );
|
||||||
SET_XY( m_textHighScore[p] );
|
LOAD_ALL_COMMANDS_AND_SET_XY( m_textHighScore[p] );
|
||||||
this->AddChild( &m_textHighScore[p] );
|
this->AddChild( &m_textHighScore[p] );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -121,12 +121,12 @@ void ScreenSelectStyle::Init()
|
|||||||
//
|
//
|
||||||
for( unsigned i=0; i<m_aGameCommands.size(); i++ )
|
for( unsigned i=0; i<m_aGameCommands.size(); i++ )
|
||||||
{
|
{
|
||||||
SET_XY( m_textIcon[i] );
|
LOAD_ALL_COMMANDS_AND_SET_XY( m_textIcon[i] );
|
||||||
SET_XY( m_sprIcon[i] );
|
LOAD_ALL_COMMANDS_AND_SET_XY( m_sprIcon[i] );
|
||||||
}
|
}
|
||||||
SET_XY( m_sprExplanation );
|
LOAD_ALL_COMMANDS_AND_SET_XY( m_sprExplanation );
|
||||||
SET_XY( m_sprWarning );
|
LOAD_ALL_COMMANDS_AND_SET_XY( m_sprWarning );
|
||||||
SET_XY( m_sprPremium );
|
LOAD_ALL_COMMANDS_AND_SET_XY( m_sprPremium );
|
||||||
|
|
||||||
// let AfterChange tween Picture and Info
|
// let AfterChange tween Picture and Info
|
||||||
}
|
}
|
||||||
@@ -293,8 +293,8 @@ void ScreenSelectStyle::AfterChange()
|
|||||||
m_sprInfo[m_iSelection].SetDiffuse( RageColor(1,1,1,1) );
|
m_sprInfo[m_iSelection].SetDiffuse( RageColor(1,1,1,1) );
|
||||||
m_sprPicture[m_iSelection].SetZoom( 1 );
|
m_sprPicture[m_iSelection].SetZoom( 1 );
|
||||||
m_sprInfo[m_iSelection].SetZoom( 1 );
|
m_sprInfo[m_iSelection].SetZoom( 1 );
|
||||||
SET_XY_AND_ON_COMMAND( m_sprPicture[m_iSelection] );
|
LOAD_ALL_COMMANDS_AND_SET_XY_AND_ON_COMMAND( m_sprPicture[m_iSelection] );
|
||||||
SET_XY_AND_ON_COMMAND( m_sprInfo[m_iSelection] );
|
LOAD_ALL_COMMANDS_AND_SET_XY_AND_ON_COMMAND( m_sprInfo[m_iSelection] );
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ void ScreenStatsOverlay::Init()
|
|||||||
|
|
||||||
m_textStats.LoadFromFont( THEME->GetPathF(m_sName,"stats") );
|
m_textStats.LoadFromFont( THEME->GetPathF(m_sName,"stats") );
|
||||||
m_textStats.SetName( "Stats" );
|
m_textStats.SetName( "Stats" );
|
||||||
SET_XY_AND_ON_COMMAND( m_textStats );
|
LOAD_ALL_COMMANDS_AND_SET_XY_AND_ON_COMMAND( m_textStats );
|
||||||
this->AddChild( &m_textStats );
|
this->AddChild( &m_textStats );
|
||||||
|
|
||||||
/* "Was that a skip?" This displays a message when an update takes
|
/* "Was that a skip?" This displays a message when an update takes
|
||||||
|
|||||||
@@ -52,7 +52,7 @@ void ScreenTestFonts::Init()
|
|||||||
|
|
||||||
txt.SetName( "Text" );
|
txt.SetName( "Text" );
|
||||||
SetFont( THEME->GetPathF("", FONT(1)) );
|
SetFont( THEME->GetPathF("", FONT(1)) );
|
||||||
SET_XY_AND_ON_COMMAND( txt );
|
LOAD_ALL_COMMANDS_AND_SET_XY_AND_ON_COMMAND( txt );
|
||||||
SetText( "Foo" );
|
SetText( "Foo" );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ void ScreenTestLights::Init()
|
|||||||
m_textInputs.SetName( "Text" );
|
m_textInputs.SetName( "Text" );
|
||||||
m_textInputs.LoadFromFont( THEME->GetPathF("Common","normal") );
|
m_textInputs.LoadFromFont( THEME->GetPathF("Common","normal") );
|
||||||
m_textInputs.SetText( "" );
|
m_textInputs.SetText( "" );
|
||||||
SET_XY_AND_ON_COMMAND( m_textInputs );
|
LOAD_ALL_COMMANDS_AND_SET_XY_AND_ON_COMMAND( m_textInputs );
|
||||||
this->AddChild( &m_textInputs );
|
this->AddChild( &m_textInputs );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -135,8 +135,8 @@ void ScreenTextEntry::BeginScreen()
|
|||||||
ScreenWithMenuElements::BeginScreen();
|
ScreenWithMenuElements::BeginScreen();
|
||||||
|
|
||||||
m_textQuestion.SetText( g_sQuestion );
|
m_textQuestion.SetText( g_sQuestion );
|
||||||
SET_XY_AND_ON_COMMAND( m_textQuestion );
|
LOAD_ALL_COMMANDS_AND_SET_XY_AND_ON_COMMAND( m_textQuestion );
|
||||||
SET_XY_AND_ON_COMMAND( m_textAnswer );
|
LOAD_ALL_COMMANDS_AND_SET_XY_AND_ON_COMMAND( m_textAnswer );
|
||||||
|
|
||||||
UpdateAnswerText();
|
UpdateAnswerText();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -52,7 +52,7 @@ void ScreenUnlockBrowse::MenuStart( const InputEventPlus &input )
|
|||||||
|
|
||||||
void ScreenUnlockBrowse::TweenOnScreen()
|
void ScreenUnlockBrowse::TweenOnScreen()
|
||||||
{
|
{
|
||||||
SET_XY_AND_ON_COMMAND( m_banner );
|
LOAD_ALL_COMMANDS_AND_SET_XY_AND_ON_COMMAND( m_banner );
|
||||||
ScreenSelectMaster::TweenOnScreen();
|
ScreenSelectMaster::TweenOnScreen();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -60,7 +60,7 @@ void ScreenUnlockStatus::Init()
|
|||||||
|
|
||||||
// set graphic location
|
// set graphic location
|
||||||
pSpr->SetName( ssprintf("Unlock%04d",i) );
|
pSpr->SetName( ssprintf("Unlock%04d",i) );
|
||||||
SET_XY( pSpr );
|
LOAD_ALL_COMMANDS_AND_SET_XY( pSpr );
|
||||||
|
|
||||||
pSpr->RunCommands(IconCommand);
|
pSpr->RunCommands(IconCommand);
|
||||||
Unlocks.push_back(pSpr);
|
Unlocks.push_back(pSpr);
|
||||||
@@ -303,7 +303,7 @@ void ScreenUnlockStatus::Init()
|
|||||||
}
|
}
|
||||||
|
|
||||||
PointsUntilNextUnlock.SetZoom( POINTS_ZOOM );
|
PointsUntilNextUnlock.SetZoom( POINTS_ZOOM );
|
||||||
SET_XY( PointsUntilNextUnlock );
|
LOAD_ALL_COMMANDS_AND_SET_XY( PointsUntilNextUnlock );
|
||||||
this->AddChild( &PointsUntilNextUnlock );
|
this->AddChild( &PointsUntilNextUnlock );
|
||||||
|
|
||||||
this->ClearMessageQueue( SM_BeginFadingOut ); // ignore ScreenAttract's SecsToShow
|
this->ClearMessageQueue( SM_BeginFadingOut ); // ignore ScreenAttract's SecsToShow
|
||||||
|
|||||||
@@ -42,14 +42,14 @@ void ScreenWithMenuElements::Init()
|
|||||||
|
|
||||||
m_autoHeader.Load( THEME->GetPathG(m_sName,"header") );
|
m_autoHeader.Load( THEME->GetPathG(m_sName,"header") );
|
||||||
m_autoHeader->SetName("Header");
|
m_autoHeader->SetName("Header");
|
||||||
SET_XY( m_autoHeader );
|
LOAD_ALL_COMMANDS_AND_SET_XY( m_autoHeader );
|
||||||
this->AddChild( m_autoHeader );
|
this->AddChild( m_autoHeader );
|
||||||
|
|
||||||
if( SHOW_STAGE )
|
if( SHOW_STAGE )
|
||||||
{
|
{
|
||||||
m_sprStage.Load( THEME->GetPathG(m_sName,"stage") );
|
m_sprStage.Load( THEME->GetPathG(m_sName,"stage") );
|
||||||
m_sprStage->SetName( "Stage" );
|
m_sprStage->SetName( "Stage" );
|
||||||
SET_XY( m_sprStage );
|
LOAD_ALL_COMMANDS_AND_SET_XY( m_sprStage );
|
||||||
this->AddChild( m_sprStage );
|
this->AddChild( m_sprStage );
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -61,7 +61,7 @@ void ScreenWithMenuElements::Init()
|
|||||||
m_MemoryCardDisplay[p] = new MemoryCardDisplay;
|
m_MemoryCardDisplay[p] = new MemoryCardDisplay;
|
||||||
m_MemoryCardDisplay[p]->Load( p );
|
m_MemoryCardDisplay[p]->Load( p );
|
||||||
m_MemoryCardDisplay[p]->SetName( ssprintf("MemoryCardDisplayP%d",p+1) );
|
m_MemoryCardDisplay[p]->SetName( ssprintf("MemoryCardDisplayP%d",p+1) );
|
||||||
SET_XY( m_MemoryCardDisplay[p] );
|
LOAD_ALL_COMMANDS_AND_SET_XY( m_MemoryCardDisplay[p] );
|
||||||
this->AddChild( m_MemoryCardDisplay[p] );
|
this->AddChild( m_MemoryCardDisplay[p] );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -74,33 +74,33 @@ void ScreenWithMenuElements::Init()
|
|||||||
m_MenuTimer->SetName( "Timer" );
|
m_MenuTimer->SetName( "Timer" );
|
||||||
if( TIMER_STEALTH )
|
if( TIMER_STEALTH )
|
||||||
m_MenuTimer->EnableStealth( true );
|
m_MenuTimer->EnableStealth( true );
|
||||||
SET_XY( m_MenuTimer );
|
LOAD_ALL_COMMANDS_AND_SET_XY( m_MenuTimer );
|
||||||
ResetTimer();
|
ResetTimer();
|
||||||
this->AddChild( m_MenuTimer );
|
this->AddChild( m_MenuTimer );
|
||||||
}
|
}
|
||||||
|
|
||||||
m_autoFooter.Load( THEME->GetPathG(m_sName,"footer") );
|
m_autoFooter.Load( THEME->GetPathG(m_sName,"footer") );
|
||||||
m_autoFooter->SetName("Footer");
|
m_autoFooter->SetName("Footer");
|
||||||
SET_XY( m_autoFooter );
|
LOAD_ALL_COMMANDS_AND_SET_XY( m_autoFooter );
|
||||||
this->AddChild( m_autoFooter );
|
this->AddChild( m_autoFooter );
|
||||||
|
|
||||||
m_textHelp->SetName( "Help" );
|
m_textHelp->SetName( "Help" );
|
||||||
m_textHelp->Load( "HelpDisplay" );
|
m_textHelp->Load( "HelpDisplay" );
|
||||||
m_textHelp->LoadFromFont( THEME->GetPathF("HelpDisplay","text") );
|
m_textHelp->LoadFromFont( THEME->GetPathF("HelpDisplay","text") );
|
||||||
SET_XY( m_textHelp );
|
LOAD_ALL_COMMANDS_AND_SET_XY( m_textHelp );
|
||||||
LoadHelpText();
|
LoadHelpText();
|
||||||
this->AddChild( m_textHelp );
|
this->AddChild( m_textHelp );
|
||||||
|
|
||||||
m_sprUnderlay.Load( THEME->GetPathB(m_sName,"underlay") );
|
m_sprUnderlay.Load( THEME->GetPathB(m_sName,"underlay") );
|
||||||
m_sprUnderlay->SetName("Underlay");
|
m_sprUnderlay->SetName("Underlay");
|
||||||
m_sprUnderlay->SetDrawOrder( DRAW_ORDER_UNDERLAY );
|
m_sprUnderlay->SetDrawOrder( DRAW_ORDER_UNDERLAY );
|
||||||
SET_XY( m_sprUnderlay );
|
LOAD_ALL_COMMANDS_AND_SET_XY( m_sprUnderlay );
|
||||||
this->AddChild( m_sprUnderlay );
|
this->AddChild( m_sprUnderlay );
|
||||||
|
|
||||||
m_sprOverlay.Load( THEME->GetPathB(m_sName,"overlay") );
|
m_sprOverlay.Load( THEME->GetPathB(m_sName,"overlay") );
|
||||||
m_sprOverlay->SetName("Overlay");
|
m_sprOverlay->SetName("Overlay");
|
||||||
m_sprOverlay->SetDrawOrder( DRAW_ORDER_OVERLAY );
|
m_sprOverlay->SetDrawOrder( DRAW_ORDER_OVERLAY );
|
||||||
SET_XY( m_sprOverlay );
|
LOAD_ALL_COMMANDS_AND_SET_XY( m_sprOverlay );
|
||||||
this->AddChild( m_sprOverlay );
|
this->AddChild( m_sprOverlay );
|
||||||
|
|
||||||
m_In.SetName( "In" );
|
m_In.SetName( "In" );
|
||||||
|
|||||||
@@ -33,9 +33,9 @@ void TextBanner::Load( RString sType )
|
|||||||
THREE_LINES_SUBTITLE_COMMAND .Load(sType,"ThreeLinesSubtitleCommand");
|
THREE_LINES_SUBTITLE_COMMAND .Load(sType,"ThreeLinesSubtitleCommand");
|
||||||
THREE_LINES_ARTIST_COMMAND .Load(sType,"ThreeLinesArtistCommand");
|
THREE_LINES_ARTIST_COMMAND .Load(sType,"ThreeLinesArtistCommand");
|
||||||
|
|
||||||
ActorUtil::SetXYAndOnCommand( m_textTitle, sType );
|
ActorUtil::LoadAllCommandsAndSetXYAndOnCommand( m_textTitle, sType );
|
||||||
ActorUtil::SetXYAndOnCommand( m_textSubTitle, sType );
|
ActorUtil::LoadAllCommandsAndSetXYAndOnCommand( m_textSubTitle, sType );
|
||||||
ActorUtil::SetXYAndOnCommand( m_textArtist, sType );
|
ActorUtil::LoadAllCommandsAndSetXYAndOnCommand( m_textArtist, sType );
|
||||||
}
|
}
|
||||||
|
|
||||||
TextBanner::TextBanner()
|
TextBanner::TextBanner()
|
||||||
|
|||||||
Reference in New Issue
Block a user