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;
|
return rData;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void TextBMFont::resetRender()
|
||||||
|
{
|
||||||
|
this->removeProtectedChild(_labelBMFontRenderer);
|
||||||
|
this->initRenderer();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
NS_CC_END
|
NS_CC_END
|
||||||
|
|
|
@ -98,6 +98,10 @@ public:
|
||||||
|
|
||||||
ResourceData getRenderFile();
|
ResourceData getRenderFile();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* reset TextBMFont inner label
|
||||||
|
*/
|
||||||
|
void resetRender();
|
||||||
protected:
|
protected:
|
||||||
virtual void initRenderer() override;
|
virtual void initRenderer() override;
|
||||||
virtual void onSizeChanged() override;
|
virtual void onSizeChanged() override;
|
||||||
|
|
Loading…
Reference in New Issue