All kinds of pump updates: Themes/MusicSelectScreen/NoteSkins to be a little bit more like Pump Prex...

This commit is contained in:
Andrew Livy
2003-05-09 20:28:27 +00:00
parent b896f09a19
commit 8e0e7a8418
7 changed files with 30 additions and 12 deletions
@@ -0,0 +1 @@
_shared2
+6
View File
@@ -157,6 +157,10 @@ UseSelectionBGAnimations=0
SelectionSpecificBGAnimations=0 SelectionSpecificBGAnimations=0
BounceJoinMessage=1 BounceJoinMessage=1
FoldOnJoin=1 FoldOnJoin=1
ScrollingListOffCommand=bouncebegin,0.5;zoomy,0
GuideOffCommand=bouncebegin,0.5;addy,400
ChoiceListHighlightOffCommand=linear,0.5;diffusealpha,0;glow,1,1,1,0
ChoiceListFrameOffCommand=linear,0.5;diffusealpha,0;glow,1,1,1,0
[ScreenStyleSplash] [ScreenStyleSplash]
NextScreen=ScreenSelectGroup NextScreen=ScreenSelectGroup
@@ -606,6 +610,8 @@ HiddenIconP1Y=240
HiddenIconP2Y=240 HiddenIconP2Y=240
InfoFrameX=999 InfoFrameX=999
InfoFrameY=999 InfoFrameY=999
GroupNameX=320
GroupNameY=55
DifficultyRatingX=999 DifficultyRatingX=999
DifficultyRatingY=999 DifficultyRatingY=999
DifficultyRatingOrientation=0 DifficultyRatingOrientation=0
+10
View File
@@ -39,6 +39,8 @@
#define METER_Y( p ) THEME->GetMetricF("ScreenEz2SelectMusic",ssprintf("MeterP%dY",p+1)) #define METER_Y( p ) THEME->GetMetricF("ScreenEz2SelectMusic",ssprintf("MeterP%dY",p+1))
#define GUIDE_X THEME->GetMetricF("ScreenSelectMode","GuideX") #define GUIDE_X THEME->GetMetricF("ScreenSelectMode","GuideX")
#define GUIDE_Y THEME->GetMetricF("ScreenSelectMode","GuideY") #define GUIDE_Y THEME->GetMetricF("ScreenSelectMode","GuideY")
#define GROUPNAME_X THEME->GetMetricF("ScreenEz2SelectMusic","GroupNameX")
#define GROUPNAME_Y THEME->GetMetricF("ScreenEz2SelectMusic","GroupNameY")
#define SPEEDICON_X( p ) THEME->GetMetricF("ScreenEz2SelectMusic",ssprintf("SpeedIconP%dX",p+1)) #define SPEEDICON_X( p ) THEME->GetMetricF("ScreenEz2SelectMusic",ssprintf("SpeedIconP%dX",p+1))
#define SPEEDICON_Y( p ) THEME->GetMetricF("ScreenEz2SelectMusic",ssprintf("SpeedIconP%dY",p+1)) #define SPEEDICON_Y( p ) THEME->GetMetricF("ScreenEz2SelectMusic",ssprintf("SpeedIconP%dY",p+1))
#define MIRRORICON_X( p ) THEME->GetMetricF("ScreenEz2SelectMusic",ssprintf("MirrorIconP%dX",p+1)) #define MIRRORICON_X( p ) THEME->GetMetricF("ScreenEz2SelectMusic",ssprintf("MirrorIconP%dX",p+1))
@@ -158,6 +160,10 @@ ScreenEz2SelectMusic::ScreenEz2SelectMusic() : Screen("ScreenEz2SelectMusic")
m_PumpDifficultyRating.SetXY( PUMP_DIFF_X, PUMP_DIFF_Y ); m_PumpDifficultyRating.SetXY( PUMP_DIFF_X, PUMP_DIFF_Y );
this->AddChild(&m_PumpDifficultyRating); this->AddChild(&m_PumpDifficultyRating);
m_CurrentGroup.LoadFromFont( THEME->GetPathToF("ScreenEz2SelectMusic GroupName") );
m_CurrentGroup.SetXY( GROUPNAME_X, GROUPNAME_Y );
this->AddChild(&m_CurrentGroup );
m_DifficultyRating.SetOrientation(DIFFICULTYRATING_ORIENTATION); m_DifficultyRating.SetOrientation(DIFFICULTYRATING_ORIENTATION);
m_DifficultyRating.SetX(DIFFICULTYRATING_X); m_DifficultyRating.SetX(DIFFICULTYRATING_X);
m_DifficultyRating.SetY(DIFFICULTYRATING_Y); m_DifficultyRating.SetY(DIFFICULTYRATING_Y);
@@ -507,6 +513,9 @@ void ScreenEz2SelectMusic::MusicChanged()
Song* pSong = m_MusicBannerWheel.GetSelectedSong(); Song* pSong = m_MusicBannerWheel.GetSelectedSong();
GAMESTATE->m_pCurSong = pSong; GAMESTATE->m_pCurSong = pSong;
m_CurrentGroup.SetText( SONGMAN->ShortenGroupName( pSong->m_sGroupName ) , "");
m_CurrentGroup.SetDiffuse( SONGMAN->GetGroupColor(pSong->m_sGroupName) );
if( pSong->m_fMusicLengthSeconds > PREFSMAN->m_fMarathonVerSongSeconds ) if( pSong->m_fMusicLengthSeconds > PREFSMAN->m_fMarathonVerSongSeconds )
{ {
m_sprBalloon.StopTweening(); m_sprBalloon.StopTweening();
@@ -577,6 +586,7 @@ void ScreenEz2SelectMusic::AfterNotesChange( PlayerNumber pn )
if( pNotes != NULL && pn == GAMESTATE->m_MasterPlayerNumber ) if( pNotes != NULL && pn == GAMESTATE->m_MasterPlayerNumber )
{ {
m_PumpDifficultyRating.SetText(ssprintf("Lv.%d",pNotes->GetMeter())); m_PumpDifficultyRating.SetText(ssprintf("Lv.%d",pNotes->GetMeter()));
m_PumpDifficultyRating.SetDiffuse( SONGMAN->GetDifficultyColor(pNotes->GetDifficulty()) );
m_DifficultyRating.SetDifficulty(pNotes->GetMeter()); m_DifficultyRating.SetDifficulty(pNotes->GetMeter());
} }
+1
View File
@@ -64,6 +64,7 @@ protected:
Sprite m_VanishIcon[NUM_PLAYERS]; Sprite m_VanishIcon[NUM_PLAYERS];
Sprite m_sprBalloon; Sprite m_sprBalloon;
BitmapText m_PumpDifficultyRating; BitmapText m_PumpDifficultyRating;
BitmapText m_CurrentGroup;
RageSound m_soundOptionsChange; RageSound m_soundOptionsChange;
RageSound m_soundMusicChange; RageSound m_soundMusicChange;
+10 -9
View File
@@ -45,10 +45,12 @@ ScreenSelectMode::ScreenSelectMode() : ScreenSelect( "ScreenSelectMode" )
m_bSelected = false; m_bSelected = false;
m_ChoiceListFrame.Load( THEME->GetPathToG("ScreenSelectMode list frame")); m_ChoiceListFrame.Load( THEME->GetPathToG("ScreenSelectMode list frame"));
m_ChoiceListFrame.SetXY( SCROLLING_LIST_X, SCROLLING_LIST_Y); m_ChoiceListFrame.SetXY( SCROLLING_LIST_X, SCROLLING_LIST_Y);
m_ChoiceListFrame.SetName("ChoiceListFrame");
this->AddChild( &m_ChoiceListFrame ); this->AddChild( &m_ChoiceListFrame );
m_soundModeChange.Load( THEME->GetPathToS("ScreenSelectMode modechange")); m_soundModeChange.Load( THEME->GetPathToS("ScreenSelectMode modechange"));
m_soundConfirm.Load( THEME->GetPathToS("ScreenSelectMode modeconfirm")); m_soundConfirm.Load( THEME->GetPathToS("ScreenSelectMode modeconfirm"));
m_soundStart.Load( THEME->GetPathToS("ScreenSelectMode menustart"));
unsigned i; unsigned i;
for( i=0; i<m_aModeChoices.size(); i++ ) for( i=0; i<m_aModeChoices.size(); i++ )
{ {
@@ -66,14 +68,17 @@ ScreenSelectMode::ScreenSelectMode() : ScreenSelect( "ScreenSelectMode" )
// m_ScrollingList.UseSpriteType(BANNERTYPE); // m_ScrollingList.UseSpriteType(BANNERTYPE);
m_ScrollingList.SetXY( SCROLLING_LIST_X, SCROLLING_LIST_Y ); m_ScrollingList.SetXY( SCROLLING_LIST_X, SCROLLING_LIST_Y );
m_ScrollingList.SetSpacing( ELEM_SPACING ); m_ScrollingList.SetSpacing( ELEM_SPACING );
m_ScrollingList.SetName("ScrollingList");
this->AddChild( &m_ScrollingList ); this->AddChild( &m_ScrollingList );
m_ChoiceListHighlight.Load( THEME->GetPathToG("ScreenSelectMode list highlight")); m_ChoiceListHighlight.Load( THEME->GetPathToG("ScreenSelectMode list highlight"));
m_ChoiceListHighlight.SetXY( SCROLLING_LIST_X, SCROLLING_LIST_Y ); m_ChoiceListHighlight.SetXY( SCROLLING_LIST_X, SCROLLING_LIST_Y );
m_ChoiceListHighlight.SetName("ChoiceListHighlight");
this->AddChild(&m_ChoiceListHighlight); this->AddChild(&m_ChoiceListHighlight);
m_Guide.Load( THEME->GetPathToG("select mode guide")); m_Guide.Load( THEME->GetPathToG("select mode guide"));
m_Guide.SetXY( GUIDE_X, GUIDE_Y ); m_Guide.SetXY( GUIDE_X, GUIDE_Y );
m_Guide.SetName("Guide");
this->AddChild( &m_Guide ); this->AddChild( &m_Guide );
UpdateSelectableChoices(); UpdateSelectableChoices();
@@ -175,16 +180,12 @@ void ScreenSelectMode::MenuStart( PlayerNumber pn )
m_bSelected = true; m_bSelected = true;
return; return;
} }
m_soundStart.Play();
OFF_COMMAND( m_ScrollingList );
OFF_COMMAND( m_Guide );
OFF_COMMAND( m_ChoiceListHighlight );
OFF_COMMAND( m_ChoiceListFrame );
m_ScrollingList.BeginTweening(0.1f);
m_ScrollingList.SetZoomY(0.0f);
m_Guide.BeginTweening(0.1f);
m_Guide.SetY(550.0f); // off the bottom of the screen
m_ChoiceListFrame.BeginTweening(0.1f);
m_ChoiceListFrame.SetDiffuse(RageColor(0,0,0,0));
m_ChoiceListHighlight.BeginTweening(0.1f);
m_ChoiceListHighlight.SetDiffuse(RageColor(0,0,0,0));
SCREENMAN->PostMessageToTopScreen( SM_AllDoneChoosing, 0.5f ); SCREENMAN->PostMessageToTopScreen( SM_AllDoneChoosing, 0.5f );
} }
+1
View File
@@ -39,6 +39,7 @@ protected:
int m_iSelectableChoices[MAX_ELEMS]; int m_iSelectableChoices[MAX_ELEMS];
RageSound m_soundModeChange; RageSound m_soundModeChange;
RageSound m_soundConfirm; RageSound m_soundConfirm;
RageSound m_soundStart;
CStringArray arrayLocations; CStringArray arrayLocations;
ScrollingList m_ScrollingList; ScrollingList m_ScrollingList;
Sprite m_ChoiceListFrame; Sprite m_ChoiceListFrame;
+1 -3
View File
@@ -115,9 +115,7 @@ void ScrollingList::StartBouncing()
else // flat, unrotated graphics need widths changing else // flat, unrotated graphics need widths changing
{ {
m_RippleCSprite.SetCroppedSize( -1, -1 ); // default image size. m_RippleCSprite.SetCroppedSize( -1, -1 ); // default image size.
m_RippleCSprite.SetWidth(EZ2_BANNER_WIDTH); m_RippleCSprite.SetWH(EZ2_BANNER_WIDTH+10, EZ2_BANNER_HEIGHT+10);
m_RippleCSprite.SetHeight(EZ2_BANNER_HEIGHT);
// m_RippleCSprite.SetWH(EZ2_BANNER_WIDTH+10, EZ2_BANNER_HEIGHT+10);
} }
m_RippleCSprite.SetXY( m_apCSprites[m_iSelection]->GetX(), m_apCSprites[m_iSelection]->GetY() ); m_RippleCSprite.SetXY( m_apCSprites[m_iSelection]->GetX(), m_apCSprites[m_iSelection]->GetY() );