Add fly animations
This commit is contained in:
@@ -21,6 +21,9 @@ void Text::Draw(const Vector2f& pos) const {
|
||||
}
|
||||
}
|
||||
void Text::ChangeText(const std::string& text) {
|
||||
if(m_Text == text) {
|
||||
return;
|
||||
}
|
||||
if(m_IsCreatedOk && m_Texture->IsCreationOk()) {
|
||||
delete m_Texture;
|
||||
m_Texture = new Texture(text, m_FontPath, m_Size, m_Color);
|
||||
|
||||
Reference in New Issue
Block a user