tweak score number styles
This commit is contained in:
@@ -0,0 +1 @@
|
||||
_venacti bold 26
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 10 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 6.1 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 29 KiB After Width: | Height: | Size: 28 KiB |
@@ -1,6 +1,6 @@
|
||||
function PlayerColor( pn )
|
||||
if pn == PLAYER_1 then return color("0.4,1.0,0.8,1") end -- sea green
|
||||
if pn == PLAYER_2 then return color("1.0,0.5,0.2,1") end -- orange
|
||||
if pn == PLAYER_1 then return color("1.0,0.5,0.2,1") end -- orange
|
||||
if pn == PLAYER_2 then return color("0.4,1.0,0.8,1") end -- sea green
|
||||
return color("1,1,1,1")
|
||||
end
|
||||
|
||||
|
||||
@@ -966,12 +966,12 @@ ScoreFrameX=SCREEN_CENTER_X
|
||||
ScoreFrameY=SCREEN_BOTTOM
|
||||
ScoreFrameOnCommand=vertalign,bottom;addy,100;linear,0.5;addy,-100
|
||||
ScoreFrameOffCommand=linear,0.5;addy,100
|
||||
ScoreP1X=SCREEN_CENTER_X-208
|
||||
ScoreP1Y=SCREEN_CENTER_Y+202
|
||||
ScoreP1X=SCREEN_CENTER_X-220
|
||||
ScoreP1Y=SCREEN_CENTER_Y+210
|
||||
ScoreP1OnCommand=addy,100;linear,1;addy,-100;draworder,109;
|
||||
ScoreP1OffCommand=linear,1;addy,100;
|
||||
ScoreP2X=SCREEN_CENTER_X+210
|
||||
ScoreP2Y=SCREEN_CENTER_Y+202
|
||||
ScoreP2X=SCREEN_CENTER_X+220
|
||||
ScoreP2Y=SCREEN_CENTER_Y+210
|
||||
ScoreP2OnCommand=addy,100;linear,1;addy,-100;draworder,109;
|
||||
ScoreP2OffCommand=linear,1;addy,100;
|
||||
SecondaryScoreP1X=SCREEN_CENTER_X-20
|
||||
@@ -4416,6 +4416,7 @@ Fallback="StreamDisplay"
|
||||
[ScoreDisplayNormal]
|
||||
FrameX=0
|
||||
FrameY=0
|
||||
TextX=
|
||||
TextY=
|
||||
TextOnCommand=zoom,0.5
|
||||
TextX=0
|
||||
TextY=0
|
||||
TextOnCommand=zoom,0.5;shadowlength,0;
|
||||
TextInitCommand=%function(self,param) self:diffuse(PlayerColor(param.PlayerState:GetPlayerNumber())) end
|
||||
@@ -220,6 +220,7 @@ int PlayerState::GetSumOfActiveAttackLevels() const
|
||||
class LunaPlayerState: public Luna<PlayerState>
|
||||
{
|
||||
public:
|
||||
DEFINE_METHOD( GetPlayerNumber, m_PlayerNumber );
|
||||
static int SetPlayerOptions( T* p, lua_State *L )
|
||||
{
|
||||
ModsLevel m = Enum::Check<ModsLevel>( L, 1 );
|
||||
@@ -238,6 +239,7 @@ public:
|
||||
|
||||
LunaPlayerState()
|
||||
{
|
||||
ADD_METHOD( GetPlayerNumber );
|
||||
ADD_METHOD( SetPlayerOptions );
|
||||
ADD_METHOD( GetPlayerOptions );
|
||||
}
|
||||
|
||||
@@ -25,7 +25,6 @@ ScoreDisplayNormal::ScoreDisplayNormal()
|
||||
// init the text
|
||||
m_text.LoadFromFont( THEME->GetPathF("ScoreDisplayNormal","Text") );
|
||||
m_text.SetName( "Text" );
|
||||
m_text.SetShadowLength( 0 );
|
||||
m_text.UpdateText();
|
||||
ActorUtil::LoadAllCommandsAndSetXY( m_text, sType );
|
||||
this->AddChild( &m_text );
|
||||
@@ -35,10 +34,13 @@ void ScoreDisplayNormal::Init( const PlayerState* pPlayerState, const PlayerStag
|
||||
{
|
||||
ScoreDisplay::Init( pPlayerState, pPlayerStageStats );
|
||||
|
||||
// TODO: Remove use of PlayerNumber.
|
||||
//PlayerNumber pn = pPlayerState->m_PlayerNumber;
|
||||
|
||||
//m_text.RunCommands( CommonMetrics::PLAYER_COLOR.GetValue(pn) );
|
||||
PlayerState* pPlayerState_ = const_cast<PlayerState*>(pPlayerState);
|
||||
PlayerStageStats* pPlayerStageStats_ = const_cast<PlayerStageStats*>(pPlayerStageStats);
|
||||
|
||||
Message msg("Init");
|
||||
msg.SetParam( "PlayerState", LuaReference::CreateFromPush(*pPlayerState_) );
|
||||
msg.SetParam( "PlayerStageStats", LuaReference::CreateFromPush(*pPlayerStageStats_) );
|
||||
this->HandleMessage( msg );
|
||||
}
|
||||
|
||||
void ScoreDisplayNormal::SetScore( int iNewScore )
|
||||
|
||||
@@ -47,7 +47,7 @@
|
||||
Name="VCLinkerTool"
|
||||
AdditionalOptions="/MACHINE:I386 "$(intdir)\verstub.obj""
|
||||
AdditionalDependencies="libjpeg/jpeg.lib libpng/lib/libpng.lib"
|
||||
OutputFile="../../../cvs/piu/Program/StepMania-debug.exe"
|
||||
OutputFile="../Program/StepMania-debug.exe"
|
||||
LinkIncremental="2"
|
||||
SuppressStartupBanner="TRUE"
|
||||
AdditionalLibraryDirectories=""
|
||||
|
||||
Reference in New Issue
Block a user