ScreenSelectStyle5th now a bit more themeable....
This commit is contained in:
@@ -137,6 +137,43 @@ PictureOffCommand=linear,0.5;diffusealpha,0;glow,1,1,1,0
|
|||||||
HelpText=Use &LEFT; &RIGHT; to select, then press START
|
HelpText=Use &LEFT; &RIGHT; to select, then press START
|
||||||
TimerSeconds=40
|
TimerSeconds=40
|
||||||
NextScreen=ScreenSelectDifficulty
|
NextScreen=ScreenSelectDifficulty
|
||||||
|
PadX1=70
|
||||||
|
PadY1=300
|
||||||
|
PadZoom1=1
|
||||||
|
PadX2=195
|
||||||
|
PadY2=210
|
||||||
|
PadZoom2=1
|
||||||
|
PadX3=300
|
||||||
|
PadY3=310
|
||||||
|
PadZoom3=1
|
||||||
|
PadX4=445
|
||||||
|
PadY4=210
|
||||||
|
PadZoom4=1
|
||||||
|
PadX5=570
|
||||||
|
PadY5=300
|
||||||
|
PadZoom5=1
|
||||||
|
|
||||||
|
DancerX1=70
|
||||||
|
DancerY1=300
|
||||||
|
DancerZoom1=2
|
||||||
|
DancerX2=160
|
||||||
|
DancerY2=230
|
||||||
|
DancerZoom2=2
|
||||||
|
DancerX3=230
|
||||||
|
DancerY3=190
|
||||||
|
DancerZoom3=2
|
||||||
|
DancerX4=300
|
||||||
|
DancerY4=310
|
||||||
|
DancerZoom4=2
|
||||||
|
DancerX5=410
|
||||||
|
DancerY5=230
|
||||||
|
DancerZoom5=2
|
||||||
|
DancerX6=460
|
||||||
|
DancerY6=190
|
||||||
|
DancerZoom6=2
|
||||||
|
DancerX7=570
|
||||||
|
DancerY7=300
|
||||||
|
DancerZoom7=2
|
||||||
|
|
||||||
[ScreenSelectMode]
|
[ScreenSelectMode]
|
||||||
JoinFrameP1X=120
|
JoinFrameP1X=120
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ const CString DANCE_STYLES[NUM_DANCE_STYLES] = {
|
|||||||
"couple",
|
"couple",
|
||||||
"solo",
|
"solo",
|
||||||
};
|
};
|
||||||
|
/*
|
||||||
const float PAD_X[NUM_STYLE_PADS] = {
|
const float PAD_X[NUM_STYLE_PADS] = {
|
||||||
CENTER_X-250,
|
CENTER_X-250,
|
||||||
CENTER_X-125,
|
CENTER_X-125,
|
||||||
@@ -54,6 +54,7 @@ const float PAD_Y[NUM_STYLE_PADS] = {
|
|||||||
CENTER_Y-30,
|
CENTER_Y-30,
|
||||||
CENTER_Y+60,
|
CENTER_Y+60,
|
||||||
};
|
};
|
||||||
|
|
||||||
const float DANCER_X[NUM_STYLE_DANCERS] = {
|
const float DANCER_X[NUM_STYLE_DANCERS] = {
|
||||||
PAD_X[0],
|
PAD_X[0],
|
||||||
PAD_X[1]-35,
|
PAD_X[1]-35,
|
||||||
@@ -63,6 +64,7 @@ const float DANCER_X[NUM_STYLE_DANCERS] = {
|
|||||||
PAD_X[3]+35,
|
PAD_X[3]+35,
|
||||||
PAD_X[4],
|
PAD_X[4],
|
||||||
};
|
};
|
||||||
|
|
||||||
const float DANCER_Y[NUM_STYLE_DANCERS] = {
|
const float DANCER_Y[NUM_STYLE_DANCERS] = {
|
||||||
PAD_Y[0],
|
PAD_Y[0],
|
||||||
PAD_Y[1]+20,
|
PAD_Y[1]+20,
|
||||||
@@ -72,7 +74,7 @@ const float DANCER_Y[NUM_STYLE_DANCERS] = {
|
|||||||
PAD_Y[3]-20,
|
PAD_Y[3]-20,
|
||||||
PAD_Y[4],
|
PAD_Y[4],
|
||||||
};
|
};
|
||||||
|
*/
|
||||||
CString TEXT_EXPLANATION1[NUM_DANCE_STYLES] = {
|
CString TEXT_EXPLANATION1[NUM_DANCE_STYLES] = {
|
||||||
"1 Player",
|
"1 Player",
|
||||||
"2 Players",
|
"2 Players",
|
||||||
@@ -115,6 +117,12 @@ const RageColor COLOR_P2_NOT_SELECTED = COLOR_P2_SELECTED*0.5f + RageColor(0,0,0
|
|||||||
const ScreenMessage SM_UpdateAnimations = ScreenMessage(SM_User + 3);
|
const ScreenMessage SM_UpdateAnimations = ScreenMessage(SM_User + 3);
|
||||||
const ScreenMessage SM_TweenExplanation2 = ScreenMessage(SM_User + 4);
|
const ScreenMessage SM_TweenExplanation2 = ScreenMessage(SM_User + 4);
|
||||||
|
|
||||||
|
#define PAD_X( p ) THEME->GetMetricF("ScreenSelectStyle5th",ssprintf("PadX%d",p+1))
|
||||||
|
#define PAD_Y( p ) THEME->GetMetricF("ScreenSelectStyle5th",ssprintf("PadY%d",p+1))
|
||||||
|
#define PAD_ZOOM( p ) THEME->GetMetricF("ScreenSelectStyle5th",ssprintf("PadZoom%d",p+1))
|
||||||
|
#define DANCER_X( p ) THEME->GetMetricF("ScreenSelectStyle5th",ssprintf("DancerX%d",p+1))
|
||||||
|
#define DANCER_Y( p ) THEME->GetMetricF("ScreenSelectStyle5th",ssprintf("DancerY%d",p+1))
|
||||||
|
#define DANCER_ZOOM( p ) THEME->GetMetricF("ScreenSelectStyle5th",ssprintf("DancerZoom%d",p+1))
|
||||||
|
|
||||||
ScreenSelectStyle5th::ScreenSelectStyle5th() : Screen("ScreenSelectStyle5th")
|
ScreenSelectStyle5th::ScreenSelectStyle5th() : Screen("ScreenSelectStyle5th")
|
||||||
{
|
{
|
||||||
@@ -128,6 +136,8 @@ ScreenSelectStyle5th::ScreenSelectStyle5th() : Screen("ScreenSelectStyle5th")
|
|||||||
m_sprPad[i].Load( THEME->GetPathToG(ssprintf("select style pad game %d style %d",GAMESTATE->m_CurGame,i)) );
|
m_sprPad[i].Load( THEME->GetPathToG(ssprintf("select style pad game %d style %d",GAMESTATE->m_CurGame,i)) );
|
||||||
// m_sprPad[i].SetXY( PAD_X[i], PAD_Y[i] );
|
// m_sprPad[i].SetXY( PAD_X[i], PAD_Y[i] );
|
||||||
// m_sprPad[i].SetZoom( 1 );
|
// m_sprPad[i].SetZoom( 1 );
|
||||||
|
m_sprPad[i].SetXY( PAD_X(i), PAD_Y(i));
|
||||||
|
m_sprPad[i].SetZoom( PAD_ZOOM(i));
|
||||||
this->AddChild( &m_sprPad[i] );
|
this->AddChild( &m_sprPad[i] );
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -136,6 +146,8 @@ ScreenSelectStyle5th::ScreenSelectStyle5th() : Screen("ScreenSelectStyle5th")
|
|||||||
{
|
{
|
||||||
m_sprDancer[i].Load( THEME->GetPathToG(ssprintf("select style player game %d style %d",GAMESTATE->m_CurGame,i)) );
|
m_sprDancer[i].Load( THEME->GetPathToG(ssprintf("select style player game %d style %d",GAMESTATE->m_CurGame,i)) );
|
||||||
m_sprDancer[i].SetVertAlign( Actor::align_top );
|
m_sprDancer[i].SetVertAlign( Actor::align_top );
|
||||||
|
m_sprDancer[i].SetXY( DANCER_X(i), DANCER_Y(i));
|
||||||
|
m_sprDancer[i].SetZoom( DANCER_ZOOM(i));
|
||||||
// m_sprDancer[i].SetXY( DANCER_X[i], DANCER_Y[i] );
|
// m_sprDancer[i].SetXY( DANCER_X[i], DANCER_Y[i] );
|
||||||
// m_sprDancer[i].SetZoom( 2 );
|
// m_sprDancer[i].SetZoom( 2 );
|
||||||
m_sprDancer[i].StopAnimating();
|
m_sprDancer[i].StopAnimating();
|
||||||
|
|||||||
Reference in New Issue
Block a user