commit
02bf41b146
|
@ -54,14 +54,16 @@ RichText & RichText::operator << (const sf::String &string)
|
|||
std::cerr << "sfe::RichtText: Oops, character \n found."
|
||||
"You will get visual errors." << std::endl;
|
||||
|
||||
//String cannot be void
|
||||
//assert(string != "");
|
||||
|
||||
// Add string
|
||||
myTexts.push_back(sf::Text());
|
||||
myTexts.push_back(sf::Text(string));
|
||||
|
||||
// Setup string
|
||||
sf::Text &text = myTexts.back();
|
||||
text.setColor(myCurrentColor);
|
||||
text.setStyle(myCurrentStyle);
|
||||
text.setString(string);
|
||||
|
||||
// Return
|
||||
return *this;
|
||||
|
|
Loading…
Reference in New Issue