mirror of https://github.com/axmolengine/axmol.git
update uiTextBMFont setString
This commit is contained in:
parent
118b74e95c
commit
81f3995cc1
|
@ -100,11 +100,11 @@ void TextBMFont::setString(const std::string& value)
|
|||
return;
|
||||
}
|
||||
_stringValue = value;
|
||||
_labelBMFontRenderer->setString(value);
|
||||
if (!_fntFileHasInit)
|
||||
{
|
||||
return;
|
||||
}
|
||||
_labelBMFontRenderer->setString(value);
|
||||
updateContentSizeWithTextureSize(_labelBMFontRenderer->getContentSize());
|
||||
_labelBMFontRendererAdaptDirty = true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue