mirror of
https://github.com/geode-sdk/geode.git
synced 2025-02-17 00:30:26 -05:00
finalize positioning of left column in ModPopup
This commit is contained in:
parent
1876af8124
commit
6edef6c61b
1 changed files with 13 additions and 3 deletions
|
@ -145,8 +145,13 @@ bool ModPopup::setup(ModSource&& src) {
|
|||
|
||||
// Tags
|
||||
|
||||
auto tagsTitle = CCLabelBMFont::create("Tags", "bigFont.fnt");
|
||||
tagsTitle->limitLabelWidth(leftColumn->getContentWidth(), .25f, .05f);
|
||||
tagsTitle->setOpacity(195);
|
||||
leftColumn->addChild(tagsTitle);
|
||||
|
||||
auto tagsContainer = CCNode::create();
|
||||
tagsContainer->setContentSize({ leftColumn->getContentWidth(), 37.5f });
|
||||
tagsContainer->setContentSize({ leftColumn->getContentWidth(), 35 });
|
||||
tagsContainer->setAnchorPoint({ .5f, .5f });
|
||||
|
||||
auto tagsBG = CCScale9Sprite::create("square02b_001.png");
|
||||
|
@ -180,7 +185,7 @@ bool ModPopup::setup(ModSource&& src) {
|
|||
->setGrowCrossAxis(true)
|
||||
->setCrossAxisOverflow(false)
|
||||
->setAxisAlignment(AxisAlignment::Start)
|
||||
->setGap(2)
|
||||
->setCrossAxisAlignment(AxisAlignment::End)
|
||||
);
|
||||
tagsContainer->addChildAtPosition(m_tags, Anchor::Center);
|
||||
|
||||
|
@ -188,6 +193,11 @@ bool ModPopup::setup(ModSource&& src) {
|
|||
|
||||
// Installing
|
||||
|
||||
auto manageTitle = CCLabelBMFont::create("Manage", "bigFont.fnt");
|
||||
manageTitle->limitLabelWidth(leftColumn->getContentWidth(), .25f, .05f);
|
||||
manageTitle->setOpacity(195);
|
||||
leftColumn->addChild(manageTitle);
|
||||
|
||||
auto installContainer = CCNode::create();
|
||||
installContainer->setContentSize({ leftColumn->getContentWidth(), 25 });
|
||||
installContainer->setAnchorPoint({ .5f, .5f });
|
||||
|
@ -306,7 +316,7 @@ bool ModPopup::setup(ModSource&& src) {
|
|||
->setAutoScale(false)
|
||||
->setAxisAlignment(AxisAlignment::Start)
|
||||
->setCrossAxisLineAlignment(AxisAlignment::Start)
|
||||
->setGap(5)
|
||||
->setGap(4)
|
||||
);
|
||||
mainContainer->addChild(leftColumn);
|
||||
|
||||
|
|
Loading…
Reference in a new issue