add Frame element
This commit is contained in:
@@ -25,6 +25,11 @@ MenuTimer::MenuTimer()
|
|||||||
|
|
||||||
void MenuTimer::Load( RString sMetricsGroup )
|
void MenuTimer::Load( RString sMetricsGroup )
|
||||||
{
|
{
|
||||||
|
m_sprFrame.Load( THEME->GetPathG(sMetricsGroup, "Frame") );
|
||||||
|
m_sprFrame->SetName( "Frame" );
|
||||||
|
ActorUtil::LoadAllCommandsAndSetXY( m_sprFrame, sMetricsGroup );
|
||||||
|
this->AddChild( m_sprFrame );
|
||||||
|
|
||||||
for( int i=0; i<NUM_MENU_TIMER_TEXTS; i++ )
|
for( int i=0; i<NUM_MENU_TIMER_TEXTS; i++ )
|
||||||
{
|
{
|
||||||
m_text[i].LoadFromFont( THEME->GetPathF(sMetricsGroup,"numbers") );
|
m_text[i].LoadFromFont( THEME->GetPathF(sMetricsGroup,"numbers") );
|
||||||
|
|||||||
@@ -7,6 +7,7 @@
|
|||||||
#include "BitmapText.h"
|
#include "BitmapText.h"
|
||||||
#include "RageSound.h"
|
#include "RageSound.h"
|
||||||
#include "ThemeMetric.h"
|
#include "ThemeMetric.h"
|
||||||
|
#include "AutoActor.h"
|
||||||
|
|
||||||
class MenuTimer : public ActorFrame
|
class MenuTimer : public ActorFrame
|
||||||
{
|
{
|
||||||
@@ -46,6 +47,8 @@ protected:
|
|||||||
|
|
||||||
LuaReference m_exprFormatText[NUM_MENU_TIMER_TEXTS];
|
LuaReference m_exprFormatText[NUM_MENU_TIMER_TEXTS];
|
||||||
|
|
||||||
|
AutoActor m_sprFrame;
|
||||||
|
|
||||||
RageSound m_soundBeep;
|
RageSound m_soundBeep;
|
||||||
|
|
||||||
ThemeMetric<int> WARNING_START;
|
ThemeMetric<int> WARNING_START;
|
||||||
|
|||||||
Reference in New Issue
Block a user