Add metrics for credits text
This commit is contained in:
@@ -1371,7 +1371,7 @@ ExplanationY=410
|
|||||||
ExplanationText=In this mode, you can edit existing notes patterns,::create note patterns, or synchronize notes with the music.
|
ExplanationText=In this mode, you can edit existing notes patterns,::create note patterns, or synchronize notes with the music.
|
||||||
HelpText=&UP; &DOWN; change line &LEFT; &RIGHT; change value START to continue
|
HelpText=&UP; &DOWN; change line &LEFT; &RIGHT; change value START to continue
|
||||||
|
|
||||||
[ScreenManager]
|
[ScreenSystemLayer]
|
||||||
StatsX=632
|
StatsX=632
|
||||||
StatsY=10
|
StatsY=10
|
||||||
CreditsP1X=120
|
CreditsP1X=120
|
||||||
@@ -1381,6 +1381,11 @@ CreditsP2Y=474
|
|||||||
CreditsColor=1,1,1,1
|
CreditsColor=1,1,1,1
|
||||||
CreditsShadowLength=0
|
CreditsShadowLength=0
|
||||||
CreditsZoom=1.0
|
CreditsZoom=1.0
|
||||||
|
CreditsTextHomeJoin=PRESS START
|
||||||
|
CreditsTextHomeJoined=
|
||||||
|
CreditsTextHomeTooLate=NOT PRESENT
|
||||||
|
CreditsTextPay=CREDIT(S)
|
||||||
|
CreditsTextFree=FREE PLAY
|
||||||
|
|
||||||
[MusicWheelItem]
|
[MusicWheelItem]
|
||||||
IconX=-136
|
IconX=-136
|
||||||
|
|||||||
@@ -31,13 +31,18 @@
|
|||||||
ScreenManager* SCREENMAN = NULL; // global and accessable from anywhere in our program
|
ScreenManager* SCREENMAN = NULL; // global and accessable from anywhere in our program
|
||||||
|
|
||||||
|
|
||||||
#define STATS_X THEME->GetMetricF("ScreenManager","StatsX")
|
#define STATS_X THEME->GetMetricF("ScreenSystemLayer","StatsX")
|
||||||
#define STATS_Y THEME->GetMetricF("ScreenManager","StatsY")
|
#define STATS_Y THEME->GetMetricF("ScreenSystemLayer","StatsY")
|
||||||
#define CREDITS_X( p ) THEME->GetMetricF("ScreenManager",ssprintf("CreditsP%dX",p+1))
|
#define CREDITS_X( p ) THEME->GetMetricF("ScreenSystemLayer",ssprintf("CreditsP%dX",p+1))
|
||||||
#define CREDITS_Y( p ) THEME->GetMetricF("ScreenManager",ssprintf("CreditsP%dY",p+1))
|
#define CREDITS_Y( p ) THEME->GetMetricF("ScreenSystemLayer",ssprintf("CreditsP%dY",p+1))
|
||||||
#define CREDITS_COLOR THEME->GetMetricC("ScreenManager","CreditsColor")
|
#define CREDITS_COLOR THEME->GetMetricC("ScreenSystemLayer","CreditsColor")
|
||||||
#define CREDITS_SHADOW_LENGTH THEME->GetMetricF("ScreenManager","CreditsShadowLength")
|
#define CREDITS_SHADOW_LENGTH THEME->GetMetricF("ScreenSystemLayer","CreditsShadowLength")
|
||||||
#define CREDITS_ZOOM THEME->GetMetricF("ScreenManager","CreditsZoom")
|
#define CREDITS_ZOOM THEME->GetMetricF("ScreenSystemLayer","CreditsZoom")
|
||||||
|
#define CREDITS_TEXT_HOME_JOIN THEME->GetMetric ("ScreenSystemLayer","CreditsTextHomeJoin")
|
||||||
|
#define CREDITS_TEXT_HOME_JOINED THEME->GetMetric ("ScreenSystemLayer","CreditsTextHomeJoined")
|
||||||
|
#define CREDITS_TEXT_HOME_TOO_LATE THEME->GetMetric ("ScreenSystemLayer","CreditsTextHomeTooLate")
|
||||||
|
#define CREDITS_TEXT_PAY THEME->GetMetric ("ScreenSystemLayer","CreditsTextPay")
|
||||||
|
#define CREDITS_TEXT_FREE THEME->GetMetric ("ScreenSystemLayer","CreditsTextFree")
|
||||||
|
|
||||||
const int NUM_SKIPS = 5;
|
const int NUM_SKIPS = 5;
|
||||||
|
|
||||||
@@ -154,23 +159,23 @@ void ScreenSystemLayer::RefreshCreditsMessages()
|
|||||||
{
|
{
|
||||||
case COIN_HOME:
|
case COIN_HOME:
|
||||||
if( GAMESTATE->m_bSideIsJoined[p] )
|
if( GAMESTATE->m_bSideIsJoined[p] )
|
||||||
sText = "";
|
sText = CREDITS_TEXT_HOME_JOINED;
|
||||||
else if( GAMESTATE->m_bPlayersCanJoin ) // would (GAMESTATE->m_CurStyle!=STYLE_INVALID) do the same thing?
|
else if( GAMESTATE->m_bPlayersCanJoin ) // would (GAMESTATE->m_CurStyle!=STYLE_INVALID) do the same thing?
|
||||||
sText = "PRESS START";
|
sText = CREDITS_TEXT_HOME_JOIN;
|
||||||
else
|
else
|
||||||
sText = "NOT PRESENT";
|
sText = CREDITS_TEXT_HOME_TOO_LATE;
|
||||||
break;
|
break;
|
||||||
case COIN_PAY:
|
case COIN_PAY:
|
||||||
{
|
{
|
||||||
int Coins = GAMESTATE->m_iCoins % PREFSMAN->m_iCoinsPerCredit;
|
int Coins = GAMESTATE->m_iCoins % PREFSMAN->m_iCoinsPerCredit;
|
||||||
CString txt = ssprintf("CREDIT(S) %d", GAMESTATE->m_iCoins / PREFSMAN->m_iCoinsPerCredit);
|
CString txt = ssprintf("%s %d", CREDITS_TEXT_PAY.c_str(), GAMESTATE->m_iCoins / PREFSMAN->m_iCoinsPerCredit);
|
||||||
if (Coins)
|
if (Coins)
|
||||||
txt += ssprintf(" %d/%d", Coins, PREFSMAN->m_iCoinsPerCredit );
|
txt += ssprintf(" %d/%d", Coins, PREFSMAN->m_iCoinsPerCredit );
|
||||||
sText = txt;
|
sText = txt;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case COIN_FREE:
|
case COIN_FREE:
|
||||||
sText = "FREE PLAY";
|
sText = CREDITS_TEXT_FREE;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
ASSERT(0);
|
ASSERT(0);
|
||||||
|
|||||||
Reference in New Issue
Block a user