// // CustomizeObjectSettingsPopup::init from 0x8441f0 to 0x8447dc (1516 bytes) // // 2 xrefs: // > CustomizeObjectSettingsPopup::create @ 0x84498c // > @ 0x9bdf0 // // 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 CustomizeObjectSettingsPopup::init( CustomizeObjectSettingsPopup *a1, GameObject *a2, cocos2d::CCArray *a3, CustomizeObjectLayer *a4) { bool v6; // w25 void *v8; // x0 void *v9; // x0 void *v10; // x0 void *v11; // x0 cocos2d::CCDirector *v12; // x0 _BOOL4 v13; // w28 void *v14; // x0 _BOOL4 v15; // w28 void *v16; // x0 _BOOL4 v17; // w27 void *v18; // x0 unsigned int *v19; // x1 int v20; // w2 unsigned int *v21; // x1 int v22; // w2 unsigned int *v23; // x1 int v24; // w2 unsigned int *v25; // x1 int v26; // w2 unsigned int *v27; // x1 int v28; // w2 unsigned int *v29; // x1 int v30; // w2 unsigned int *v31; // x20 int v32; // w1 _QWORD v33[2]; // [xsp+10h] [xbp+0h] BYREF int v34; // [xsp+7Ch] [xbp+6Ch] float v35; // [xsp+90h] [xbp+80h] float v36; // [xsp+94h] [xbp+84h] cocos2d::CCPoint v37; // [xsp+98h] [xbp+88h] BYREF cocos2d::CCPoint v38; // [xsp+A0h] [xbp+90h] BYREF __int64 v39; // [xsp+A8h] [xbp+98h] BYREF __int64 v40; // [xsp+B0h] [xbp+A0h] BYREF v6 = SetupTriggerPopup::init(a1, (EffectGameObject *)a2, a3, 320.0, 200.0, 1); if ( v6 ) { a1->m_customizeLayer = a4; SetupTriggerPopup::preSetup(a1); sub_D153B8((unsigned int)v33 + 160, "Settings"); SetupTriggerPopup::addTitle(a1, (std::string)&v40); v8 = (void *)(v40 - 24); if ( (__int64 *)(v40 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v19 = (unsigned int *)(v40 - 8); do v20 = __ldaxr(v19); while ( __stlxr(v20 - 1, v19) ); } else { v20 = *(_DWORD *)(v40 - 8); *(_DWORD *)(v40 - 8) = v20 - 1; } if ( v20 <= 0 ) operator delete(v8); } sub_D153B8((unsigned int)v33 + 160, "OK"); SetupTriggerPopup::addCloseButton(a1, (std::string)&v40); v9 = (void *)(v40 - 24); if ( (__int64 *)(v40 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v21 = (unsigned int *)(v40 - 8); do v22 = __ldaxr(v21); while ( __stlxr(v22 - 1, v21) ); } else { v22 = *(_DWORD *)(v40 - 8); *(_DWORD *)(v40 - 8) = v22 - 1; } if ( v22 <= 0 ) operator delete(v9); } sub_D153B8((int)&v39, "Help"); sub_D153B8((int)&v40, "Change if a single color object is treated as base or detail color."); SetupTriggerPopup::addHelpButton(a1, (std::string)&v39, (std::string)&v40, 1.0); v10 = (void *)(v40 - 24); if ( (__int64 *)(v40 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v25 = (unsigned int *)(v40 - 8); do v26 = __ldaxr(v25); while ( __stlxr(v26 - 1, v25) ); } else { v26 = *(_DWORD *)(v40 - 8); *(_DWORD *)(v40 - 8) = v26 - 1; } if ( v26 <= 0 ) operator delete(v10); } v11 = (void *)(v39 - 24); if ( (__int64 *)(v39 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v23 = (unsigned int *)(v39 - 8); do v24 = __ldaxr(v23); while ( __stlxr(v24 - 1, v23) ); } else { v24 = *(_DWORD *)(v39 - 8); *(_DWORD *)(v39 - 8) = v24 - 1; } if ( v24 <= 0 ) operator delete(v11); } v12 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(v12); cocos2d::CCPoint::CCPoint(&v37, v35 * 0.5, (float)(v36 * 0.5) + 10.0); v34 = (int)a1->getValue(a1, 497); v13 = v34 == 0; sub_D153B8((int)&v40, "Default"); cocos2d::CCPoint::CCPoint(&v38, -100.0, 0.0); cocos2d::CCPoint::operator+(&v39, &v37, &v38); SetupTriggerPopup::createCustomToggleValueControl((int)a1, 0, v13, 1, (int)&v40, (int)&v39, 1, 0, 0); v14 = (void *)(v40 - 24); if ( (__int64 *)(v40 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v29 = (unsigned int *)(v40 - 8); do v30 = __ldaxr(v29); while ( __stlxr(v30 - 1, v29) ); } else { v30 = *(_DWORD *)(v40 - 8); *(_DWORD *)(v40 - 8) = v30 - 1; } if ( v30 <= 0 ) operator delete(v14); } v15 = v34 == 1; sub_D153B8((int)&v40, "Base"); cocos2d::CCPoint::CCPoint(&v38, 0.0, 0.0); cocos2d::CCPoint::operator+(&v39, &v37, &v38); SetupTriggerPopup::createCustomToggleValueControl((int)a1, 1, v15, 1, (int)&v40, (int)&v39, 1, 0, 0); v16 = (void *)(v40 - 24); if ( (__int64 *)(v40 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v27 = (unsigned int *)(v40 - 8); do v28 = __ldaxr(v27); while ( __stlxr(v28 - 1, v27) ); } else { v28 = *(_DWORD *)(v40 - 8); *(_DWORD *)(v40 - 8) = v28 - 1; } if ( v28 <= 0 ) operator delete(v16); } v17 = v34 == 2; sub_D153B8((int)&v40, "Detail"); cocos2d::CCPoint::CCPoint(&v38, 100.0, 0.0); cocos2d::CCPoint::operator+(&v39, &v37, &v38); SetupTriggerPopup::createCustomToggleValueControl((int)a1, 2, v17, 1, (int)&v40, (int)&v39, 1, 0, 0); v18 = (void *)(v40 - 24); if ( (__int64 *)(v40 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v31 = (unsigned int *)(v40 - 8); do v32 = __ldaxr(v31); while ( __stlxr(v32 - 1, v31) ); } else { v32 = *(_DWORD *)(v40 - 8); *(_DWORD *)(v40 - 8) = v32 - 1; } if ( v32 <= 0 ) operator delete(v18); } SetupTriggerPopup::postSetup(a1); } return v6; }