mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-27 01:45:35 -05:00
fix mac build
workaround by using convertToWorldSpace instead of convertToWorldSpaceAR and setting the anchor point to 0,0
This commit is contained in:
parent
0ebc391309
commit
e3c2ca7417
1 changed files with 2 additions and 1 deletions
|
@ -335,6 +335,7 @@ bool ModListLayer::init() {
|
|||
m_tabsGradientNode->addChild(m_tabsGradientSprite);
|
||||
|
||||
m_tabsGradientStencil = CCSprite::create("tab-gradient-mask.png"_spr);
|
||||
m_tabsGradientStencil->setAnchorPoint({0.f, 0.f});
|
||||
m_tabsGradientNode->setStencil(m_tabsGradientStencil);
|
||||
|
||||
// add menus
|
||||
|
@ -647,7 +648,7 @@ void ModListLayer::onTab(CCObject* pSender) {
|
|||
member->release();
|
||||
}
|
||||
if (isSelected)
|
||||
m_tabsGradientStencil->setPosition(member->m_onButton->convertToWorldSpaceAR({0.f, -1.f}));
|
||||
m_tabsGradientStencil->setPosition(member->m_onButton->convertToWorldSpace({0.f, -1.f}));
|
||||
};
|
||||
|
||||
toggleTab(m_downloadTabBtn);
|
||||
|
|
Loading…
Reference in a new issue