Various bug fixes. See changelog.
This commit is contained in:
@@ -16,21 +16,34 @@
|
||||
#include "ScreenTitleMenu.h"
|
||||
#include "ScreenSelectMusic.h"
|
||||
#include "GameConstantsAndTypes.h"
|
||||
#include "ThemeManager.h"
|
||||
#include "PrefsManager.h"
|
||||
#include "Quad.h"
|
||||
|
||||
|
||||
ScreenSandbox::ScreenSandbox()
|
||||
{
|
||||
m_text.Load( THEME->GetPathTo(FONT_NORMAL) );
|
||||
// m_text.Load( THEME->GetPathTo(FONT_NORMAL) );
|
||||
m_text.SetXY( CENTER_X, CENTER_Y );
|
||||
this->AddActor( &m_text );
|
||||
CStringArray as;
|
||||
as.Add( "Testing... Attention please." );
|
||||
m_text.SetTips( as );
|
||||
m_text.SetXY( CENTER_X, CENTER_Y );
|
||||
this->AddSubActor( &m_text );
|
||||
|
||||
m_Menu.Load(
|
||||
THEME->GetPathTo(GRAPHIC_SELECT_STYLE_BACKGROUND),
|
||||
THEME->GetPathTo(GRAPHIC_SELECT_STYLE_TOP_EDGE),
|
||||
ssprintf("Use %c %c to select, then press START", char(1), char(2) ),
|
||||
false, true, 40
|
||||
);
|
||||
this->AddSubActor( &m_Menu );
|
||||
m_Menu.TweenOnScreenFromBlack( SM_None );
|
||||
|
||||
m_sound.Load( THEME->GetPathTo(SOUND_MENU_MUSIC) );
|
||||
m_sound.SetPositionSeconds( -10 );
|
||||
m_sound.Play();
|
||||
|
||||
//this->AddActor( &m_spr );
|
||||
//this->AddSubActor( &m_spr );
|
||||
}
|
||||
|
||||
|
||||
@@ -38,12 +51,13 @@ void ScreenSandbox::Update( float fDeltaTime )
|
||||
{
|
||||
Screen::Update( fDeltaTime );
|
||||
m_sound.Update( fDeltaTime );
|
||||
m_text.SetText( ssprintf("%f", m_sound.GetPositionSeconds()) );
|
||||
}
|
||||
|
||||
void ScreenSandbox::DrawPrimitives()
|
||||
{
|
||||
m_Menu.DrawBottomLayer();
|
||||
Screen::DrawPrimitives();
|
||||
m_Menu.DrawTopLayer();
|
||||
}
|
||||
|
||||
void ScreenSandbox::Input( const DeviceInput& DeviceI, const InputEventType type, const GameInput &GameI, const MenuInput &MenuI, const StyleInput &StyleI )
|
||||
|
||||
Reference in New Issue
Block a user