From 13af2debff3fa26bf09813307f0eb14d902a0f12 Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Mon, 21 Jul 2008 07:59:31 +0000 Subject: [PATCH] add Frame element --- stepmania/src/MenuTimer.cpp | 5 +++++ stepmania/src/MenuTimer.h | 3 +++ 2 files changed, 8 insertions(+) diff --git a/stepmania/src/MenuTimer.cpp b/stepmania/src/MenuTimer.cpp index 05c94b8608..3c5661c7ec 100644 --- a/stepmania/src/MenuTimer.cpp +++ b/stepmania/src/MenuTimer.cpp @@ -25,6 +25,11 @@ MenuTimer::MenuTimer() 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; iGetPathF(sMetricsGroup,"numbers") ); diff --git a/stepmania/src/MenuTimer.h b/stepmania/src/MenuTimer.h index e8d1301b69..ea9eaf1f2c 100644 --- a/stepmania/src/MenuTimer.h +++ b/stepmania/src/MenuTimer.h @@ -7,6 +7,7 @@ #include "BitmapText.h" #include "RageSound.h" #include "ThemeMetric.h" +#include "AutoActor.h" class MenuTimer : public ActorFrame { @@ -46,6 +47,8 @@ protected: LuaReference m_exprFormatText[NUM_MENU_TIMER_TEXTS]; + AutoActor m_sprFrame; + RageSound m_soundBeep; ThemeMetric WARNING_START;