mirror of https://github.com/axmolengine/axmol.git
add interface for BMFont
This commit is contained in:
parent
fe0bd66698
commit
98a6558018
|
@ -195,6 +195,11 @@ ResourceData TextBMFont::getRenderFile()
|
|||
return rData;
|
||||
}
|
||||
|
||||
void TextBMFont::resetRender()
|
||||
{
|
||||
this->removeProtectedChild(_labelBMFontRenderer);
|
||||
this->initRenderer();
|
||||
}
|
||||
}
|
||||
|
||||
NS_CC_END
|
||||
|
|
|
@ -98,6 +98,10 @@ public:
|
|||
|
||||
ResourceData getRenderFile();
|
||||
|
||||
/**
|
||||
* reset TextBMFont inner label
|
||||
*/
|
||||
void resetRender();
|
||||
protected:
|
||||
virtual void initRenderer() override;
|
||||
virtual void onSizeChanged() override;
|
||||
|
|
Loading…
Reference in New Issue