add interface for BMFont

This commit is contained in:
Liam 2015-12-21 18:49:46 +08:00
parent fe0bd66698
commit 98a6558018
2 changed files with 9 additions and 0 deletions

View File

@ -195,6 +195,11 @@ ResourceData TextBMFont::getRenderFile()
return rData;
}
void TextBMFont::resetRender()
{
this->removeProtectedChild(_labelBMFontRenderer);
this->initRenderer();
}
}
NS_CC_END

View File

@ -98,6 +98,10 @@ public:
ResourceData getRenderFile();
/**
* reset TextBMFont inner label
*/
void resetRender();
protected:
virtual void initRenderer() override;
virtual void onSizeChanged() override;