Files
itgmania212121/src/InGameLoadingWindow.cpp
T
2011-06-05 12:25:07 +02:00

32 lines
685 B
C++

#include "global.h"
#include "InGameLoadingWindow.h"
#include "ScreenManager.h"
#include "ThemeManager.h"
#include "ActorUtil.h"
//REGISTER_ACTOR_CLASS( InGameLoadingWindow );
InGameLoadingWindow::InGameLoadingWindow() {
SetName("InGameLoadingWindow");
m_Text.SetName("LoadingText");
m_Text.LoadFromFont( THEME->GetPathF(m_sName, "LoadingText") );
m_Text.SetXY(0,0);
AddChild(&m_Text);
}
InGameLoadingWindow::~InGameLoadingWindow() {
RemoveChild(&m_Text);
}
void InGameLoadingWindow::SetText( RString str ) {
textChanged=true;
currentText=str;
}
void InGameLoadingWindow::Update(float delta) {
if(textChanged) {
m_Text.SetText( currentText );
textChanged=false;
}
}