// // CustomizeObjectSettingsPopup::init from 0x984240 to 0x98462c (1004 bytes) // // 2 xrefs: // > CustomizeObjectSettingsPopup::create @ 0x984864 // > @ 0xcd558 // // This function is hookable on this platform (idp: arm, 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:57:52 +0000 // __int64 __fastcall CustomizeObjectSettingsPopup::init( CustomizeObjectSettingsPopup *this, GameObject *a2, cocos2d::CCArray *a3, CustomizeObjectLayer *a4) { unsigned __int8 v6; // w0 unsigned int v7; // w22 cocos2d::CCDirector *v9; // x0 cocos2d::CCDirector *v10; // x0 float v11; // s0 int v12; // w26 _BOOL4 v13; // w27 __int64 v14; // [xsp+78h] [xbp+68h] BYREF _BYTE v15[8]; // [xsp+80h] [xbp+70h] BYREF _BYTE v16[8]; // [xsp+88h] [xbp+78h] BYREF __int64 v17; // [xsp+90h] [xbp+80h] BYREF cocos2d::CCDirector *v18[2]; // [xsp+98h] [xbp+88h] BYREF void *v19; // [xsp+A8h] [xbp+98h] __int64 v20; // [xsp+B0h] [xbp+A0h] BYREF __int64 v21; // [xsp+B8h] [xbp+A8h] void *v22; // [xsp+C0h] [xbp+B0h] v6 = SetupTriggerPopup::init(this, a2, a3, 320.0, 200.0, 1, 0.0); v7 = v6; if ( v6 ) { *((_QWORD *)this + 127) = a4; SetupTriggerPopup::preSetup(this); v20 = 0; v21 = 0; v22 = nullptr; std::string::__init(&v20, "Settings", 8u); SetupTriggerPopup::addTitle(this, &v20); if ( (v20 & 1) != 0 ) operator delete(v22); v20 = 0; v21 = 0; v22 = nullptr; std::string::__init(&v20, "OK", 2u); SetupTriggerPopup::addCloseButton(this, &v20); if ( (v20 & 1) != 0 ) operator delete(v22); v18[0] = nullptr; v18[1] = nullptr; v19 = nullptr; std::string::__init((__int64 *)v18, "Help", 4u); v20 = 0; v21 = 0; v22 = nullptr; std::string::__init(&v20, "Change if a single color object is treated as base or detail color.", 0x43u); SetupTriggerPopup::addHelpButton(this, v18, &v20, 1.0); if ( (v20 & 1) != 0 ) operator delete(v22); v9 = (cocos2d::CCDirector *)LOBYTE(v18[0]); if ( ((__int64)v18[0] & 1) != 0 ) operator delete(v19); v10 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v9); cocos2d::CCDirector::getWinSize(&v14, v10); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v15, *(float *)&v14 * 0.5, (float)(*((float *)&v14 + 1) * 0.5) + 10.0); v11 = (*(float (__fastcall **)(CustomizeObjectSettingsPopup *, __int64))(*(_QWORD *)this + 1464LL))(this, 497); v20 = 0; v12 = (int)v11; v21 = 0; v22 = nullptr; v13 = (int)v11 == 0; std::string::__init(&v20, "Default", 7u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v16, -100.0, 0.0); cocos2d::CCPoint::operator+(&v17, v15); SetupTriggerPopup::createCustomToggleValueControl((int)this, 0, v13, 1, (int)&v20, (int)&v17, 1, 0, 0); if ( (v20 & 1) != 0 ) operator delete(v22); v20 = 0; v21 = 0; v22 = nullptr; std::string::__init(&v20, "Base", 4u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v16, 0.0, 0.0); cocos2d::CCPoint::operator+(&v17, v15); SetupTriggerPopup::createCustomToggleValueControl((int)this, 1, v12 == 1, 1, (int)&v20, (int)&v17, 1, 0, 0); if ( (v20 & 1) != 0 ) operator delete(v22); v20 = 0; v21 = 0; v22 = nullptr; std::string::__init(&v20, "Detail", 6u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v16, 100.0, 0.0); cocos2d::CCPoint::operator+(&v17, v15); SetupTriggerPopup::createCustomToggleValueControl((int)this, 2, v12 == 2, 1, (int)&v20, (int)&v17, 1, 0, 0); if ( (v20 & 1) != 0 ) operator delete(v22); SetupTriggerPopup::postSetup(this); } return v7; }
GD Web Decomp Icon

GD Web Decomp

Raw Source