Re-adding these; they were (incorrectly) added as binary files for some

reason.

Fix include case, reduce dependencies on UnlockSystem.h, cleanup.
This commit is contained in:
Glenn Maynard
2003-07-07 22:21:31 +00:00
parent 0011ca5654
commit 03b4a7b6f3
10 changed files with 1286 additions and 6 deletions
+33
View File
@@ -0,0 +1,33 @@
#include "global.h"
#include "PrefsManager.h"
#include "ScreenUnlock.h"
#include "ThemeManager.h"
#include "GameState.h"
#include "RageLog.h"
#include "UnlockSystem.h"
ScreenUnlock::ScreenUnlock() : ScreenAttract("ScreenUnlock")
{
LOG->Trace("ScreenUnlock::ScreenUnlock()");
PointsUntilNextUnlock.LoadFromFont( THEME->GetPathToF("Common normal") );
PointsUntilNextUnlock.SetHorizAlign( Actor::align_left );
CString sDP = ssprintf( "%f", GAMESTATE->m_pUnlockingSys->NumPointsUntilNextUnlock() );
// Remove the decimal
if( sDP.Find(".",1) > 0 )
{
sDP = sDP.Left(sDP.Find(".",1));
}
// No negative numbers
if( sDP.Left(1) == "-" )
{
sDP = "*";
};
PointsUntilNextUnlock.SetText( sDP );
PointsUntilNextUnlock.SetZoom( 3 );
PointsUntilNextUnlock.SetXY( 10, 370 );
this->AddChild( &PointsUntilNextUnlock );
}