Moved backgrounds into "Backgrounds" assets folder. Any BGAnimation may be used now.
Cleaned up many, many graphics.
This commit is contained in:
@@ -849,7 +849,7 @@ will be blurry.
|
||||
Whenever possible:
|
||||
* Keep your images to dimensions smaller or equal to 256x256.
|
||||
* Make your images have an even number for each dimension (e.g. 286x120 is
|
||||
will appear less blurr than 285x119). The reason behind this has to do with
|
||||
will appear less blurry than 285x119). The reason behind this has to do with
|
||||
how 3D accelerators represent screen coordinates with floating point numbers,
|
||||
not integers.
|
||||
|
||||
|
||||
@@ -2,6 +2,16 @@
|
||||
Fix
|
||||
/////////////////////////
|
||||
|
||||
In the arcade, it doesn't sort music by alphabetical order in its group, but rather, it sorts all the songs in a group according to light difficutly, from the easiest song on top, to the hardest light mode song on the bottom. When there are songs with the same light rating, THEN it sorts THOSE by alphabetical order.
|
||||
|
||||
get rid of lines between tiles
|
||||
|
||||
red life glow in sync with beat
|
||||
|
||||
kpt web site - NOW!
|
||||
|
||||
No no, I know about chaning group colors but when in ABC sort they're all red
|
||||
|
||||
on Ez2, the Ranking doesn't save (AAA, AA, A, B e.t.c.)
|
||||
but the score does, any ideas why?
|
||||
|
||||
|
||||
@@ -291,12 +291,13 @@ SongNumberP1ExtraY=440
|
||||
SongNumberP2X=350
|
||||
SongNumberP2Y=54
|
||||
SongNumberP2ExtraY=440
|
||||
ScoreP1X=100
|
||||
ScoreP1Y=442
|
||||
ScoreP1X=106
|
||||
ScoreP1Y=444
|
||||
ScoreP1ExtraY=38
|
||||
ScoreP2X=540
|
||||
ScoreP2Y=442
|
||||
ScoreP2X=534
|
||||
ScoreP2Y=444
|
||||
ScoreP2ExtraY=38
|
||||
ScoreZoom=1.0
|
||||
PlayerOptionsP1X=320
|
||||
PlayerOptionsP1Y=434
|
||||
PlayerOptionsP1ExtraY=46
|
||||
@@ -420,6 +421,9 @@ CreditsP1X=100
|
||||
CreditsP1Y=472
|
||||
CreditsP2X=540
|
||||
CreditsP2Y=472
|
||||
CreditsColor=1,1,1,1
|
||||
CreditsShadowLength=2
|
||||
CreditsZoom=0.5
|
||||
|
||||
[WheelItemDisplay]
|
||||
IconX=-136
|
||||
|
||||
@@ -63,17 +63,7 @@ Background::Background()
|
||||
|
||||
m_BackgroundMode = MODE_STATIC_BG;
|
||||
|
||||
CStringArray asPossibleDangerMovies;
|
||||
GetDirListing( RANDOMMOVIES_DIR+"danger.avi", asPossibleDangerMovies, false, true );
|
||||
GetDirListing( RANDOMMOVIES_DIR+"danger.mpg", asPossibleDangerMovies, false, true );
|
||||
GetDirListing( RANDOMMOVIES_DIR+"danger.mpeg", asPossibleDangerMovies, false, true );
|
||||
|
||||
if( asPossibleDangerMovies.GetSize()>0 )
|
||||
m_BGADanger.LoadFromMovie( asPossibleDangerMovies[0], true, false );
|
||||
else if( DoesFileExist(BG_ANIMS_DIR+"danger\\") )
|
||||
m_BGADanger.LoadFromAniDir( BG_ANIMS_DIR+"danger\\", "" );
|
||||
else
|
||||
PREFSMAN->m_bShowDanger = false;
|
||||
m_BGADanger.LoadFromAniDir( THEME->GetPathTo("BGAnimations","danger") );
|
||||
|
||||
m_quadBGBrightness.StretchTo( RECT_BACKGROUND );
|
||||
m_quadBGBrightness.SetDiffuse( D3DXCOLOR(0,0,0,1-PREFSMAN->m_fBGBrightness) );
|
||||
@@ -258,9 +248,9 @@ void Background::LoadFromSong( Song* pSong )
|
||||
{
|
||||
CStringArray arrayPossibleAnims;
|
||||
GetDirListing( BG_ANIMS_DIR+"*.*", arrayPossibleAnims, true, true );
|
||||
// strip out "cvs" and "danger"
|
||||
// strip out "cvs"
|
||||
for( int i=arrayPossibleAnims.GetSize()-1; i>=0; i-- )
|
||||
if( 0==stricmp(arrayPossibleAnims[i].Right(3),"cvs") || -1!=arrayPossibleAnims[i].Find("anger") )
|
||||
if( 0==stricmp(arrayPossibleAnims[i].Right(3),"cvs") )
|
||||
arrayPossibleAnims.RemoveAt(i);
|
||||
for( i=0; i<4 && arrayPossibleAnims.GetSize()>0; i++ )
|
||||
{
|
||||
@@ -278,10 +268,7 @@ void Background::LoadFromSong( Song* pSong )
|
||||
GetDirListing( RANDOMMOVIES_DIR + "*.avi", arrayPossibleMovies, false, true );
|
||||
GetDirListing( RANDOMMOVIES_DIR + "*.mpg", arrayPossibleMovies, false, true );
|
||||
GetDirListing( RANDOMMOVIES_DIR + "*.mpeg", arrayPossibleMovies, false, true );
|
||||
for( int i=arrayPossibleMovies.GetSize()-1; i>=0; i-- )
|
||||
if( -1!=arrayPossibleMovies[i].Find("anger") )
|
||||
arrayPossibleMovies.RemoveAt(i);
|
||||
for( i=0; i<4 && arrayPossibleMovies.GetSize()>0; i++ )
|
||||
for( int i=0; i<4 && arrayPossibleMovies.GetSize()>0; i++ )
|
||||
{
|
||||
int index = rand() % arrayPossibleMovies.GetSize();
|
||||
pTempBGA = new BackgroundAnimation;
|
||||
|
||||
@@ -57,7 +57,7 @@ Font::Font( const CString &sASCIITexturePath )
|
||||
// load character widths
|
||||
for( i=0; i<256; i++ )
|
||||
if( !ini.GetValueI( "Char Widths", ssprintf("%d",i), m_iFrameNoToWidth[i] ) )
|
||||
throw RageException( "Error reading 'Char Widths from '%s'.", sIniPath );
|
||||
throw RageException( "Error reading width value '%d' from '%s'.", i, sIniPath );
|
||||
|
||||
m_bCapitalsOnly = false;
|
||||
ini.GetValueB( "Char Widths", "CapitalsOnly", m_bCapitalsOnly );
|
||||
|
||||
@@ -36,10 +36,10 @@ void FootMeter::SetFromNotes( Notes* pNotes )
|
||||
this->SetEffectNone();
|
||||
|
||||
SetDiffuse( pNotes->GetColor() );
|
||||
this->StopTweening();
|
||||
this->SetZoom( 1.1f );
|
||||
this->BeginTweening( 0.3f, TWEEN_BOUNCE_BEGIN );
|
||||
this->SetTweenZoom( 1 );
|
||||
// this->StopTweening();
|
||||
// this->SetZoom( 1.1f );
|
||||
// this->BeginTweening( 0.3f, TWEEN_BOUNCE_BEGIN );
|
||||
// this->SetTweenZoom( 1 );
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -41,7 +41,8 @@ MenuElements::MenuElements()
|
||||
this->AddChild( &m_sprStyleIcon );
|
||||
this->AddChild( &m_MenuTimer );
|
||||
this->AddChild( &m_sprBottomEdge );
|
||||
this->AddChild( &m_sprBG );
|
||||
this->AddChild( &m_Background );
|
||||
this->AddChild( &m_quadBrightness );
|
||||
this->AddChild( &m_textHelp );
|
||||
|
||||
m_KeepAlive.SetOpened();
|
||||
@@ -74,9 +75,10 @@ void MenuElements::Load( CString sBackgroundPath, CString sTopEdgePath, CString
|
||||
LOG->Trace( "MenuElements::MenuElements()" );
|
||||
|
||||
|
||||
m_sprBG.Load( sBackgroundPath );
|
||||
m_sprBG.StretchTo( CRect(0,0,SCREEN_WIDTH,SCREEN_HEIGHT) );
|
||||
m_sprBG.TurnShadowOff();
|
||||
m_Background.LoadFromAniDir( sBackgroundPath );
|
||||
|
||||
m_quadBrightness.SetDiffuse( D3DXCOLOR(0,0,0,0) );
|
||||
m_quadBrightness.StretchTo( CRect(SCREEN_LEFT, SCREEN_TOP, SCREEN_RIGHT, SCREEN_BOTTOM) );
|
||||
|
||||
m_sprTopEdge.Load( sTopEdgePath );
|
||||
m_sprTopEdge.SetXY( TOP_EDGE_X, TOP_EDGE_Y );
|
||||
@@ -224,9 +226,9 @@ void MenuElements::TweenBottomLayerOnScreen()
|
||||
m_sprBottomEdge.BeginTweening( MENU_ELEMENTS_TWEEN_TIME/2 );
|
||||
m_sprBottomEdge.SetTweenY( fOriginalY );
|
||||
|
||||
m_sprBG.SetDiffuse( D3DXCOLOR(0,0,0,1) );
|
||||
m_sprBG.BeginTweening( MENU_ELEMENTS_TWEEN_TIME/2 );
|
||||
m_sprBG.SetTweenDiffuse( D3DXCOLOR(1,1,1,1) );
|
||||
m_quadBrightness.SetDiffuse( D3DXCOLOR(0,0,0,1) );
|
||||
m_quadBrightness.BeginTweening( MENU_ELEMENTS_TWEEN_TIME/2 );
|
||||
m_quadBrightness.SetTweenDiffuse( D3DXCOLOR(0,0,0,0) );
|
||||
}
|
||||
|
||||
void MenuElements::TweenBottomLayerOffScreen()
|
||||
@@ -236,11 +238,11 @@ void MenuElements::TweenBottomLayerOffScreen()
|
||||
m_sprBottomEdge.BeginTweening( MENU_ELEMENTS_TWEEN_TIME/2 );
|
||||
m_sprBottomEdge.SetTweenY( fOriginalY + 100 );
|
||||
|
||||
m_sprBG.SetDiffuse( D3DXCOLOR(1,1,1,1) );
|
||||
m_sprBG.StopTweening();
|
||||
m_sprBG.BeginTweening( MENU_ELEMENTS_TWEEN_TIME*3/2.0f ); // sleep
|
||||
m_sprBG.BeginTweening( MENU_ELEMENTS_TWEEN_TIME/2 ); // fade
|
||||
m_sprBG.SetTweenDiffuse( D3DXCOLOR(0,0,0,1) );
|
||||
m_quadBrightness.SetDiffuse( D3DXCOLOR(0,0,0,0) );
|
||||
m_quadBrightness.StopTweening();
|
||||
m_quadBrightness.BeginTweening( MENU_ELEMENTS_TWEEN_TIME*3/2.0f ); // sleep
|
||||
m_quadBrightness.BeginTweening( MENU_ELEMENTS_TWEEN_TIME/2 ); // fade
|
||||
m_quadBrightness.SetTweenDiffuse( D3DXCOLOR(0,0,0,1) );
|
||||
}
|
||||
|
||||
void MenuElements::TweenOnScreenFromBlack( ScreenMessage smSendWhenDone )
|
||||
@@ -293,7 +295,8 @@ void MenuElements::DrawBottomLayer()
|
||||
{
|
||||
BeginDraw();
|
||||
|
||||
m_sprBG.Draw();
|
||||
m_Background.Draw();
|
||||
m_quadBrightness.Draw();
|
||||
|
||||
EndDraw();
|
||||
}
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
#include "TransitionKeepAlive.h"
|
||||
#include "TransitionInvisible.h"
|
||||
#include "TipDisplay.h"
|
||||
#include "BackgroundAnimation.h"
|
||||
|
||||
|
||||
const float MENU_ELEMENTS_TWEEN_TIME = 0.5f;
|
||||
@@ -61,12 +62,13 @@ protected:
|
||||
void TweenBottomLayerOffScreen();
|
||||
|
||||
|
||||
Sprite m_sprTopEdge;
|
||||
Sprite m_sprStyleIcon;
|
||||
MenuTimer m_MenuTimer;
|
||||
Sprite m_sprBottomEdge;
|
||||
Sprite m_sprBG;
|
||||
TipDisplay m_textHelp;
|
||||
Sprite m_sprTopEdge;
|
||||
Sprite m_sprStyleIcon;
|
||||
MenuTimer m_MenuTimer;
|
||||
Sprite m_sprBottomEdge;
|
||||
BackgroundAnimation m_Background;
|
||||
Quad m_quadBrightness; // for darkening the background
|
||||
TipDisplay m_textHelp;
|
||||
|
||||
TransitionFadeWipe m_Wipe; // for going back
|
||||
TransitionKeepAlive m_KeepAlive; // going back and forward
|
||||
|
||||
@@ -43,7 +43,7 @@ OptionRowData g_AppearanceOptionsLines[NUM_APPEARANCE_OPTIONS_LINES] = {
|
||||
|
||||
ScreenAppearanceOptions::ScreenAppearanceOptions() :
|
||||
ScreenOptions(
|
||||
THEME->GetPathTo("Graphics","appearance options background"),
|
||||
THEME->GetPathTo("BGAnimations","appearance options"),
|
||||
THEME->GetPathTo("Graphics","appearance options page"),
|
||||
THEME->GetPathTo("Graphics","appearance options top edge")
|
||||
)
|
||||
|
||||
@@ -31,9 +31,8 @@ ScreenCaution::ScreenCaution()
|
||||
{
|
||||
GAMESTATE->m_bPlayersCanJoin = true;
|
||||
|
||||
m_sprCaution.Load( THEME->GetPathTo("Graphics","caution") );
|
||||
m_sprCaution.StretchTo( CRect(SCREEN_LEFT,SCREEN_TOP,SCREEN_RIGHT,SCREEN_BOTTOM) );
|
||||
this->AddChild( &m_sprCaution );
|
||||
m_Background.LoadFromAniDir( THEME->GetPathTo("BGAnimations","caution") );
|
||||
this->AddChild( &m_Background );
|
||||
|
||||
m_Wipe.OpenWipingRight( SM_DoneOpening );
|
||||
this->AddChild( &m_Wipe );
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
#include "TransitionFade.h"
|
||||
#include "TransitionFadeWipe.h"
|
||||
#include "RandomSample.h"
|
||||
#include "BackgroundAnimation.h"
|
||||
|
||||
|
||||
class ScreenCaution : public Screen
|
||||
@@ -30,8 +31,8 @@ public:
|
||||
protected:
|
||||
void MenuStart( PlayerNumber pn );
|
||||
void MenuBack( PlayerNumber pn );
|
||||
Sprite m_sprCaution;
|
||||
TransitionFade m_Wipe;
|
||||
BackgroundAnimation m_Background;
|
||||
TransitionFade m_Wipe;
|
||||
TransitionFadeWipe m_FadeWipe;
|
||||
};
|
||||
|
||||
|
||||
@@ -232,7 +232,7 @@ ScreenEvaluation::ScreenEvaluation( bool bSummary )
|
||||
// Init graphic elements
|
||||
//////////////////////////
|
||||
m_Menu.Load(
|
||||
THEME->GetPathTo("Graphics","evaluation background"),
|
||||
THEME->GetPathTo("BGAnimations","evaluation"),
|
||||
THEME->GetPathTo("Graphics",m_ResultMode==RM_ARCADE_SUMMARY?"evaluation summary top edge":"evaluation top edge"),
|
||||
HELP_TEXT, true, true, TIMER_SECONDS
|
||||
);
|
||||
@@ -244,8 +244,9 @@ ScreenEvaluation::ScreenEvaluation( bool bSummary )
|
||||
if( !GAMESTATE->IsPlayerEnabled( (PlayerNumber)p ) ) // If EZ2 wants to hide this graphic, place it somewhere off screen using theme metrics
|
||||
continue; // skip
|
||||
|
||||
m_ScoreDisplay[p].LoadFromNumbers( THEME->GetPathTo("Numbers","evaluation score numbers") );
|
||||
m_ScoreDisplay[p].SetXY( SCORE_NUMBERS_X(p), SCORE_Y );
|
||||
m_ScoreDisplay[p].SetZoomY( 0.9f );
|
||||
m_ScoreDisplay[p].SetZoomY( 1.0 );
|
||||
m_ScoreDisplay[p].SetDiffuse( PlayerToColor(p) );
|
||||
this->AddChild( &m_ScoreDisplay[p] );
|
||||
}
|
||||
@@ -511,10 +512,10 @@ ScreenEvaluation::ScreenEvaluation( bool bSummary )
|
||||
|
||||
for( l=0; l<NUM_JUDGE_LINES; l++ )
|
||||
{
|
||||
m_textJudgeNumbers[l][p].LoadFromNumbers( THEME->GetPathTo("Numbers","evaluation score numbers") );
|
||||
m_textJudgeNumbers[l][p].LoadFromNumbers( THEME->GetPathTo("Numbers","evaluation judge numbers") );
|
||||
m_textJudgeNumbers[l][p].TurnShadowOff();
|
||||
m_textJudgeNumbers[l][p].SetXY( JUDGE_X(m_ResultMode==RM_ONI,p,l), JUDGE_Y(l) );
|
||||
m_textJudgeNumbers[l][p].SetZoom( 0.7f );
|
||||
m_textJudgeNumbers[l][p].SetZoom( 1.0f );
|
||||
m_textJudgeNumbers[l][p].SetDiffuse( PlayerToColor(p) );
|
||||
this->AddChild( &m_textJudgeNumbers[l][p] );
|
||||
}
|
||||
|
||||
@@ -46,6 +46,7 @@
|
||||
#define SONG_NUMBER_Y( p, e ) THEME->GetMetricF("ScreenGameplay",ssprintf("SongNumberP%d%sY",p+1,e?"Extra":""))
|
||||
#define SCORE_X( p ) THEME->GetMetricF("ScreenGameplay",ssprintf("ScoreP%dX",p+1))
|
||||
#define SCORE_Y( p, e ) THEME->GetMetricF("ScreenGameplay",ssprintf("ScoreP%d%sY",p+1,e?"Extra":""))
|
||||
#define SCORE_ZOOM THEME->GetMetricF("ScreenGameplay","ScoreZoom")
|
||||
#define PLAYER_OPTIONS_X( p ) THEME->GetMetricF("ScreenGameplay",ssprintf("PlayerOptionsP%dX",p+1))
|
||||
#define PLAYER_OPTIONS_Y( p, e ) THEME->GetMetricF("ScreenGameplay",ssprintf("PlayerOptionsP%d%sY",p+1,e?"Extra":""))
|
||||
#define SONG_OPTIONS_X THEME->GetMetricF("ScreenGameplay","SongOptionsX")
|
||||
@@ -279,7 +280,7 @@ ScreenGameplay::ScreenGameplay()
|
||||
|
||||
m_pScoreDisplay[p]->Init( (PlayerNumber)p );
|
||||
m_pScoreDisplay[p]->SetXY( SCORE_X(p), SCORE_Y(p,bExtra) );
|
||||
m_pScoreDisplay[p]->SetZoom( 0.8f );
|
||||
m_pScoreDisplay[p]->SetZoom( SCORE_ZOOM );
|
||||
m_pScoreDisplay[p]->SetDiffuse( PlayerToColor(p) );
|
||||
this->AddChild( m_pScoreDisplay[p] );
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ ScreenHowToPlay::ScreenHowToPlay()
|
||||
LOG->Trace( "ScreenHowToPlay::ScreenHowToPlay()" );
|
||||
|
||||
m_Menu.Load(
|
||||
THEME->GetPathTo("Graphics","How To Play Background"),
|
||||
THEME->GetPathTo("BGAnimations","How To Play"),
|
||||
THEME->GetPathTo("Graphics","How To Play Top Edge"),
|
||||
HELP_TEXT, false, true, TIMER_SECONDS
|
||||
);
|
||||
|
||||
@@ -43,7 +43,7 @@ OptionRowData g_InputOptionsLines[NUM_INPUT_OPTIONS_LINES] = {
|
||||
|
||||
ScreenInputOptions::ScreenInputOptions() :
|
||||
ScreenOptions(
|
||||
THEME->GetPathTo("Graphics","input options background"),
|
||||
THEME->GetPathTo("BGAnimations","input options"),
|
||||
THEME->GetPathTo("Graphics","input options page"),
|
||||
THEME->GetPathTo("Graphics","input options top edge")
|
||||
)
|
||||
|
||||
@@ -47,7 +47,7 @@ OptionRowData g_MachineOptionsLines[NUM_MACHINE_OPTIONS_LINES] = {
|
||||
|
||||
ScreenMachineOptions::ScreenMachineOptions() :
|
||||
ScreenOptions(
|
||||
THEME->GetPathTo("Graphics","machine options background"),
|
||||
THEME->GetPathTo("BGAnimations","machine options"),
|
||||
THEME->GetPathTo("Graphics","machine options page"),
|
||||
THEME->GetPathTo("Graphics","machine options top edge")
|
||||
)
|
||||
|
||||
@@ -23,10 +23,13 @@
|
||||
ScreenManager* SCREENMAN = NULL; // global and accessable from anywhere in our program
|
||||
|
||||
|
||||
#define STATS_X THEME->GetMetricF("ScreenManager","StatsX")
|
||||
#define STATS_Y THEME->GetMetricF("ScreenManager","StatsY")
|
||||
#define CREDITS_X( p ) THEME->GetMetricF("ScreenManager",ssprintf("CreditsP%dX",p+1))
|
||||
#define CREDITS_Y( p ) THEME->GetMetricF("ScreenManager",ssprintf("CreditsP%dY",p+1))
|
||||
#define STATS_X THEME->GetMetricF("ScreenManager","StatsX")
|
||||
#define STATS_Y THEME->GetMetricF("ScreenManager","StatsY")
|
||||
#define CREDITS_X( p ) THEME->GetMetricF("ScreenManager",ssprintf("CreditsP%dX",p+1))
|
||||
#define CREDITS_Y( p ) THEME->GetMetricF("ScreenManager",ssprintf("CreditsP%dY",p+1))
|
||||
#define CREDITS_COLOR THEME->GetMetricC("ScreenManager","CreditsColor")
|
||||
#define CREDITS_SHADOW_LENGTH THEME->GetMetricF("ScreenManager","CreditsShadowLength")
|
||||
#define CREDITS_ZOOM THEME->GetMetricF("ScreenManager","CreditsZoom")
|
||||
|
||||
|
||||
ScreenManager::ScreenManager()
|
||||
@@ -40,14 +43,7 @@ ScreenManager::ScreenManager()
|
||||
m_textStats.SetZoom( 0.5f );
|
||||
m_textStats.SetShadowLength( 2 );
|
||||
|
||||
for( int p=0; p<NUM_PLAYERS; p++ )
|
||||
{
|
||||
m_textCreditInfo[p].LoadFromFont( THEME->GetPathTo("Fonts","credits") );
|
||||
m_textCreditInfo[p].SetXY( CREDITS_X(p), CREDITS_Y(p) );
|
||||
m_textCreditInfo[p].SetZoom( 0.5f );
|
||||
m_textCreditInfo[p].SetDiffuse( D3DXCOLOR(1,1,1,1) );
|
||||
m_textCreditInfo[p].SetShadowLength( 2 );
|
||||
}
|
||||
// set credits properties on RefreshCreditsMessage
|
||||
|
||||
m_textSystemMessage.LoadFromFont( THEME->GetPathTo("Fonts","normal") );
|
||||
m_textSystemMessage.SetHorizAlign( Actor::align_left );
|
||||
@@ -243,8 +239,9 @@ void ScreenManager::LoadPreppedScreen()
|
||||
|
||||
void ScreenManager::SetNewScreen( Screen *pNewScreen )
|
||||
{
|
||||
// move current screen to ScreenToDelete
|
||||
RefreshCreditsMessages();
|
||||
|
||||
// move current screen to ScreenToDelete
|
||||
m_ScreensToDelete.Copy( m_ScreenStack );
|
||||
|
||||
m_ScreenStack.RemoveAll();
|
||||
@@ -327,8 +324,14 @@ void ScreenManager::RefreshCreditsMessages()
|
||||
// update joined
|
||||
for( int p=0; p<NUM_PLAYERS; p++ )
|
||||
{
|
||||
m_textCreditInfo[p].LoadFromFont( THEME->GetPathTo("Fonts","credits") );
|
||||
m_textCreditInfo[p].SetXY( CREDITS_X(p), CREDITS_Y(p) );
|
||||
m_textCreditInfo[p].SetZoom( CREDITS_ZOOM );
|
||||
m_textCreditInfo[p].SetDiffuse( CREDITS_COLOR );
|
||||
m_textCreditInfo[p].SetShadowLength( CREDITS_SHADOW_LENGTH );
|
||||
|
||||
if( GAMESTATE->m_bSideIsJoined[p] ) m_textCreditInfo[p].SetText( "" );
|
||||
else if( GAMESTATE->m_bPlayersCanJoin ) m_textCreditInfo[p].SetText( "PRESS START" );
|
||||
else m_textCreditInfo[p].SetText( "CREDIT(s) 0 / 0" );
|
||||
else m_textCreditInfo[p].SetText( "CREDIT(S) 0 / 0" );
|
||||
}
|
||||
}
|
||||
@@ -42,7 +42,7 @@ const CString CREDIT_LINES[] =
|
||||
"",
|
||||
"",
|
||||
"GRAPHICS:",
|
||||
"TofuBoy (Lucas Tang)",
|
||||
"v1ral (Lucas Tang)",
|
||||
"SPiGuMuS",
|
||||
"DJ McFox (Ryan McKanna)",
|
||||
"Cloud34 (Lamden Travis)",
|
||||
@@ -140,9 +140,8 @@ ScreenMusicScroll::ScreenMusicScroll()
|
||||
|
||||
GAMESTATE->Reset(); // so that credits message for both players will show
|
||||
|
||||
m_sprBackground.Load( THEME->GetPathTo("Graphics","music scroll background") );
|
||||
m_sprBackground.StretchTo( CRect(SCREEN_LEFT,SCREEN_TOP,SCREEN_RIGHT,SCREEN_BOTTOM) );
|
||||
this->AddChild( &m_sprBackground );
|
||||
m_Background.LoadFromAniDir( THEME->GetPathTo("BGAnimations","music scroll") );
|
||||
this->AddChild( &m_Background );
|
||||
|
||||
|
||||
CArray<Song*, Song*> arraySongs;
|
||||
|
||||
@@ -38,10 +38,10 @@ public:
|
||||
|
||||
private:
|
||||
|
||||
Sprite m_sprBackground;
|
||||
BitmapText m_textLines[MAX_TOTAL_LINES];
|
||||
int m_iNumLines;
|
||||
float m_fTimeLeftInScreen;
|
||||
BackgroundAnimation m_Background;
|
||||
BitmapText m_textLines[MAX_TOTAL_LINES];
|
||||
int m_iNumLines;
|
||||
float m_fTimeLeftInScreen;
|
||||
|
||||
TransitionFade m_Fade;
|
||||
|
||||
|
||||
@@ -46,7 +46,7 @@ OptionRowData g_PlayerOptionsLines[NUM_PLAYER_OPTIONS_LINES] = {
|
||||
|
||||
ScreenPlayerOptions::ScreenPlayerOptions() :
|
||||
ScreenOptions(
|
||||
THEME->GetPathTo("Graphics","player options background"),
|
||||
THEME->GetPathTo("BGAnimations","player options"),
|
||||
THEME->GetPathTo("Graphics","player options page"),
|
||||
THEME->GetPathTo("Graphics","player options top edge")
|
||||
)
|
||||
|
||||
@@ -67,7 +67,7 @@ ScreenSelectCourse::ScreenSelectCourse()
|
||||
m_bGoToOptions = false;
|
||||
|
||||
m_Menu.Load(
|
||||
THEME->GetPathTo("Graphics","select course background"),
|
||||
THEME->GetPathTo("BGAnimations","select course"),
|
||||
THEME->GetPathTo("Graphics","select course top edge"),
|
||||
HELP_TEXT, true, true, TIMER_SECONDS
|
||||
);
|
||||
|
||||
@@ -89,7 +89,7 @@ ScreenSelectDifficulty::ScreenSelectDifficulty()
|
||||
int p;
|
||||
|
||||
m_Menu.Load(
|
||||
THEME->GetPathTo("Graphics","select difficulty background"),
|
||||
THEME->GetPathTo("BGAnimations","select difficulty"),
|
||||
THEME->GetPathTo("Graphics","select difficulty top edge"),
|
||||
HELP_TEXT, true, true, TIMER_SECONDS
|
||||
);
|
||||
|
||||
@@ -42,7 +42,7 @@ OptionRowData g_SelectGameLines[NUM_SELECT_GAME_LINES] =
|
||||
|
||||
ScreenSelectGame::ScreenSelectGame() :
|
||||
ScreenOptions(
|
||||
THEME->GetPathTo("Graphics","select game background"),
|
||||
THEME->GetPathTo("BGAnimations","select game"),
|
||||
THEME->GetPathTo("Graphics","select game page"),
|
||||
THEME->GetPathTo("Graphics","select game top edge")
|
||||
)
|
||||
|
||||
@@ -1,21 +1,15 @@
|
||||
/*
|
||||
-----------------------------------------------------------------------------
|
||||
File: ScreenSelectGame.h
|
||||
File: ScreenSelectGame
|
||||
|
||||
Desc: Select a song.
|
||||
Desc: Switch the current game
|
||||
|
||||
Copyright (c) 2001-2002 by the person(s) listed below. All rights reserved.
|
||||
Chris Danford
|
||||
-----------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
#include "Screen.h"
|
||||
#include "ScreenOptions.h"
|
||||
#include "Sprite.h"
|
||||
#include "BitmapText.h"
|
||||
#include "RandomSample.h"
|
||||
#include "TransitionFade.h"
|
||||
#include "Quad.h"
|
||||
#include "AnnouncerManager.h"
|
||||
|
||||
class ScreenSelectGame : public ScreenOptions
|
||||
{
|
||||
|
||||
@@ -116,7 +116,7 @@ ScreenSelectGroup::ScreenSelectGroup()
|
||||
m_bChosen = false;
|
||||
|
||||
m_Menu.Load(
|
||||
THEME->GetPathTo("Graphics","select group background") ,
|
||||
THEME->GetPathTo("BGAnimations","select group") ,
|
||||
THEME->GetPathTo("Graphics","select group top edge"),
|
||||
HELP_TEXT, true, true, TIMER_SECONDS
|
||||
);
|
||||
|
||||
@@ -89,7 +89,7 @@ ScreenSelectMusic::ScreenSelectMusic()
|
||||
int p;
|
||||
|
||||
m_Menu.Load(
|
||||
THEME->GetPathTo("Graphics","select music background"),
|
||||
THEME->GetPathTo("BGAnimations","select music"),
|
||||
THEME->GetPathTo("Graphics","select music top edge"),
|
||||
HELP_TEXT, true, true, TIMER_SECONDS
|
||||
);
|
||||
|
||||
@@ -88,7 +88,7 @@ ScreenSelectStyle::ScreenSelectStyle()
|
||||
|
||||
|
||||
m_Menu.Load(
|
||||
THEME->GetPathTo("Graphics","select style background"),
|
||||
THEME->GetPathTo("BGAnimations","select style"),
|
||||
THEME->GetPathTo("Graphics","select style top edge"),
|
||||
HELP_TEXT, false, true, TIMER_SECONDS
|
||||
);
|
||||
|
||||
@@ -165,7 +165,7 @@ ScreenSelectStyle5th::ScreenSelectStyle5th()
|
||||
this->AddChild( &m_textExplanation2 );
|
||||
|
||||
m_Menu.Load(
|
||||
THEME->GetPathTo("Graphics","select style background"),
|
||||
THEME->GetPathTo("BGAnimations","select style"),
|
||||
THEME->GetPathTo("Graphics","select style top edge"),
|
||||
HELP_TEXT, false, true, TIMER_SECONDS
|
||||
);
|
||||
|
||||
@@ -41,7 +41,7 @@ OptionRowData g_SongOptionsLines[NUM_SONG_OPTIONS_LINES] = {
|
||||
|
||||
ScreenSongOptions::ScreenSongOptions() :
|
||||
ScreenOptions(
|
||||
THEME->GetPathTo("Graphics","song options background"),
|
||||
THEME->GetPathTo("BGAnimations","song options"),
|
||||
THEME->GetPathTo("Graphics","song options page"),
|
||||
THEME->GetPathTo("Graphics","song options top edge")
|
||||
)
|
||||
|
||||
@@ -97,9 +97,8 @@ ScreenTitleMenu::ScreenTitleMenu()
|
||||
|
||||
|
||||
|
||||
m_sprBG.Load( THEME->GetPathTo("Graphics","title menu background") );
|
||||
m_sprBG.StretchTo( CRect(0,0,SCREEN_WIDTH,SCREEN_HEIGHT) );
|
||||
this->AddChild( &m_sprBG );
|
||||
m_Background.LoadFromAniDir( THEME->GetPathTo("BGAnimations","title menu") );
|
||||
this->AddChild( &m_Background );
|
||||
|
||||
m_sprLogo.Load( THEME->GetPathTo("Graphics",ssprintf("title menu logo %s",GAMESTATE->GetCurrentGameDef()->m_szName)) );
|
||||
m_sprLogo.SetXY( LOGO_X, LOGO_Y );
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
#include "TransitionFade.h"
|
||||
#include "RandomSample.h"
|
||||
#include "RandomStream.h"
|
||||
#include "BackgroundAnimation.h"
|
||||
|
||||
|
||||
|
||||
@@ -50,14 +51,14 @@ private:
|
||||
|
||||
TitleMenuChoice m_TitleMenuChoice;
|
||||
|
||||
Sprite m_sprBG;
|
||||
Sprite m_sprLogo;
|
||||
BitmapText m_textHelp;
|
||||
BitmapText m_textVersion;
|
||||
BitmapText m_textSongs;
|
||||
BitmapText m_textChoice[NUM_TITLE_MENU_CHOICES];
|
||||
BackgroundAnimation m_Background;
|
||||
Sprite m_sprLogo;
|
||||
BitmapText m_textHelp;
|
||||
BitmapText m_textVersion;
|
||||
BitmapText m_textSongs;
|
||||
BitmapText m_textChoice[NUM_TITLE_MENU_CHOICES];
|
||||
|
||||
TransitionFade m_Fade;
|
||||
TransitionFade m_Fade;
|
||||
|
||||
RandomStream m_soundAttract;
|
||||
RandomSample m_soundChange;
|
||||
|
||||
@@ -145,11 +145,13 @@ try_element_again:
|
||||
static const char *sound_masks[] = { ".set", ".mp3", ".ogg", ".wav", ".redir", NULL };
|
||||
static const char *font_masks[] = { " 16x16.png", ".redir", NULL };
|
||||
static const char *numbers_masks[] = { " 5x3.png", ".redir", NULL };
|
||||
static const char *bganimations_masks[] = { ".", ".redir", NULL };
|
||||
const char **asset_masks = NULL;
|
||||
if( sAssetCategory == "graphics" ) asset_masks = graphic_masks;
|
||||
else if( sAssetCategory == "sounds" ) asset_masks = sound_masks;
|
||||
else if( sAssetCategory == "fonts" ) asset_masks = font_masks;
|
||||
else if( sAssetCategory == "numbers" ) asset_masks = numbers_masks;
|
||||
else if( sAssetCategory == "bganimations" ) asset_masks = bganimations_masks;
|
||||
else ASSERT(0); // Unknown theme asset category
|
||||
int i;
|
||||
for(i = 0; asset_masks[i]; ++i)
|
||||
|
||||
Reference in New Issue
Block a user