// // SetupTriggerPopup::createCustomButton from 0x14060ec90 to 0x14060eecb (571 bytes) // // 5 xrefs: // > SetupKeyframePopup::init @ 0x1405bb5e9 // > SetupKeyframePopup::init @ 0x1405bb684 // > SetupKeyframePopup::init @ 0x1405bb715 // > SetupKeyframePopup::init @ 0x1405bb7b9 // > @ 0x14092fef4 // // This function is hookable on this platform (idp: pc, 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 11:35:15 +0000 // // Hidden C++ exception states: #wind=2 void __fastcall SetupTriggerPopup::createCustomButton( __int64 a1, unsigned int a2, const char *a3, __int64 a4, __int64 a5, float a6) { struct cocos2d::CCObject *PageContainer; // r12 const char *v11; // rcx struct cocos2d::CCSprite *v12; // r13 struct cocos2d::CCObject *v13; // rdi __int64 v14; // rbx __int64 v15; // rax const struct cocos2d::CCPoint *v16; // rax const char *v17; // rcx struct cocos2d::CCObject *v18; // rdi __int64 v19; // rbx __int64 v20; // rax __int64 v21; // rax __int64 v22; // rax _BYTE v23[8]; // [rsp+20h] [rbp-88h] BYREF float v24[2]; // [rsp+28h] [rbp-80h] BYREF _BYTE v25[8]; // [rsp+30h] [rbp-78h] BYREF const char *v26; // [rsp+38h] [rbp-70h] __int64 v27; // [rsp+40h] [rbp-68h] v26 = a3; v27 = a4; PageContainer = SetupTriggerPopup::getPageContainer(a1, 0); SetupTriggerPopup::getGroupContainer(a1, 0); if ( !*(_QWORD *)(a4 + 16) ) sub_1400405A0((void **)a4, "GJ_plus2Btn_001.png", 0x13u); v11 = (const char *)a4; if ( *(_QWORD *)(a4 + 24) > 0xFu ) v11 = *(const char **)a4; v12 = cocos2d::CCSprite::createWithSpriteFrameName(v11); (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v12 + 160LL))(v12); v13 = CCMenuItemSpriteExtra::create((int)v12, 0, a1, (__int64)sub_1402C8C54); (*(void (__fastcall **)(struct cocos2d::CCObject *, _QWORD))(*(_QWORD *)v13 + 64LL))(v13, a2); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))( *(_QWORD *)(a1 + 552), v13); v14 = *(_QWORD *)v13; cocos2d::CCNode::convertToNodeSpace(*(_QWORD *)(a1 + 552), v23, a5); (*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(v14 + 184))(v13, v15); cocos2d::CCArray::addObject(PageContainer, v13); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v23, 0.0, 4.0); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v24, v16); v17 = a3; if ( *((_QWORD *)a3 + 3) > 0xFu ) v17 = *(const char **)a3; v18 = cocos2d::CCLabelBMFont::create(v17, "goldFont.fnt"); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCObject *))(**(_QWORD **)(a1 + 584) + 464LL))( *(_QWORD *)(a1 + 584), v18); cocos2d::CCArray::addObject(PageContainer, v18); v19 = *(_QWORD *)v18; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v23, 0.5, 0.0); (*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(v19 + 288))(v18, v20); v21 = (*(__int64 (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v12 + 320LL))(v12); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v25, v24[0], (float)((float)(*(float *)(v21 + 4) * 0.5) * a6) + v24[1]); cocos2d::CCPoint::operator+(a5, v23, v22); (*(void (__fastcall **)(struct cocos2d::CCObject *, _BYTE *))(*(_QWORD *)v18 + 184LL))(v18, v23); (*(void (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v18 + 160LL))(v18); sub_14003D310((__int64)a3); sub_14003D310(a4); }
GD Web Decomp Icon

GD Web Decomp

Raw Source