//
// SetupTriggerPopup::createPlusButton from 0x100132248 to 0x100132398 (336 bytes)
//
// 8 xrefs:
// > SetupObjectOptions2Popup::init @ 0x1000418a8
// > SetupPickupTriggerPopup::init @ 0x100043530
// > SetupSFXPopup::init @ 0x10017ffe0
// > SetupSFXPopup::init @ 0x100180338
// > SetupSFXPopup::init @ 0x100180398
// > SetupRotateGameplayPopup::init @ 0x10019ebf0
// > SetupGradientPopup::init @ 0x100342d08
// > SetupInteractObjectPopup::init @ 0x100412c80
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
CCMenuItemSpriteExtra *__fastcall SetupTriggerPopup::createPlusButton(
SetupTriggerPopup *a1,
__int64 a2,
const cocos2d::CCPoint *a3,
std::string *a4,
int a5,
int a6,
float a7)
{
cocos2d::CCArray *PageContainer; // x21
cocos2d::CCArray *GroupContainer; // x20
__int64 v15; // x8
cocos2d::CCSprite *v16; // x25
CCMenuItemSpriteExtra *v17; // x25
_BYTE v19[8]; // [xsp+8h] [xbp-58h] BYREF
cocos2d::CCPoint v20; // 0:kr00_8.8
cocos2d::SEL_MenuHandler v21; // 0:x3.16
PageContainer = SetupTriggerPopup::getPageContainer(a1, a5);
GroupContainer = SetupTriggerPopup::getGroupContainer(a1, a6);
v15 = SHIBYTE(a4->__r_.__value_.__r.__words[2]);
if ( (v15 & 0x8000000000000000LL) == 0 )
{
if ( *((_BYTE *)&a4->__r_.__value_.__s + 23) )
goto LABEL_4;
goto LABEL_3;
}
if ( !a4->__r_.__value_.__l.__size_ )
{
LABEL_3:
std::string::assign(a4, "GJ_plus2Btn_001.png");
LOBYTE(v15) = *((_BYTE *)&a4->__r_.__value_.__s + 23);
}
LABEL_4:
if ( (v15 & 0x80) != 0 )
a4 = (std::string *)a4->__r_.__value_.__r.__words[0];
v16 = cocos2d::CCSprite::createWithSpriteFrameName((const char *)a4);
((void (__fastcall *)(cocos2d::CCSprite *, float))v16->setScale)(v16, a7);
v21.ptr = (void (__cdecl *)(cocos2d::CCObject *))1384;
v21.adj = 1;
v17 = CCMenuItemSpriteExtra::create(v16, nullptr, a1, v21);
((void (__fastcall *)(CCMenuItemSpriteExtra *, __int64))v17->setTag)(v17, a2);
((void (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))a1->m_buttonMenu->addChild)(a1->m_buttonMenu, v17);
v20 = cocos2d::CCNode::convertToNodeSpace(a1->m_buttonMenu, a3);
((void (__fastcall *)(CCMenuItemSpriteExtra *, _BYTE *, float, float))v17->setPosition)(v17, v19, v20.x, v20.y);
sub_10024A2D0(PageContainer, v17);
if ( a6 >= 1 )
sub_10024A2D0(GroupContainer, v17);
return v17;
}