who are you?

This commit is contained in:
Glenn Maynard
2003-01-21 02:42:37 +00:00
parent 6cd9b429b7
commit 0bff4f5add
2 changed files with 0 additions and 91 deletions
-55
View File
@@ -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." );
}
-36
View File
@@ -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