mirror of
https://github.com/geode-sdk/geode.git
synced 2025-04-01 07:40:18 -04:00
perfect (verb) geode tabs
This commit is contained in:
parent
223a9c2d85
commit
3cb119fd13
1 changed files with 2 additions and 2 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, clamp(width * .0045f, .35f, .55f), .1f);
|
||||
m_label->limitLabelWidth(this->getContentWidth() - 45, 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);
|
||||
this->addChildAtPosition(m_label, Anchor::Left, ccp((itemSize.width - iconSize.width) / 2 + iconSize.width, 0), false);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue