// // SetupTriggerPopup::createPlusButton from 0xb20990 to 0xb20b10 (384 bytes) // // 5 xrefs: // > SetupRotateGameplayPopup::init @ 0xb26be0 // > SetupSFXPopup::init @ 0xb6ec54 // > SetupSFXPopup::init @ 0xb6f150 // > SetupSFXPopup::init @ 0xb6f1b4 // > @ 0xbf218 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 13:01:36 +0000 // cocos2d::CCObject *__fastcall SetupTriggerPopup::createPlusButton( __int64 a1, unsigned int a2, const cocos2d::CCPoint *a3, __int64 *a4, unsigned int a5, signed int a6, float a7) { cocos2d::CCArray *PageContainer; // x24 const char *v14; // x1 cocos2d::CCArray *GroupContainer; // x26 int v16; // w0 cocos2d::CCSprite *v17; // x0 __int64 v18; // x19 cocos2d::CCObject *v19; // x19 cocos2d::CCNode *v20; // x0 void (__fastcall *v21)(cocos2d::CCObject *, __int64 *); // x22 __int64 v23; // [xsp+60h] [xbp+60h] BYREF PageContainer = (cocos2d::CCArray *)SetupTriggerPopup::getPageContainer((cocos2d::CCArray **)a1, a5); GroupContainer = (cocos2d::CCArray *)SetupTriggerPopup::getGroupContainer((cocos2d::CCArray **)a1, a6); v16 = *(unsigned __int8 *)a4; if ( (v16 & 1) != 0 ) { if ( a4[1] ) { LABEL_3: v17 = (cocos2d::CCSprite *)a4[2]; goto LABEL_4; } } else if ( v16 >> 1 ) { goto LABEL_9; } std::string::assign(a4, "GJ_plus2Btn_001.png"); if ( (*(_BYTE *)a4 & 1) != 0 ) goto LABEL_3; LABEL_9: v17 = (cocos2d::CCSprite *)((char *)a4 + 1); LABEL_4: v18 = cocos2d::CCSprite::createWithSpriteFrameName(v17, v14); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v18 + 160LL))(v18, a7); v19 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create(v18, 0, a1, 1416, 1); (*(void (__fastcall **)(cocos2d::CCObject *, _QWORD))(*(_QWORD *)v19 + 72LL))(v19, a2); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 456LL))(*(_QWORD *)(a1 + 552), v19); v20 = *(cocos2d::CCNode **)(a1 + 552); v21 = *(void (__fastcall **)(cocos2d::CCObject *, __int64 *))(*(_QWORD *)v19 + 184LL); cocos2d::CCNode::convertToNodeSpace(&v23, v20, a3); v21(v19, &v23); cocos2d::CCArray::addObject(PageContainer, v19); if ( a6 > 0 ) cocos2d::CCArray::addObject(GroupContainer, v19); return v19; }
GD Web Decomp Icon

GD Web Decomp

Raw Source