fix high score displays not showing high score number

This commit is contained in:
Chris Danford
2008-04-26 19:43:08 +00:00
parent 5be01cfab7
commit 707789af7e
4 changed files with 5 additions and 3 deletions
@@ -27,7 +27,7 @@ function ComboGraph( pn )
end
local t = THEME:GetPathB("ScreenWithMenuElements2", "decorations" );
local t = LoadFallbackB( "decorations" );
t[#t+1] = GraphDisplay(PLAYER_1) .. {
InitCommand = cmd(x,SCREEN_CENTER_X-222;y,SCREEN_CENTER_Y-16;draworder,1;);
@@ -1 +1 @@
return LoadFont("common normal") .. { InitCommand=cmd(settext,"Machine Record NN";);
return LoadFont("common normal") .. { InitCommand=cmd(settext,"Machine Record #" .. (Var "MachineHighScoreNumber"); );
@@ -1 +1 @@
return LoadFont("common normal") .. { InitCommand=cmd(settext,"Personal Record NN";);
return LoadFont("common normal") .. { InitCommand=cmd(settext,"Profile Record #" .. (Var "ProfileHighScoreNumber"); );
+2
View File
@@ -605,6 +605,7 @@ void ScreenEvaluation::Init()
{
if( m_pStageStats->m_player[p].m_iMachineHighScoreIndex != -1 )
{
LuaThreadVariable var( "MachineHighScoreNumber", LuaReference::Create(m_pStageStats->m_player[p].m_iMachineHighScoreIndex+1) );
m_sprMachineRecord[p].Load( THEME->GetPathG( m_sName, ssprintf("MachineRecord",m_pStageStats->m_player[p].m_iMachineHighScoreIndex+1) ) );
m_sprMachineRecord[p]->SetName( ssprintf("MachineRecordP%d",p+1) );
ActorUtil::LoadAllCommands( *m_sprMachineRecord[p], m_sName );
@@ -613,6 +614,7 @@ void ScreenEvaluation::Init()
}
if( m_pStageStats->m_player[p].m_iProfileHighScoreIndex != -1 )
{
LuaThreadVariable var( "ProfileHighScoreNumber", LuaReference::Create(m_pStageStats->m_player[p].m_iProfileHighScoreIndex+1) );
m_sprProfileRecord[p].Load( THEME->GetPathG( m_sName, ssprintf("ProfileRecord",m_pStageStats->m_player[p].m_iProfileHighScoreIndex+1) ) );
m_sprProfileRecord[p]->SetName( ssprintf("ProfileRecordP%d",p+1) );
ActorUtil::LoadAllCommands( *m_sprProfileRecord[p], m_sName );