mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-20 23:52:40 +08:00
add bitmap font batch rendering
This commit is contained in:
@@ -425,7 +425,7 @@ float ControlButton::getTitleTTFSizeForState(State state)
|
||||
void ControlButton::setTitleBMFontForState(const std::string& fntFile, State state)
|
||||
{
|
||||
std::string title = this->getTitleForState(state);
|
||||
this->setTitleLabelForState(Label::createWithBMFont(fntFile, title), state);
|
||||
this->setTitleLabelForState(Label::createWithBMFont(fntFile, title, nullptr), state);
|
||||
}
|
||||
|
||||
const std::string& ControlButton::getTitleBMFontForState(State state)
|
||||
|
||||
Reference in New Issue
Block a user