mirror of https://github.com/axmolengine/axmol.git
BMFont need to refresh size by refresh the string
This commit is contained in:
parent
a456a3b917
commit
d38b802780
|
@ -94,10 +94,10 @@ void TextBMFont::setFntFile(const std::string& fileName)
|
||||||
|
|
||||||
void TextBMFont::setString(const std::string& value)
|
void TextBMFont::setString(const std::string& value)
|
||||||
{
|
{
|
||||||
if (value == _labelBMFontRenderer->getString())
|
//if (value == _labelBMFontRenderer->getString())
|
||||||
{
|
//{
|
||||||
return;
|
// return;
|
||||||
}
|
//}
|
||||||
_stringValue = value;
|
_stringValue = value;
|
||||||
if (!_fntFileHasInit)
|
if (!_fntFileHasInit)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue