load from PlayerState and PlayerStageStats, not PlayerNumber and looking up in GameState

This commit is contained in:
Chris Danford
2005-08-23 21:04:35 +00:00
parent ed0ffb679a
commit fdb9764c81
5 changed files with 26 additions and 24 deletions
+2 -1
View File
@@ -19,6 +19,7 @@
#include "ActorUtil.h"
#include "PrefsManager.h"
#include "CharacterManager.h"
#include "StatsManager.h"
static const ThemeMetric<CString> STEPFILE ("ScreenHowToPlay","Stepfile");
static const ThemeMetric<int> NUM_PERFECTS ("ScreenHowToPlay","NumPerfects");
@@ -125,7 +126,7 @@ void ScreenHowToPlay::Init()
{
m_pLifeMeterBar = new LifeMeterBar;
m_pLifeMeterBar->SetName("LifeMeterBar");
m_pLifeMeterBar->Load( PLAYER_1 );
m_pLifeMeterBar->Load( GAMESTATE->m_pPlayerState[PLAYER_1], &STATSMAN->m_CurStageStats.m_player[PLAYER_1] );
SET_XY_AND_ON_COMMAND( m_pLifeMeterBar );
m_pLifeMeterBar->FillForHowToPlay( NUM_PERFECTS, NUM_MISSES );
}