// // SetupObjectOptions2Popup::init from 0x10031b240 to 0x10031b6b1 (1137 bytes) // // 1 xrefs: // > SetupObjectOptions2Popup::create @ 0x10031740b // // 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 // bool __fastcall SetupObjectOptions2Popup::init(SetupObjectOptions2Popup *a1, GameObject *a2, cocos2d::CCArray *a3) { bool result; // al bool v4; // r12 std::string v5; // [rsp+40h] [rbp-100h] BYREF char v6; // [rsp+58h] [rbp-E8h] BYREF _BYTE v7[23]; // [rsp+59h] [rbp-E7h] BYREF char v8; // [rsp+70h] [rbp-D0h] BYREF char v9[15]; // [rsp+71h] [rbp-CFh] BYREF void *v10; // [rsp+80h] [rbp-C0h] char v11; // [rsp+88h] [rbp-B8h] BYREF char v12[15]; // [rsp+89h] [rbp-B7h] BYREF void *v13; // [rsp+98h] [rbp-A8h] __int128 v14; // [rsp+A0h] [rbp-A0h] BYREF void *v15; // [rsp+B0h] [rbp-90h] char v16; // [rsp+B8h] [rbp-88h] BYREF _BYTE v17[23]; // [rsp+B9h] [rbp-87h] BYREF float v18[2]; // [rsp+D0h] [rbp-70h] BYREF char v19; // [rsp+D8h] [rbp-68h] BYREF _BYTE v20[23]; // [rsp+D9h] [rbp-67h] BYREF char v21; // [rsp+F0h] [rbp-50h] BYREF _BYTE v22[23]; // [rsp+F1h] [rbp-4Fh] BYREF unsigned __int64 v23; // [rsp+108h] [rbp-38h] BYREF double v24; // [rsp+110h] [rbp-30h] BYREF unsigned __int64 v25[5]; // [rsp+118h] [rbp-28h] BYREF result = SetupTriggerPopup::init(a1, (EffectGameObject *)a2, a3, 320.0, 200.0, 1); if ( result ) { v4 = result; SetupTriggerPopup::preSetup(a1); a1->m_disableTextDelegate = 1; v6 = 16; strcpy(v7, "Config 2"); SetupTriggerPopup::addTitle((__int64)a1, (__int64)&v6); if ( (v6 & 1) != 0 ) operator delete(*(void **)&v7[15]); v8 = 4; strcpy(v9, "OK"); SetupTriggerPopup::addCloseButton((__int64)a1, (__int64)&v8); if ( (v8 & 1) != 0 ) operator delete(v10); v11 = 8; strcpy(v12, "Help"); v15 = operator new(0xC8u); *(_QWORD *)&v14 = 201; *((_QWORD *)&v14 + 1) = 197; strcpy( (char *)v15, "Enter Channel is used to set a specific enter effect.\n" "Material is used to link with specific events.\n" "ControlID allows you to reference specific objects when using remapping."); SetupTriggerPopup::addHelpButton((__int64)a1, (__int64)&v11, &v14, (__m128)0x3F800000u); if ( (v14 & 1) != 0 ) operator delete(v15); if ( (v11 & 1) != 0 ) operator delete(v13); cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v18); sub_10028CBE0((float *)&v23, v18[0] * 0.5, (float)(0.5 * v18[1]) + 30.0); v19 = 28; strcpy(v20, "Enter Channel:"); sub_10028CBE0((float *)v25, -80.0, 0.0); sub_10028CCE0(&v24, &v23, v25); SetupTriggerPopup::createValueControlAdvanced( (__int64)a1, 343, (__int64)&v19, (float *)&v24, 1, Uint, 0.69999999, 0.0, 0.0, 6, 1, 0, 0, 0, 2, 0); if ( (v19 & 1) != 0 ) operator delete(*(void **)&v20[15]); sub_10028CBE0((float *)v25, -5.0, 0.0); sub_10028CCE0(&v24, &v23, v25); *(_WORD *)&v5.__r_.__value_.__l.0 = 0; SetupTriggerPopup::createPlusButton((__int64)a1, 343, (__int64)&v24, &v5, 0, 0, 0.80000001); if ( (*(_BYTE *)&v5.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v5.__r_.__value_.__l.__data_); v16 = 18; strcpy(v17, "Material:"); sub_10028CBE0((float *)v25, 80.0, 0.0); sub_10028CCE0(&v24, &v23, v25); SetupTriggerPopup::createValueControlAdvanced( (__int64)a1, 446, (__int64)&v16, (float *)&v24, 1, Uint, 0.69999999, 0.0, 0.0, 6, 1, 0, 0, 0, 2, 0); if ( (v16 & 1) != 0 ) operator delete(*(void **)&v17[15]); if ( a1->m_effectObjects ) { v21 = 20; strcpy(v22, "ControlID:"); sub_10028CBE0((float *)v25, 80.0, -55.0); sub_10028CCE0(&v24, &v23, v25); SetupTriggerPopup::createValueControlAdvanced( (__int64)a1, 534, (__int64)&v21, (float *)&v24, 1, Uint, 0.69999999, 0.0, 0.0, 6, 1, 0, 0, 0, 2, 0); if ( (v21 & 1) != 0 ) operator delete(*(void **)&v22[15]); } SetupTriggerPopup::postSetup(a1); return v4; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source