mirror of https://github.com/axmolengine/axmol.git
update uiTextBMFont setFontFile
This commit is contained in:
parent
d38b802780
commit
118b74e95c
|
@ -89,15 +89,16 @@ void TextBMFont::setFntFile(const std::string& fileName)
|
||||||
_labelBMFontRenderer->setBMFontFilePath(fileName);
|
_labelBMFontRenderer->setBMFontFilePath(fileName);
|
||||||
|
|
||||||
_fntFileHasInit = true;
|
_fntFileHasInit = true;
|
||||||
setString(_stringValue);
|
updateContentSizeWithTextureSize(_labelBMFontRenderer->getContentSize());
|
||||||
|
_labelBMFontRendererAdaptDirty = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
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