// // SetupEventLinkPopup::init from 0x1005a49e0 to 0x1005a4e97 (1207 bytes) // // 1 xrefs: // > sub_1005A48D0 @ 0x1005a4994 // // 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 12:32:34 +0000 // __int64 __fastcall SetupEventLinkPopup::init(__int64 a1, __int64 a2, __int64 a3) { __int64 result; // rax __int64 v4; // rax char *v5; // r14 void *v6; // r14 __int64 v7; // r15 char v8; // [rsp+38h] [rbp-F8h] BYREF char v9[15]; // [rsp+39h] [rbp-F7h] BYREF void *v10; // [rsp+48h] [rbp-E8h] __int128 v11; // [rsp+50h] [rbp-E0h] BYREF void *v12; // [rsp+60h] [rbp-D0h] __int128 v13; // [rsp+68h] [rbp-C8h] BYREF void *v14; // [rsp+78h] [rbp-B8h] std::string v15; // [rsp+80h] [rbp-B0h] BYREF __int64 v16; // [rsp+98h] [rbp-98h] BYREF unsigned __int64 v17; // [rsp+A0h] [rbp-90h] BYREF char v18; // [rsp+A8h] [rbp-88h] BYREF _BYTE v19[23]; // [rsp+A9h] [rbp-87h] BYREF std::string v20; // [rsp+C0h] [rbp-70h] BYREF double v21[3]; // [rsp+D8h] [rbp-58h] BYREF unsigned __int64 v22; // [rsp+F4h] [rbp-3Ch] BYREF unsigned __int64 v23; // [rsp+FCh] [rbp-34h] BYREF unsigned __int8 v24; // [rsp+107h] [rbp-29h] result = SetupTriggerPopup::init(a1, a2, a3, 1, 380.0, 280.0, 0.0); if ( (_BYTE)result ) { v24 = result; SetupTriggerPopup::preSetup((_BYTE *)a1); v18 = 20; strcpy(v19, "Event Link"); SetupTriggerPopup::addTitle(a1, (__int64)&v18); if ( (v18 & 1) != 0 ) operator delete(*(void **)&v19[15]); v8 = 4; strcpy(v9, "OK"); SetupTriggerPopup::addCloseButton(a1, (__int64)&v8); if ( (v8 & 1) != 0 ) operator delete(v10); LOBYTE(v11) = 8; strcpy((char *)&v11 + 1, "Help"); v14 = operator new(0x120u); *(_QWORD *)&v13 = 289; *((_QWORD *)&v13 + 1) = 283; strcpy( (char *)v14, "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 if M" "aterial ID matches.\n" "Extra ID2: 0 = All, 1 = P1, 2 = P2"); SetupTriggerPopup::addHelpButton(a1, &v11, &v13, 1.0); if ( (v13 & 1) != 0 ) operator delete(v14); if ( (v11 & 1) != 0 ) operator delete(v12); SetupTriggerPopup::createMultiTriggerItemsDefault((float *)a1, (__int64)&v11); v4 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(&v16, v4); sub_100278250((float *)&v22, *(float *)&v16 * 0.5, *((float *)&v16 + 1) * 0.5); LOBYTE(v21[0]) = 18; strcpy((char *)v21 + 1, "Group ID:"); sub_100278250((float *)&v17, -80.0, 40.0); sub_100278350((double *)&v23, &v22, &v17); IDNameInput::create(a1, a1 + 544, 1, 51, (unsigned int)v21, (unsigned int)&v23, 6, 0, 0, 0); if ( (LOBYTE(v21[0]) & 1) != 0 ) operator delete(*(void **)&v21[2]); v15.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)18; strcpy(v15.__r_.__value_.__s.__data_, "Extra ID:"); sub_100278250((float *)&v23, 80.0, 40.0); sub_100278350(v21, &v22, &v23); SetupTriggerPopup::createValueControlAdvanced( a1, 447, &v15, (__int64)v21, 1, 2u, 0.80000001, 0.0, 9999.0, 0xAu, 1, 0, 0, 0, 0, 0); if ( (*(_BYTE *)&v15.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v15.__r_.__value_.__l.__data_); v20.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)20; strcpy(v20.__r_.__value_.__s.__data_, "Extra ID2:"); sub_100278250((float *)&v23, 80.0, -40.0); sub_100278350(v21, &v22, &v23); SetupTriggerPopup::createValueControlAdvanced( a1, 525, &v20, (__int64)v21, 1, 2u, 0.80000001, 0.0, 9999.0, 0xAu, 1, 0, 0, 0, 0, 0); if ( (*(_BYTE *)&v20.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v20.__r_.__value_.__l.__data_); v5 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_menuBtn_001.png", COERCE_DOUBLE(1061997773)); (*(void (__fastcall **)(char *, float))(*(_QWORD *)v5 + 160LL))(v5, 0.55000001); v6 = CCMenuItemSpriteExtra::create((__int64)v5, 0, a1, (__int64)SetupEventLinkPopup::onSelectEvent, 0); (*(void (__fastcall **)(_QWORD, void *))(**(_QWORD **)(a1 + 552) + 456LL))(*(_QWORD *)(a1 + 552), v6); v7 = *(_QWORD *)(a1 + 552); sub_100278250( (float *)&v17, (float)(*(float *)(a1 + 732) * 0.5) + -22.0, (float)(0.5 * *(float *)(a1 + 736)) + -22.0); sub_100278350((double *)&v23, &v22, &v17); cocos2d::CCNode::convertToNodeSpace(v21, v7, (unsigned int *)&v23); (*(void (__fastcall **)(void *, double *))(*(_QWORD *)v6 + 184LL))(v6, v21); SetupTriggerPopup::postSetup((_BYTE *)a1); return v24; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source