// // CustomizeObjectSettingsPopup::init from 0x140144290 to 0x140144649 (953 bytes) // // 2 xrefs: // > CustomizeObjectLayer::onSettings @ 0x140142365 // > @ 0x1409174d4 // // 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:27:11 +0000 // // Hidden C++ exception states: #wind=3 char __fastcall CustomizeObjectSettingsPopup::init(__int64 a1, int a2, int a3, __int64 a4) { char result; // al __int64 v7; // rcx __int64 v8; // rax int v9; // ebx __int64 v10; // rax int v11; // r8d int v12; // r9d __int64 v13; // rax int v14; // r8d int v15; // r9d __int64 v16; // rax int v17; // r8d int v18; // r9d __int128 *v19; // [rsp+58h] [rbp-29h] BYREF __int128 v20; // [rsp+60h] [rbp-21h] BYREF __int64 v21; // [rsp+70h] [rbp-11h] __int64 v22; // [rsp+78h] [rbp-9h] _BYTE v23[8]; // [rsp+80h] [rbp-1h] BYREF __int128 v24; // [rsp+88h] [rbp+7h] BYREF __int64 v25; // [rsp+98h] [rbp+17h] __int64 v26; // [rsp+A0h] [rbp+1Fh] float v27[2]; // [rsp+A8h] [rbp+27h] BYREF __int128 *v28; // [rsp+B0h] [rbp+2Fh] BYREF __int128 *v29; // [rsp+B8h] [rbp+37h] BYREF result = SetupTriggerPopup::init(a1, a2, a3, a4, 1128792064, 1, 0); if ( result ) { *(_QWORD *)(a1 + 1000) = a4; *(_BYTE *)(a1 + 744) = 1; (*(void (__fastcall **)(__int64))(*(_QWORD *)a1 + 1096LL))(a1); v21 = 8; v22 = 15; v20 = 0x73676E6974746553uLL; SetupTriggerPopup::addTitle(a1, &v20); v20 = 0; v21 = 2; v22 = 15; strcpy((char *)&v20, "OK"); SetupTriggerPopup::addCloseButton(a1, &v20); v19 = &v20; v20 = 0; v21 = 0; v22 = 0; *(_QWORD *)&v20 = sub_14003D460(0x50u); v21 = 67; v22 = 79; strcpy((char *)v20, "Change if a single color object is treated as base or detail color."); v24 = 0; v25 = 4; v26 = 15; strcpy((char *)&v24, "Help"); SetupTriggerPopup::addHelpButton(a1, &v24, &v20); v8 = cocos2d::CCDirector::sharedDirector(v7); cocos2d::CCDirector::getWinSize(v8, v27); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v23, v27[0] * 0.5, (float)(v27[1] * 0.5) + 10.0); v9 = (int)(*(float (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1168LL))(a1, 497); v28 = &v20; HIWORD(v20) = 0; v21 = 7; v22 = 15; qmemcpy(&v20, "Defaul", 6); *(_QWORD *)((char *)&v20 + 6) = (unsigned __int8)aDefault[6]; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v29, -100.0, 0.0); cocos2d::CCPoint::operator+(v23, &v19, v10); LOBYTE(v11) = v9 == 0; SetupTriggerPopup::createCustomToggleValueControl(a1, 0, v11, v12, (__int64)&v20, (__int64)&v19, 1, 0, 0); v29 = &v24; v24 = 0; v25 = 4; v26 = 15; strcpy((char *)&v24, "Base"); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v28, 0.0, 0.0); cocos2d::CCPoint::operator+(v23, &v19, v13); LOBYTE(v14) = v9 == 1; SetupTriggerPopup::createCustomToggleValueControl(a1, 1, v14, v15, (__int64)&v24, (__int64)&v19, 1, 0, 0); v29 = &v20; v20 = 0; v21 = 6; v22 = 15; strcpy((char *)&v20, "Detail"); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v28, 100.0, 0.0); cocos2d::CCPoint::operator+(v23, &v19, v16); LOBYTE(v17) = v9 == 2; SetupTriggerPopup::createCustomToggleValueControl(a1, 2, v17, v18, (__int64)&v20, (__int64)&v19, 1, 0, 0); (*(void (__fastcall **)(__int64))(*(_QWORD *)a1 + 1136LL))(a1); *(_BYTE *)(a1 + 744) = 0; return 1; } return result; }