diff --git a/stepmania/src/StageBox.cpp b/stepmania/src/StageBox.cpp deleted file mode 100644 index f7ac7a74f6..0000000000 --- a/stepmania/src/StageBox.cpp +++ /dev/null @@ -1,55 +0,0 @@ -#include "stdafx.h" -/* ------------------------------------------------------------------------------ - Class: StageBox - - Desc: See header. - - Copyright (c) 2001-2002 by the person(s) listed below. All rights reserved. - Chris Danford ------------------------------------------------------------------------------ -*/ - -#include "StageBox.h" -#include "RageUtil.h" -#include "GameConstantsAndTypes.h" -#include "PrefsManager.h" -#include "RageLog.h" - -const float NUMBER_X = 16; -const float NUMBER_Y = 10; - -const float ST_X = NUMBER_X+4; -const float ST_Y = NUMBER_Y; - - -StageBox::StageBox() -{ - this->AddSubActor( &m_sprBox ); - - m_textNumber.LoadFromFont( THEME->GetPathTo("Fonts","header1") ); - m_textNumber.TurnShadowOff(); - m_textNumber.SetHorizAlign( Actor::align_right ); - m_textNumber.SetVertAlign( Actor::align_top ); - m_textNumber.SetZoom( 2.0f ); - m_textNumber.SetXY( NUMBER_X, NUMBER_Y ); - this->AddSubActor( &m_textNumber ); - - m_textST.LoadFromFont( THEME->GetPathTo("Fonts","header1") ); - m_textST.TurnShadowOff(); - m_textST.SetHorizAlign( Actor::align_left ); - m_textST.SetVertAlign( Actor::align_top ); - m_textST.SetZoom( 1 ); - m_textST.SetXY( ST_X, ST_Y ); - this->AddSubActor( &m_textST ); -} - -void StageBox::SetStageInfo( PlayerNumber p, int iNumStagesCompleted ) -{ - m_sprBox.Load( THEME->GetPathTo("Graphics",p==PLAYER_1?"evaluation stage frame p1":"evaluation stage frame p2") ); - m_sprBox.StopAnimating(); - - m_textNumber.SetText( ssprintf("%2d", iNumStagesCompleted) ); - - m_textST.SetText( "ST." ); -} diff --git a/stepmania/src/StageBox.h b/stepmania/src/StageBox.h deleted file mode 100644 index 839b3656f2..0000000000 --- a/stepmania/src/StageBox.h +++ /dev/null @@ -1,36 +0,0 @@ -#ifndef STAGEBOX_H -#define STAGEBOX_H -/* ------------------------------------------------------------------------------ - Class: StageBox - - Desc: bonus meters and max combo number. - - Copyright (c) 2001-2002 by the person(s) listed below. All rights reserved. - Chris Danford ------------------------------------------------------------------------------ -*/ - -#include "ActorFrame.h" -#include "Sprite.h" -#include "BitmapText.h" -#include "Quad.h" -#include "GameConstantsAndTypes.h" - - -class StageBox : public ActorFrame -{ -public: - StageBox(); - - void SetStageInfo( PlayerNumber p, int iNumStagesCompleted ); - -protected: - - Sprite m_sprBox; - BitmapText m_textTime; - BitmapText m_textNumber; - BitmapText m_textST; -}; - -#endif