// // SetupEventLinkPopup::init from 0x140465f50 to 0x1404664bc (1388 bytes) // // 3 xrefs: // > SetupEventLinkPopup::create @ 0x140465f0e // > @ 0x1406db090 // > @ 0x1406db09c // // 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 // // Hidden C++ exception states: #wind=3 bool SetupEventLinkPopup::init(SetupEventLinkPopup *a1, EventLinkTrigger *a2, cocos2d::CCArray *a3) { bool result; // al _QWORD *v5; // r9 _QWORD *v6; // rcx const char *v7; // rdx __int64 v8; // r8 double v9; // xmm0_8 __int64 v10; // rcx cocos2d::CCDirector *v11; // rax struct cocos2d::CCSprite *v12; // rbx CCMenuItemSpriteExtra *v13; // rdi float v14; // xmm0_4 CCMenuItemSpriteExtra_vtbl *v15; // rbx struct cocos2d::CCPoint v16; // rax char v17; // [rsp+80h] [rbp-88h] __int64 v18; // [rsp+80h] [rbp-88h] __int64 v19; // [rsp+80h] [rbp-88h] float v20; // [rsp+88h] [rbp-80h] __int128 *v21; // [rsp+90h] [rbp-78h] BYREF __int128 *v22; // [rsp+98h] [rbp-70h] BYREF __int128 *v23; // [rsp+A0h] [rbp-68h] __int128 v24; // [rsp+A8h] [rbp-60h] BYREF __int64 v25; // [rsp+B8h] [rbp-50h] __int64 v26; // [rsp+C0h] [rbp-48h] __int128 v27; // [rsp+C8h] [rbp-40h] BYREF __int64 v28; // [rsp+D8h] [rbp-30h] __int64 v29; // [rsp+E0h] [rbp-28h] char v30; // [rsp+150h] [rbp+48h] BYREF result = SetupTriggerPopup::init(a1, a2, a3, 380.0, 280.0, 1); if ( result ) { a1->m_disableTextDelegate = 1; a1->determineStartValues(a1); *((_QWORD *)&v24 + 1) = 27502; v25 = 10; v26 = 15; *(_QWORD *)&v24 = 0x694C20746E657645LL; SetupTriggerPopup::addTitle(a1, &v24); v24 = 0; v25 = 2; v26 = 15; strcpy((char *)&v24, "OK"); SetupTriggerPopup::addCloseButton(a1, &v24); v21 = &v24; v24 = 0; v25 = 0; v26 = 15; v5 = sub_14003AA10(0x120u); *(_QWORD *)&v24 = v5; v25 = 283; v26 = 287; v6 = v5; v7 = "Activates Group ID upon a specified player action. Select one or multiple from the top right menu.\n" "Extra ID makes the action only apply if the player interacts with a corresponding object, for example i" "f Material ID matches.\n" "Extra ID2: 0 = All, 1 = P1, 2 = P2"; v8 = 2; do { *(_OWORD *)v6 = *(_OWORD *)v7; *((_OWORD *)v6 + 1) = *((_OWORD *)v7 + 1); *((_OWORD *)v6 + 2) = *((_OWORD *)v7 + 2); *((_OWORD *)v6 + 3) = *((_OWORD *)v7 + 3); *((_OWORD *)v6 + 4) = *((_OWORD *)v7 + 4); *((_OWORD *)v6 + 5) = *((_OWORD *)v7 + 5); *((_OWORD *)v6 + 6) = *((_OWORD *)v7 + 6); v6 += 16; *((_OWORD *)v6 - 1) = *((_OWORD *)v7 + 7); v7 += 128; --v8; } while ( v8 ); *(_OWORD *)v6 = *(_OWORD *)v7; v6[2] = *((_QWORD *)v7 + 2); *((_WORD *)v6 + 12) = *((_WORD *)v7 + 12); *((_BYTE *)v6 + 26) = v7[26]; *((_BYTE *)v5 + 283) = 0; v27 = 0; v28 = 4; v29 = 15; strcpy((char *)&v27, "Help"); v9 = SetupTriggerPopup::addHelpButton(a1, &v27, &v24); SetupTriggerPopup::createMultiTriggerItemsDefault(a1); v11 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v10); cocos2d::CCDirector::getWinSize(v11); cocos2d::CCPoint::CCPoint(*(float *)&v9, v20 * 0.5); v22 = &v24; *((_QWORD *)&v24 + 1) = 58; v25 = 9; v26 = 15; *(_QWORD *)&v24 = 0x44492070756F7247LL; cocos2d::CCPoint::CCPoint(3.0353437e32, -80.0); cocos2d::CCPoint::operator+(&v30, &v21); v17 = 0; SetupTriggerPopup::createValueControlAdvanced( (_DWORD)a1, 51, (unsigned int)&v24, (unsigned int)&v21, 1061997773, 1, 2, 10, 1, 0, 1176255488, 0, 0, 0, 0, v17); v23 = &v24; *((_QWORD *)&v24 + 1) = 58; v25 = 9; v26 = 15; *(_QWORD *)&v24 = 0x4449206172747845LL; cocos2d::CCPoint::CCPoint(4.8422233e30, 80.0); cocos2d::CCPoint::operator+(&v30, &v21); LOBYTE(v18) = 0; SetupTriggerPopup::createValueControlAdvanced( (_DWORD)a1, 447, (unsigned int)&v24, (unsigned int)&v21, 1061997773, 1, 2, 10, 1, 0, 1176255488, 0, 0, 0, 0, v18); v23 = &v24; *((_QWORD *)&v24 + 1) = 14898; v25 = 10; v26 = 15; *(_QWORD *)&v24 = 0x4449206172747845LL; cocos2d::CCPoint::CCPoint(4.8422233e30, 80.0); cocos2d::CCPoint::operator+(&v30, &v21); LOBYTE(v19) = 0; SetupTriggerPopup::createValueControlAdvanced( (_DWORD)a1, 525, (unsigned int)&v24, (unsigned int)&v21, 1061997773, 1, 2, 10, 1, 0, 1176255488, 0, 0, 0, 0, v19); v12 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_menuBtn_001.png"); ((void (__fastcall *)(struct cocos2d::CCSprite *))v12->setScale_0)(v12); v13 = CCMenuItemSpriteExtra::create( v12, nullptr, a1, (cocos2d::SEL_MenuHandler *)SetupEventLinkPopup::onSelectEvent); v14 = ((float (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))a1->m_buttonMenu->addChild_1)( a1->m_buttonMenu, v13); cocos2d::CCPoint::CCPoint(v14, (float)(a1->m_width * 0.5) - 22.0); cocos2d::CCPoint::operator+(&v30, &v21); v15 = v13->cocos2d::CCMenuItemSprite::cocos2d::CCMenuItem::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v16 = cocos2d::CCNode::convertToNodeSpace(a1->m_buttonMenu, (const struct cocos2d::CCPoint *)&v22); ((void (__fastcall *)(CCMenuItemSpriteExtra *, struct cocos2d::CCPoint))v15->setPosition_0)(v13, v16); a1->updateDefaultTriggerValues(a1); a1->m_disableTextDelegate = 0; return 1; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source