fixing glitches in SelectGroup
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 2.8 KiB |
@@ -35,8 +35,8 @@ ZoomSelected=1.3
|
|||||||
SecondsBetweenComments=12
|
SecondsBetweenComments=12
|
||||||
SecondsBeforeAttract=30
|
SecondsBeforeAttract=30
|
||||||
HelpTextHome=Use &UP; &DOWN; to select, then press START
|
HelpTextHome=Use &UP; &DOWN; to select, then press START
|
||||||
HelpTextPay=Press START to begin.
|
HelpTextPay=Press START to begin
|
||||||
HelpTextFree=Press START to begin.
|
HelpTextFree=Press START to begin
|
||||||
NextScreen=ScreenCaution
|
NextScreen=ScreenCaution
|
||||||
|
|
||||||
[ScreenCaution]
|
[ScreenCaution]
|
||||||
@@ -128,13 +128,13 @@ NextScreen1=ScreenSelectGroup
|
|||||||
NextScreen2=ScreenSelectGroup
|
NextScreen2=ScreenSelectGroup
|
||||||
NextScreen3=ScreenSelectGroup
|
NextScreen3=ScreenSelectGroup
|
||||||
NextScreen4=ScreenSelectGroup
|
NextScreen4=ScreenSelectGroup
|
||||||
NextScreen5=ScreenSelectGroup
|
NextScreen5=ScreenInstructions
|
||||||
NextScreen6=ScreenSelectGroup
|
NextScreen6=ScreenInstructions
|
||||||
NextScreen7=ScreenSelectGroup
|
NextScreen7=ScreenInstructions
|
||||||
NumChoicesOnPage1=4
|
NumChoicesOnPage1=4
|
||||||
LockInputSeconds=0.5
|
LockInputSeconds=0.5
|
||||||
SleepAfterChoiceSeconds=0.5
|
SleepAfterChoiceSeconds=0.3
|
||||||
SleepAfterTweenOffSeconds=1.3
|
SleepAfterTweenOffSeconds=0.8
|
||||||
MorePage1OnCommand=diffuse,1,1,1,0;x,580;y,90;linear,0.5;diffuse,1,1,1,1
|
MorePage1OnCommand=diffuse,1,1,1,0;x,580;y,90;linear,0.5;diffuse,1,1,1,1
|
||||||
MorePage1OffCommand=linear,0.5;diffuse,1,1,1,0
|
MorePage1OffCommand=linear,0.5;diffuse,1,1,1,0
|
||||||
MorePage2OnCommand=x,700;y,90
|
MorePage2OnCommand=x,700;y,90
|
||||||
@@ -171,7 +171,7 @@ PicturePage2Choice2OnCommand=vertalign,top;x,960;y,200
|
|||||||
PicturePage2Choice2OffCommand=sleep,0.2;bouncebegin,0.3;zoomy,0
|
PicturePage2Choice2OffCommand=sleep,0.2;bouncebegin,0.3;zoomy,0
|
||||||
PicturePage2Choice3OnCommand=vertalign,top;x,1160;y,200
|
PicturePage2Choice3OnCommand=vertalign,top;x,1160;y,200
|
||||||
PicturePage2Choice3OffCommand=sleep,0.4;bouncebegin,0.3;zoomy,0
|
PicturePage2Choice3OffCommand=sleep,0.4;bouncebegin,0.3;zoomy,0
|
||||||
CursorOnCommand=diffuse,1,1,1,0;rotationz,6;zoom,4;linear,0.3;diffuse,1,1,1,1;rotationz,0;zoom,1;glowshift
|
CursorOnCommand=diffuse,1,1,1,0;rotationz,6;zoom,4;linear,0.3;diffuse,1,1,1,1;rotationz,0;zoom,1;glowshift;effectperiod,0.5
|
||||||
CursorChooseCommand=sleep,0.2;linear,0.2;xoffset,10;yoffset,10
|
CursorChooseCommand=sleep,0.2;linear,0.2;xoffset,10;yoffset,10
|
||||||
CursorOffCommand=sleep,0.2;linear,0.3;zoom,0
|
CursorOffCommand=sleep,0.2;linear,0.3;zoom,0
|
||||||
CursorP1OffsetXFromPicture=-40
|
CursorP1OffsetXFromPicture=-40
|
||||||
@@ -188,7 +188,7 @@ OKChooseCommand=diffuse,1,1,1,1;zoom,2;linear,0.2;diffuse,1,1,1,1;zoom,1
|
|||||||
OKOffCommand=sleep,0.2;linear,0.3;zoom,0
|
OKOffCommand=sleep,0.2;linear,0.3;zoom,0
|
||||||
DisabledColor=0.2,0.2,0.2,1
|
DisabledColor=0.2,0.2,0.2,1
|
||||||
|
|
||||||
[ScreenSelectMaxScreenSelectDifficultyEX]
|
[ScreenSelectDifficultyEx]
|
||||||
DifficultyP1X=216
|
DifficultyP1X=216
|
||||||
DifficultyP1Y=180
|
DifficultyP1Y=180
|
||||||
DifficultyP2X=440
|
DifficultyP2X=440
|
||||||
@@ -205,22 +205,23 @@ NextScreenOni=ScreenInstructions
|
|||||||
NextScreenBattle=ScreenInstructions
|
NextScreenBattle=ScreenInstructions
|
||||||
|
|
||||||
[ScreenSelectGroup]
|
[ScreenSelectGroup]
|
||||||
FrameOnCommand=x,180;y,160
|
FrameOnCommand=x,180;y,160;xoffset,-400;bounceend,0.5;xoffset,400
|
||||||
FrameOffCommand=
|
FrameOffCommand=bouncebegin,0.5;xoffset,-400
|
||||||
BannerOnCommand=x,182;y,158
|
BannerOnCommand=x,182;y,158;xoffset,-400;bounceend,0.5;xoffset,400
|
||||||
BannerOffCommand=
|
BannerOffCommand=bouncebegin,0.5;xoffset,-400
|
||||||
BannerWidth=288
|
BannerWidth=288
|
||||||
BannerHeight=92
|
BannerHeight=92
|
||||||
NumberOnCommand=x,116;y,224;horizalign,right;shadowlength,0
|
NumberOnCommand=x,116;y,224;horizalign,right;shadowlength,0;xoffset,-400;bounceend,0.5;xoffset,400
|
||||||
NumberOffCommand=
|
NumberOffCommand=bouncebegin,0.5;xoffset,-400
|
||||||
ExplanationOnCommand=x,110;y,66
|
ExplanationOnCommand=x,110;y,66;xoffset,-400;bounceend,0.5;xoffset,400
|
||||||
ExplanationOffCommand=
|
ExplanationOffCommand=bouncebegin,0.5;xoffset,-400
|
||||||
ContentsOnCommand=x,320;y,260
|
ContentsOnCommand=x,320;y,260;diffuse,1,1,1,0;linear,0.5;diffuse,1,1,1,1
|
||||||
ContentsOffCommand=
|
ContentsOffCommand=linear,0.5;diffuse,1,1,1,0
|
||||||
GroupListOnCommand=x,504;y,200
|
GroupListOnCommand=x,504;y,200
|
||||||
GroupListOffCommand=
|
GroupListOffCommand=
|
||||||
MusicListOnCommand=x,20;y,276
|
MusicListOnCommand=x,20;y,276
|
||||||
MusicListOffCommand=
|
MusicListOffCommand=
|
||||||
|
SleepAfterTweenOffSeconds=0.8
|
||||||
HelpText=Use &LEFT; &RIGHT; to select, then press START
|
HelpText=Use &LEFT; &RIGHT; to select, then press START
|
||||||
TimerSeconds=40
|
TimerSeconds=40
|
||||||
NextScreen=ScreenInstructions
|
NextScreen=ScreenInstructions
|
||||||
@@ -230,7 +231,7 @@ StartX=0
|
|||||||
StartY=-136
|
StartY=-136
|
||||||
SpacingX=0
|
SpacingX=0
|
||||||
SpacingY=26
|
SpacingY=26
|
||||||
GainFocusCommand=stoptweening;glowshift;linear,0.2;x,-40
|
GainFocusCommand=stoptweening;glowshift;effectperiod,0.5;linear,0.2;x,-40
|
||||||
LoseFocusCommand=stoptweening;stopeffect;linear,0.2;x,0
|
LoseFocusCommand=stoptweening;stopeffect;linear,0.2;x,0
|
||||||
|
|
||||||
[MusicList]
|
[MusicList]
|
||||||
|
|||||||
@@ -9,13 +9,13 @@
|
|||||||
-----------------------------------------------------------------------------
|
-----------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "RageUtil.h"
|
|
||||||
|
|
||||||
#include "Banner.h"
|
#include "Banner.h"
|
||||||
#include "PrefsManager.h"
|
#include "PrefsManager.h"
|
||||||
#include "SongManager.h"
|
#include "SongManager.h"
|
||||||
#include "RageBitmapTexture.h"
|
#include "RageBitmapTexture.h"
|
||||||
#include "ThemeManager.h"
|
#include "ThemeManager.h"
|
||||||
|
#include "RageUtil.h"
|
||||||
|
|
||||||
|
|
||||||
Banner::Banner()
|
Banner::Banner()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -136,6 +136,7 @@ void MenuElements::StartTransitioning( ScreenMessage smSendWhenDone )
|
|||||||
|
|
||||||
void MenuElements::Back( ScreenMessage smSendWhenDone )
|
void MenuElements::Back( ScreenMessage smSendWhenDone )
|
||||||
{
|
{
|
||||||
|
m_MenuTimer.StopTimer();
|
||||||
m_Back.StartTransitioning( smSendWhenDone );
|
m_Back.StartTransitioning( smSendWhenDone );
|
||||||
m_soundBack.Play();
|
m_soundBack.Play();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -143,7 +143,7 @@ void ScreenSelectDifficulty::HandleScreenMessage( const ScreenMessage SM )
|
|||||||
{
|
{
|
||||||
case SM_BeginFadingOut:
|
case SM_BeginFadingOut:
|
||||||
TweenOffScreen();
|
TweenOffScreen();
|
||||||
SCREENMAN->SendMessageToTopScreen( SM_AllDoneChoosing, SLEEP_AFTER_CHOICE_SECONDS ); // nofify parent that we're finished
|
SCREENMAN->SendMessageToTopScreen( SM_AllDoneChoosing, SLEEP_AFTER_TWEEN_OFF_SECONDS ); // nofify parent that we're finished
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -41,6 +41,7 @@
|
|||||||
#define MUSIC_LIST_OFF_COMMAND THEME->GetMetric ("ScreenSelectGroup","MusicListOffCommand")
|
#define MUSIC_LIST_OFF_COMMAND THEME->GetMetric ("ScreenSelectGroup","MusicListOffCommand")
|
||||||
#define GROUP_LIST_ON_COMMAND THEME->GetMetric ("ScreenSelectGroup","GroupListOnCommand")
|
#define GROUP_LIST_ON_COMMAND THEME->GetMetric ("ScreenSelectGroup","GroupListOnCommand")
|
||||||
#define GROUP_LIST_OFF_COMMAND THEME->GetMetric ("ScreenSelectGroup","GroupListOnCommand")
|
#define GROUP_LIST_OFF_COMMAND THEME->GetMetric ("ScreenSelectGroup","GroupListOnCommand")
|
||||||
|
#define SLEEP_AFTER_TWEEN_OFF_SECONDS THEME->GetMetricF("ScreenSelectGroup","SleepAfterTweenOffSeconds")
|
||||||
#define HELP_TEXT THEME->GetMetric ("ScreenSelectGroup","HelpText")
|
#define HELP_TEXT THEME->GetMetric ("ScreenSelectGroup","HelpText")
|
||||||
#define TIMER_SECONDS THEME->GetMetricI("ScreenSelectGroup","TimerSeconds")
|
#define TIMER_SECONDS THEME->GetMetricI("ScreenSelectGroup","TimerSeconds")
|
||||||
#define NEXT_SCREEN THEME->GetMetric ("ScreenSelectGroup","NextScreen")
|
#define NEXT_SCREEN THEME->GetMetric ("ScreenSelectGroup","NextScreen")
|
||||||
@@ -123,31 +124,24 @@ ScreenSelectGroup::ScreenSelectGroup()
|
|||||||
m_bChosen = false;
|
m_bChosen = false;
|
||||||
|
|
||||||
m_sprExplanation.Load( THEME->GetPathTo("Graphics","ScreenSelectGroup explanation") );
|
m_sprExplanation.Load( THEME->GetPathTo("Graphics","ScreenSelectGroup explanation") );
|
||||||
m_sprExplanation.Command( EXPLANATION_ON_COMMAND );
|
|
||||||
this->AddChild( &m_sprExplanation );
|
this->AddChild( &m_sprExplanation );
|
||||||
|
|
||||||
// these guys get loaded SetSong and TweenToSong
|
// these guys get loaded SetSong and TweenToSong
|
||||||
m_Banner.SetXY( 640, 240 );
|
|
||||||
m_Banner.SetCroppedSize( BANNER_WIDTH, BANNER_HEIGHT );
|
m_Banner.SetCroppedSize( BANNER_WIDTH, BANNER_HEIGHT );
|
||||||
this->AddChild( &m_Banner );
|
this->AddChild( &m_Banner );
|
||||||
|
|
||||||
m_sprFrame.Load( THEME->GetPathTo("Graphics","ScreenSelectGroup frame") );
|
m_sprFrame.Load( THEME->GetPathTo("Graphics","ScreenSelectGroup frame") );
|
||||||
m_sprFrame.Command( FRAME_ON_COMMAND );
|
|
||||||
this->AddChild( &m_sprFrame );
|
this->AddChild( &m_sprFrame );
|
||||||
|
|
||||||
m_textNumber.LoadFromNumbers( THEME->GetPathTo("Numbers","ScreenSelectGroup numbers") );
|
m_textNumber.LoadFromNumbers( THEME->GetPathTo("Numbers","ScreenSelectGroup numbers") );
|
||||||
m_textNumber.Command( NUMBER_ON_COMMAND );
|
|
||||||
this->AddChild( &m_textNumber );
|
this->AddChild( &m_textNumber );
|
||||||
|
|
||||||
m_sprContents.Load( THEME->GetPathTo("Graphics","ScreenSelectGroup contents") );
|
m_sprContents.Load( THEME->GetPathTo("Graphics","ScreenSelectGroup contents") );
|
||||||
m_sprContents.Command( CONTENTS_ON_COMMAND );
|
|
||||||
this->AddChild( &m_sprContents );
|
this->AddChild( &m_sprContents );
|
||||||
|
|
||||||
m_MusicList.Command( MUSIC_LIST_ON_COMMAND );
|
|
||||||
this->AddChild( &m_MusicList );
|
this->AddChild( &m_MusicList );
|
||||||
|
|
||||||
m_GroupList.Load( asGroupNames );
|
m_GroupList.Load( asGroupNames );
|
||||||
m_GroupList.Command( GROUP_LIST_ON_COMMAND );
|
|
||||||
this->AddChild( &m_GroupList );
|
this->AddChild( &m_GroupList );
|
||||||
|
|
||||||
|
|
||||||
@@ -158,8 +152,8 @@ ScreenSelectGroup::ScreenSelectGroup()
|
|||||||
|
|
||||||
SOUNDMAN->PlayMusic( THEME->GetPathTo("Sounds","ScreenSelectGroup music") );
|
SOUNDMAN->PlayMusic( THEME->GetPathTo("Sounds","ScreenSelectGroup music") );
|
||||||
|
|
||||||
TweenOnScreen();
|
|
||||||
AfterChange();
|
AfterChange();
|
||||||
|
TweenOnScreen();
|
||||||
m_GroupList.SetSelection(0);
|
m_GroupList.SetSelection(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -192,6 +186,9 @@ void ScreenSelectGroup::HandleScreenMessage( const ScreenMessage SM )
|
|||||||
{
|
{
|
||||||
switch( SM )
|
switch( SM )
|
||||||
{
|
{
|
||||||
|
case SM_BeginFadingOut:
|
||||||
|
m_Menu.StartTransitioning( SM_GoToNextScreen );
|
||||||
|
break;
|
||||||
case SM_MenuTimer:
|
case SM_MenuTimer:
|
||||||
MenuStart(PLAYER_1);
|
MenuStart(PLAYER_1);
|
||||||
break;
|
break;
|
||||||
@@ -210,9 +207,7 @@ void ScreenSelectGroup::AfterChange()
|
|||||||
m_MusicList.SetGroupNo(sel);
|
m_MusicList.SetGroupNo(sel);
|
||||||
|
|
||||||
CString sSelectedGroupName = m_GroupList.GetSelectionName();
|
CString sSelectedGroupName = m_GroupList.GetSelectionName();
|
||||||
|
if( sSelectedGroupName == "ALL MUSIC" )
|
||||||
CString sGroupBannerPath;
|
|
||||||
if( sSelectedGroupName == GROUP_ALL_MUSIC )
|
|
||||||
m_Banner.LoadAllMusic();
|
m_Banner.LoadAllMusic();
|
||||||
else
|
else
|
||||||
m_Banner.LoadFromGroup( sSelectedGroupName );
|
m_Banner.LoadFromGroup( sSelectedGroupName );
|
||||||
@@ -272,7 +267,7 @@ void ScreenSelectGroup::MenuStart( PlayerNumber pn )
|
|||||||
|
|
||||||
|
|
||||||
TweenOffScreen();
|
TweenOffScreen();
|
||||||
m_Menu.StartTransitioning( SM_GoToNextScreen );
|
this->SendScreenMessage( SM_BeginFadingOut, SLEEP_AFTER_TWEEN_OFF_SECONDS );
|
||||||
}
|
}
|
||||||
|
|
||||||
void ScreenSelectGroup::MenuBack( PlayerNumber pn )
|
void ScreenSelectGroup::MenuBack( PlayerNumber pn )
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ private:
|
|||||||
|
|
||||||
Sprite m_sprExplanation;
|
Sprite m_sprExplanation;
|
||||||
Sprite m_sprFrame;
|
Sprite m_sprFrame;
|
||||||
FadingBanner m_Banner;
|
Banner m_Banner;
|
||||||
BitmapText m_textNumber;
|
BitmapText m_textNumber;
|
||||||
Sprite m_sprContents;
|
Sprite m_sprContents;
|
||||||
|
|
||||||
|
|||||||
@@ -1,29 +0,0 @@
|
|||||||
#include "global.h"
|
|
||||||
/*
|
|
||||||
-----------------------------------------------------------------------------
|
|
||||||
Class: StageDisplay
|
|
||||||
|
|
||||||
Desc: See header.
|
|
||||||
|
|
||||||
Copyright (c) 2001-2002 by the person(s) listed below. All rights reserved.
|
|
||||||
Chris Danford
|
|
||||||
-----------------------------------------------------------------------------
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "StageDisplay.h"
|
|
||||||
#include "GameState.h"
|
|
||||||
#include "ThemeManager.h"
|
|
||||||
|
|
||||||
|
|
||||||
StageDisplay::StageDisplay()
|
|
||||||
{
|
|
||||||
LoadFromFont( THEME->GetPathTo("Fonts","Header2") );
|
|
||||||
EnableShadow( false );
|
|
||||||
Refresh();
|
|
||||||
}
|
|
||||||
|
|
||||||
void StageDisplay::Refresh()
|
|
||||||
{
|
|
||||||
SetText( GAMESTATE->GetStageText() );
|
|
||||||
SetDiffuse( GAMESTATE->GetStageColor() );
|
|
||||||
}
|
|
||||||
@@ -1,30 +0,0 @@
|
|||||||
#ifndef StageDisplay_H
|
|
||||||
#define StageDisplay_H
|
|
||||||
/*
|
|
||||||
-----------------------------------------------------------------------------
|
|
||||||
Class: StageDisplay
|
|
||||||
|
|
||||||
Desc: Shows stage number
|
|
||||||
|
|
||||||
Copyright (c) 2001-2002 by the person(s) listed below. All rights reserved.
|
|
||||||
Chris Danford
|
|
||||||
-----------------------------------------------------------------------------
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "Sprite.h"
|
|
||||||
#include "song.h"
|
|
||||||
#include "BitmapText.h"
|
|
||||||
#include "PrefsManager.h"
|
|
||||||
|
|
||||||
|
|
||||||
class StageDisplay : public BitmapText
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
StageDisplay();
|
|
||||||
|
|
||||||
void Refresh();
|
|
||||||
|
|
||||||
private:
|
|
||||||
};
|
|
||||||
|
|
||||||
#endif
|
|
||||||
@@ -284,6 +284,8 @@ try_metric_again:
|
|||||||
if( m_uHashForCurThemeMetrics != GetHashForFile(sCurMetricPath) ||
|
if( m_uHashForCurThemeMetrics != GetHashForFile(sCurMetricPath) ||
|
||||||
m_uHashForBaseThemeMetrics != GetHashForFile(sDefaultMetricPath) )
|
m_uHashForBaseThemeMetrics != GetHashForFile(sDefaultMetricPath) )
|
||||||
{
|
{
|
||||||
|
LOG->Warn( "Metrics file is out of date. Reloading..." );
|
||||||
|
MessageBeep( MB_OK );
|
||||||
SwitchTheme(m_sCurThemeName); // force a reload of the metrics cache
|
SwitchTheme(m_sCurThemeName); // force a reload of the metrics cache
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user