// // SetupTriggerPopup::createCustomButton from 0x5428a0 to 0x542a7c (476 bytes) // // 4 xrefs: // > SetupKeyframePopup::init @ 0x5742a6 // > SetupKeyframePopup::init @ 0x57430a // > SetupKeyframePopup::init @ 0x574370 // > SetupKeyframePopup::init @ 0x57443a // // 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 // int __fastcall SetupTriggerPopup::createCustomButton( SetupTriggerPopup *a1, int a2, int a3, const char **a4, const cocos2d::CCPoint *a5, float a6, int a7, char a8, int a9, int a10) { cocos2d::CCArray *PageContainer; // r11 cocos2d::CCArray *GroupContainer; // r10 cocos2d::CCSprite *v15; // r5 CCMenuItemSpriteExtra *v16; // r6 float v17; // r1 float v18; // r2 cocos2d::CCLabelBMFont *v19; // r6 void (__fastcall *setAnchorPoint)(cocos2d::CCLabelBMFont *__hidden, const cocos2d::CCPoint *); // r9 void (__fastcall *v21)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r9 float *v22; // r0 float y; // r2 float v24; // r1 float x; // r10 int v26; // r0 void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // [sp+14h] [bp-30h] cocos2d::CCPoint v29; // [sp+1Ch] [bp-28h] BYREF cocos2d::CCPoint v30; // [sp+24h] [bp-20h] BYREF cocos2d::CCPoint v31; // [sp+2Ch] [bp-18h] BYREF int v32; // [sp+34h] [bp-10h] int v33; // [sp+38h] [bp-Ch] PageContainer = SetupTriggerPopup::getPageContainer(a1, a9); GroupContainer = SetupTriggerPopup::getGroupContainer(a1, a10); if ( !*((_DWORD *)*a4 - 3) ) sub_7753D4((int)a4, "GJ_plus2Btn_001.png"); v15 = cocos2d::CCSprite::createWithSpriteFrameName(*a4); ((void (__fastcall *)(cocos2d::CCSprite *, _DWORD))v15->setScale)(v15, LODWORD(a6)); v32 = 696; v33 = 1; v16 = CCMenuItemSpriteExtra::create(v15, nullptr, (cocos2d::SEL_MenuHandler)((unsigned int)a1 | 0x2B800000000LL)); v16->setTag(v16, a2); a1->m_buttonMenu->addChild(a1->m_buttonMenu, v16); setPosition = v16->setPosition; cocos2d::CCNode::convertToNodeSpace(&v31, a1->m_buttonMenu, a5); setPosition(v16, &v31); cocos2d::CCArray::addObject(PageContainer, v16); if ( a10 > 0 ) cocos2d::CCArray::addObject(GroupContainer, v16); if ( a8 ) { v17 = 0.0; v18 = 4.0; } else { v17 = 8.0; v18 = 0.0; } cocos2d::CCPoint::CCPoint(&v29, v17, v18); v19 = cocos2d::CCLabelBMFont::create(); a1->m_mainLayer->addChild(a1->m_mainLayer, v19); cocos2d::CCArray::addObject(PageContainer, v19); if ( a10 > 0 ) cocos2d::CCArray::addObject(GroupContainer, v19); setAnchorPoint = v19->setAnchorPoint; if ( a8 ) { cocos2d::CCPoint::CCPoint(&v31, 0.5, 0.0); setAnchorPoint(v19, &v31); x = v29.x; v21 = v19->setPosition; v26 = (int)v15->getContentSize(v15); v24 = x; y = v29.y + (float)((float)(*(float *)(v26 + 4) * 0.5) * a6); } else { cocos2d::CCPoint::CCPoint(&v31, 0.0, 0.5); setAnchorPoint(v19, &v31); v21 = v19->setPosition; v22 = (float *)v15->getContentSize(v15); y = v29.y; v24 = v29.x + (float)((float)(*v22 * 0.5) * a6); } cocos2d::CCPoint::CCPoint(&v30, v24, y); cocos2d::CCPoint::operator+(&v31, a5, &v30); v21(v19, &v31); return ((int (__fastcall *)(cocos2d::CCLabelBMFont *, int))v19->setScale)(v19, a7); }
GD Web Decomp Icon

GD Web Decomp

Raw Source