customLen
for formatting text on booster shop, we pass the desired length from
getformatted text with noremove(no removal of {}) enabled, if its not
enabled then default the value to zero(passing zero means use the
default values)
This commit is contained in:
@@ -312,8 +312,9 @@ const vector<string>& CardPrimitive::getFormattedText(bool noremove)
|
||||
found = text.find_first_of("{}", found + 1);
|
||||
}
|
||||
}
|
||||
int defL = noremove?44:0;
|
||||
WFont * mFont = WResourceManager::Instance()->GetWFont(Fonts::MAGIC_FONT);
|
||||
mFont->FormatText(text, formattedText);
|
||||
mFont->FormatText(text, formattedText, defL);
|
||||
|
||||
text = "";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user