PnM Theme Update -- ScreenGameplay.

Can now have a static background overlay on screengameplay
This commit is contained in:
Andrew Livy
2003-10-08 23:32:08 +00:00
parent 4ce32a840a
commit 403e1c9f35
5 changed files with 12 additions and 2 deletions
@@ -0,0 +1 @@
_blank.png
+2
View File
@@ -818,6 +818,8 @@ StyleIcon=1
NextScreen=ScreenGameplay
[ScreenGameplay]
StaticBGY=240
StaticBGX=320
PrevScreenArcade=ScreenSelectMusic
PrevScreenNonstop=ScreenSelectCourse
PrevScreenOni=ScreenSelectCourse
+2 -2
View File
@@ -34,8 +34,8 @@ const int DS3DDX_COL_SPACING = 46;
const int BM_COL_SPACING=34;
const int MANIAX_COL_SPACING = 36;
const int TECHNO_COL_SPACING = 64;
const int PNM5_COL_SPACING = 46;
const int PNM9_COL_SPACING = 39;
const int PNM5_COL_SPACING = 32;
const int PNM9_COL_SPACING = 32;
struct {
char *name;
+6
View File
@@ -53,6 +53,8 @@
#define PREV_SCREEN( play_mode ) THEME->GetMetric ("ScreenGameplay","PrevScreen"+Capitalize(PlayModeToString(play_mode)))
#define NEXT_SCREEN( play_mode ) THEME->GetMetric ("ScreenGameplay","NextScreen"+Capitalize(PlayModeToString(play_mode)))
#define SHOW_LIFE_METER_FOR_DISABLED_PLAYERS THEME->GetMetricB("ScreenGameplay","ShowLifeMeterForDisabledPlayers")
#define STATICBG_X THEME->GetMetricI ("ScreenGameplay","StaticBGX")
#define STATICBG_Y THEME->GetMetricI ("ScreenGameplay","StaticBGY")
CachedThemeMetricF SECONDS_BETWEEN_COMMENTS ("ScreenGameplay","SecondsBetweenComments");
CachedThemeMetricF G_TICK_EARLY_SECONDS ("ScreenGameplay","TickEarlySeconds");
@@ -244,6 +246,10 @@ ScreenGameplay::ScreenGameplay( CString sName, bool bDemonstration ) : Screen("S
m_Background.SetDiffuse( RageColor(0.4f,0.4f,0.4f,1) );
this->AddChild( &m_Background );
m_sprStaticBackground.Load( THEME->GetPathToG("ScreenGameplay Static Background"));
m_sprStaticBackground.SetXY( STATICBG_X, STATICBG_Y );
this->AddChild(&m_sprStaticBackground);
if( !bDemonstration ) // only load if we're going to use it
{
m_Toasty.Load( THEME->GetPathToB("ScreenGameplay toasty") );
+1
View File
@@ -105,6 +105,7 @@ protected:
Transition m_NextSongIn; // shows between songs in a course
Transition m_NextSongOut; // shows between songs in a course
Sprite m_sprStaticBackground;
Sprite m_sprLifeFrame;
LifeMeter* m_pLifeMeter[NUM_PLAYERS];
CombinedLifeMeter* m_pCombinedLifeMeter;