/* ----------------------------------------------------------------------------- File: FootMeter.h Desc: A graphic displayed in the FootMeter during Dancing. Copyright (c) 2001 Chris Danford. All rights reserved. ----------------------------------------------------------------------------- */ #ifndef _FootMeter_H_ #define _FootMeter_H_ #include "Sprite.h" #include "Song.h" #include "BitmapText.h" #include "ThemeManager.h" class FootMeter : public BitmapText { public: FootMeter() { Load( THEME->GetPathTo(FONT_FEET) ); SetNumFeet( 0, "" ); }; void SetFromSteps( Pattern* pSteps ) { if( pSteps != NULL ) { SetDiffuseColor( D3DXCOLOR(1,1,1,1) ); SetNumFeet( pSteps->m_iNumFeet, pSteps->m_sDescription ); } else { SetDiffuseColor( D3DXCOLOR(1,1,1,0) ); SetNumFeet( 0, "" ); } }; private: void SetNumFeet( int iNumFeet, const CString &sDescription ) { CString sNewText; for( int f=0; f<=9; f++ ) sNewText += (f