// // UIObjectSettingsPopup::init from 0xb74ee8 to 0xb758e8 (2560 bytes) // // 2 xrefs: // > UIObjectSettingsPopup::create @ 0xb75b28 // > @ 0xc8620 // // 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 13:02:22 +0000 // __int64 __fastcall UIObjectSettingsPopup::init( UIObjectSettingsPopup *this, UISettingsGameObject *a2, cocos2d::CCArray *a3) { unsigned __int8 v4; // w0 unsigned int v5; // w25 __int64 v7; // x2 __int64 v8; // x3 __int64 v9; // x4 __int64 v10; // x5 const char *v11; // x6 cocos2d::CCDirector *v12; // x0 cocos2d::CCDirector *v13; // x0 unsigned int v14; // w27 float v15; // s0 int v16; // w26 long double v17; // q0 long double v18; // q0 int v19; // [xsp+8h] [xbp-8h] __int64 v20; // [xsp+A0h] [xbp+90h] BYREF _BYTE v21[8]; // [xsp+A8h] [xbp+98h] BYREF _BYTE v22[4]; // [xsp+B0h] [xbp+A0h] BYREF float v23; // [xsp+B4h] [xbp+A4h] _BYTE v24[8]; // [xsp+B8h] [xbp+A8h] BYREF __int64 v25; // [xsp+C0h] [xbp+B0h] BYREF cocos2d::CCDirector *v26[2]; // [xsp+C8h] [xbp+B8h] BYREF void *v27; // [xsp+D8h] [xbp+C8h] __int64 v28; // [xsp+E0h] [xbp+D0h] BYREF __int64 v29; // [xsp+E8h] [xbp+D8h] void *v30; // [xsp+F0h] [xbp+E0h] v4 = SetupTriggerPopup::init(this, a2, a3, 380.0, 280.0, 1u, 0.0); v5 = v4; if ( v4 ) { SetupTriggerPopup::preSetup(this); v28 = 0; v29 = 0; v30 = nullptr; std::string::__init(&v28, "UI Object Settings", 0x12u); SetupTriggerPopup::addTitle((__int64)this, (__int64)&v28); if ( (v28 & 1) != 0 ) operator delete(v30); v28 = 0; v29 = 0; v30 = nullptr; std::string::__init(&v28, "OK", 2u); SetupTriggerPopup::addCloseButton((__int64)this, (__int64)&v28, v7, v8, v9, v10, v11); if ( (v28 & 1) != 0 ) operator delete(v30); v26[0] = nullptr; v26[1] = nullptr; v27 = nullptr; std::string::__init((__int64 *)v26, "Help", 4u); v28 = 0; v29 = 0; v30 = nullptr; std::string::__init( &v28, "Group ID specify the objects to use for the UI. This is permanent from the start and cannot be edited.\n" "UI Target is a single object used as a reference for the camera center. Camera Guide is a recommended tool" ".\n" "XRef and YRef are reference points for aligning the object.\n" "Relative makes UI positions scale with aspect ratio.", 0x163u); SetupTriggerPopup::addHelpButton((__int64)this, (char *)v26, (char *)&v28, 1.0); if ( (v28 & 1) != 0 ) operator delete(v30); v12 = (cocos2d::CCDirector *)LOBYTE(v26[0]); if ( ((__int64)v26[0] & 1) != 0 ) operator delete(v27); v13 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v12); cocos2d::CCDirector::getWinSize(&v20, v13); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v21, *(float *)&v20 * 0.5, *((float *)&v20 + 1) * 0.5); v28 = 0; v29 = 0; v30 = nullptr; std::string::__init(&v28, "Group ID:", 9u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v24, -80.0, 60.0); cocos2d::CCPoint::operator+(&v25, v21); IDNameInput::create(this, (char *)this + 544, 1, 51, &v28, &v25, 6, 0, 0.8, 0, 0); if ( (v28 & 1) != 0 ) operator delete(v30); v28 = 0; v29 = 0; v30 = nullptr; std::string::__init(&v28, "UI Target:", 0xAu); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v24, 80.0, 60.0); cocos2d::CCPoint::operator+(&v25, v21); LOBYTE(v19) = 0; IDNameInput::create(this, (char *)this + 544, 1, 71, &v28, &v25, 6, 0, 0.8, 0, v19); if ( (v28 & 1) != 0 ) operator delete(v30); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v22, (float)(*(float *)&v20 * 0.5) + -25.0, (float)(*((float *)&v20 + 1) * 0.5) + -10.0); v14 = (int)(*(float (__fastcall **)(UIObjectSettingsPopup *, __int64))(*(_QWORD *)this + 1464LL))(this, 385); v15 = (*(float (__fastcall **)(UIObjectSettingsPopup *, __int64))(*(_QWORD *)this + 1464LL))(this, 386); v28 = 0; v16 = (int)v15; v29 = 0; v30 = nullptr; std::string::__init(&v28, "XRef:", 5u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v24, -125.0, 0.0); cocos2d::CCPoint::operator+(&v25, v22); LODWORD(v17) = 0.5; SetupTriggerPopup::addInfoLabel((__int64)this, (unsigned __int8 *)&v28, (__int64)&v25, 0, 0, v17); if ( (v28 & 1) != 0 ) operator delete(v30); v28 = 0; v29 = 0; v30 = nullptr; std::string::__init(&v28, "Auto", 4u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v24, -75.0, 0.0); cocos2d::CCPoint::operator+(&v25, v22); SetupTriggerPopup::createCustomToggleValueControl( (__int64)this, 1u, v14 <= 1, 1u, (char *)&v28, (const cocos2d::CCPoint *)&v25, 1u, 0, 0); if ( (v28 & 1) != 0 ) operator delete(v30); v28 = 0; v29 = 0; v30 = nullptr; std::string::__init(&v28, "Center", 6u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v24, -25.0, 0.0); cocos2d::CCPoint::operator+(&v25, v22); SetupTriggerPopup::createCustomToggleValueControl( (__int64)this, 2u, v14 == 2, 1u, (char *)&v28, (const cocos2d::CCPoint *)&v25, 1u, 0, 0); if ( (v28 & 1) != 0 ) operator delete(v30); v28 = 0; v29 = 0; v30 = nullptr; std::string::__init(&v28, "Left", 4u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v24, 25.0, 0.0); cocos2d::CCPoint::operator+(&v25, v22); SetupTriggerPopup::createCustomToggleValueControl( (__int64)this, 3u, v14 == 3, 1u, (char *)&v28, (const cocos2d::CCPoint *)&v25, 1u, 0, 0); if ( (v28 & 1) != 0 ) operator delete(v30); v28 = 0; v29 = 0; v30 = nullptr; std::string::__init(&v28, "Right", 5u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v24, 75.0, 0.0); cocos2d::CCPoint::operator+(&v25, v22); SetupTriggerPopup::createCustomToggleValueControl( (__int64)this, 4u, v14 == 4, 1u, (char *)&v28, (const cocos2d::CCPoint *)&v25, 1u, 0, 0); if ( (v28 & 1) != 0 ) operator delete(v30); v28 = 0; v29 = 0; v30 = nullptr; std::string::__init(&v28, "Relative", 8u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v24, 150.0, 0.0); cocos2d::CCPoint::operator+(&v25, v22); SetupTriggerPopup::createToggleValueControl( (__int64)this, 0x183u, &v28, (const cocos2d::CCPoint *)&v25, 1, 0, 0, 1.0); if ( (v28 & 1) != 0 ) operator delete(v30); v28 = 0; v29 = 0; v30 = nullptr; v23 = v23 - 60.0; std::string::__init(&v28, "YRef:", 5u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v24, -125.0, 0.0); cocos2d::CCPoint::operator+(&v25, v22); LODWORD(v18) = 0.5; SetupTriggerPopup::addInfoLabel((__int64)this, (unsigned __int8 *)&v28, (__int64)&v25, 0, 0, v18); if ( (v28 & 1) != 0 ) operator delete(v30); v28 = 0; v29 = 0; v30 = nullptr; std::string::__init(&v28, "Auto", 4u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v24, -75.0, 0.0); cocos2d::CCPoint::operator+(&v25, v22); SetupTriggerPopup::createCustomToggleValueControl( (__int64)this, 5u, v16 == 0 || v16 == 5, 1u, (char *)&v28, (const cocos2d::CCPoint *)&v25, 1u, 0, 0); if ( (v28 & 1) != 0 ) operator delete(v30); v28 = 0; v29 = 0; v30 = nullptr; std::string::__init(&v28, "Center", 6u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v24, -25.0, 0.0); cocos2d::CCPoint::operator+(&v25, v22); SetupTriggerPopup::createCustomToggleValueControl( (__int64)this, 6u, v16 == 6, 1u, (char *)&v28, (const cocos2d::CCPoint *)&v25, 1u, 0, 0); if ( (v28 & 1) != 0 ) operator delete(v30); v28 = 0; v29 = 0; v30 = nullptr; std::string::__init(&v28, "Bottom", 6u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v24, 25.0, 0.0); cocos2d::CCPoint::operator+(&v25, v22); SetupTriggerPopup::createCustomToggleValueControl( (__int64)this, 7u, v16 == 7, 1u, (char *)&v28, (const cocos2d::CCPoint *)&v25, 1u, 0, 0); if ( (v28 & 1) != 0 ) operator delete(v30); v28 = 0; v29 = 0; v30 = nullptr; std::string::__init(&v28, "Top", 3u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v24, 75.0, 0.0); cocos2d::CCPoint::operator+(&v25, v22); SetupTriggerPopup::createCustomToggleValueControl( (__int64)this, 8u, v16 == 8, 1u, (char *)&v28, (const cocos2d::CCPoint *)&v25, 1u, 0, 0); if ( (v28 & 1) != 0 ) operator delete(v30); v28 = 0; v29 = 0; v30 = nullptr; std::string::__init(&v28, "Relative", 8u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v24, 150.0, 0.0); cocos2d::CCPoint::operator+(&v25, v22); SetupTriggerPopup::createToggleValueControl( (__int64)this, 0x184u, &v28, (const cocos2d::CCPoint *)&v25, 1, 0, 0, 1.0); if ( (v28 & 1) != 0 ) operator delete(v30); SetupTriggerPopup::postSetup(this); } return v5; }
GD Web Decomp Icon

GD Web Decomp

Raw Source