mirror of
https://github.com/geode-sdk/geode.git
synced 2025-04-01 07:40:18 -04:00
fix the styling of the geode tab buttons
This commit is contained in:
parent
03385d07e1
commit
d0617d1b63
1 changed files with 3 additions and 3 deletions
|
@ -260,9 +260,9 @@ bool GeodeTabSprite::init(const char* iconFrame, const char* text, float width,
|
|||
this->addChildAtPosition(m_icon, Anchor::Left, ccp(16, 0), false);
|
||||
|
||||
m_label = CCLabelBMFont::create(text, "bigFont.fnt");
|
||||
m_label->limitLabelWidth(this->getContentWidth() - 34, .55f, .1f);
|
||||
m_label->setAnchorPoint({ .0f, .5f });
|
||||
this->addChildAtPosition(m_label, Anchor::Left, ccp(28, 0), false);
|
||||
m_label->limitLabelWidth(this->getContentWidth() - 34, clamp(width * .0045f, .35f, .55f), .1f);
|
||||
m_label->setAnchorPoint({ .5f, .5f });
|
||||
this->addChildAtPosition(m_label, Anchor::Left, ccp(28 + itemSize.width / 2 - iconSize.width, 0), false);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue