[loading window] Forgot to refresh before commiting, again.
This commit is contained in:
@@ -19,5 +19,13 @@ InGameLoadingWindow::~InGameLoadingWindow() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void InGameLoadingWindow::SetText( RString str ) {
|
void InGameLoadingWindow::SetText( RString str ) {
|
||||||
m_Text.SetText( str );
|
textChanged=true;
|
||||||
|
currentText=str;
|
||||||
|
}
|
||||||
|
|
||||||
|
void InGameLoadingWindow::Update(float delta) {
|
||||||
|
if(textChanged) {
|
||||||
|
m_Text.SetText( currentText );
|
||||||
|
textChanged=false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,9 +11,11 @@ public:
|
|||||||
~InGameLoadingWindow();
|
~InGameLoadingWindow();
|
||||||
|
|
||||||
void SetText( RString str );
|
void SetText( RString str );
|
||||||
|
void Update ( float delta );
|
||||||
|
|
||||||
private:
|
private:
|
||||||
RageTimer m_LastDraw;
|
bool textChanged;
|
||||||
|
RString currentText;
|
||||||
BitmapText m_Text;
|
BitmapText m_Text;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user