// // SetupStaticCameraPopup::init from 0x634b38 to 0x6350ea (1458 bytes) // // 1 xrefs: // > SetupStaticCameraPopup::create @ 0x63530c // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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:55:19 +0000 // int __fastcall SetupStaticCameraPopup::init( SetupStaticCameraPopup *this, CameraTriggerGameObject *a2, cocos2d::CCArray *a3) { int v4; // r11 cocos2d::CCDirector *v5; // r0 float v7[2]; // [sp+3Ch] [bp-40h] BYREF _BYTE v8[8]; // [sp+44h] [bp-38h] BYREF _BYTE v9[8]; // [sp+4Ch] [bp-30h] BYREF _BYTE v10[8]; // [sp+54h] [bp-28h] BYREF int v11[3]; // [sp+5Ch] [bp-20h] BYREF int v12; // [sp+68h] [bp-14h] BYREF int v13; // [sp+6Ch] [bp-10h] int v14; // [sp+70h] [bp-Ch] v4 = SetupTriggerPopup::init(this, a2, a3, 420.0, 310.0, 1, 0.0); if ( v4 ) { v5 = (cocos2d::CCDirector *)SetupTriggerPopup::preSetup(this); cocos2d::CCDirector::sharedDirector(v5); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v7); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v8, v7[0] * 0.5, v7[1] * 0.5); v12 = 0; v13 = 0; v14 = 0; std::string::__init(&v12, "Setup Static Camera", 0x13u); SetupTriggerPopup::addTitle(this, &v12); std::string::~string((int)&v12); memset(v11, 0, sizeof(v11)); std::string::__init(v11, "Help", 4u); v12 = 0; v13 = 0; v14 = 0; std::string::__init( &v12, "Makes the camera static around a target object.\n" "Follow makes the camera change according to the object's movement.\n" "Smooth Velocity makes the transition to the target adapt to current camera velocity. Recommended no easing" ".\n" "Duration is how long the camera takes to change to the target object.\n" "Use another trigger with Exit Static to stop.", 0x17Au); SetupTriggerPopup::addHelpButton(this, v11, &v12, 1065353216); std::string::~string((int)&v12); std::string::~string((int)v11); v12 = 0; v13 = 0; v14 = 0; std::string::__init(&v12, "OK", 2u); SetupTriggerPopup::addCloseButton(this, &v12); std::string::~string((int)&v12); SetupTriggerPopup::createMultiTriggerItemsDefaultHorizontal(this); v12 = 0; v13 = 0; v14 = 0; std::string::__init(&v12, "Exit\nStatic", 0xBu); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v9, (float)(*((float *)this + 139) * 0.5) - 80.0, (float)(*((float *)this + 140) * 0.5) - 20.0); cocos2d::CCPoint::operator+(v10, v8, v9); SetupTriggerPopup::createToggleValueControl((int)this, 110, (int)&v12, (int)v10, 0, 0, 0, 1.0); std::string::~string((int)&v12); v12 = 0; v13 = 0; v14 = 0; std::string::__init(&v12, "Exit\nInstant", 0xCu); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v9, (float)(*((float *)this + 139) * 0.5) - 80.0, (float)(*((float *)this + 140) * 0.5) - 50.0); cocos2d::CCPoint::operator+(v10, v8, v9); SetupTriggerPopup::createToggleValueControl((int)this, 465, (int)&v12, (int)v10, 0, 0, 0, 1.0); std::string::~string((int)&v12); v12 = 0; v13 = 0; v14 = 0; std::string::__init(&v12, "Target Group ID:", 0x10u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v9, -100.0, 80.0); cocos2d::CCPoint::operator+(v10, v8, v9); IDNameInput::create((int)this, (int)this + 440, 1, 71, (int)&v12, (int)v10, 0.75, 6, 0, 0, 0); std::string::~string((int)&v12); (*(void (__fastcall **)(SetupStaticCameraPopup *, int))(*(_DWORD *)this + 732))(this, 101); v12 = 0; v13 = 0; v14 = 0; std::string::__init(&v12, "X\nOnly", 6u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v9, 40.0, 80.0); cocos2d::CCPoint::operator+(v10, v8, v9); SetupTriggerPopup::createCustomToggleValueControl(this); std::string::~string((int)&v12); v12 = 0; v13 = 0; v14 = 0; std::string::__init(&v12, "Y\nOnly", 6u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v9, 130.0, 80.0); cocos2d::CCPoint::operator+(v10, v8, v9); SetupTriggerPopup::createCustomToggleValueControl(this); std::string::~string((int)&v12); v12 = 0; v13 = 0; v14 = 0; std::string::__init(&v12, "Follow", 6u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v9, -130.0, 30.0); cocos2d::CCPoint::operator+(v10, v8, v9); SetupTriggerPopup::createToggleValueControl((int)this, 212, (int)&v12, (int)v10, 0, 0, 0, 1.0); std::string::~string((int)&v12); v12 = 0; v13 = 0; v14 = 0; std::string::__init(&v12, "Easing:", 7u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v9, 95.0, 30.0); cocos2d::CCPoint::operator+(v10, v8, v9); SetupTriggerPopup::createValueControlAdvanced( this, 213, &v12, v10, 1061158912, 0, 1, 10, 0, 0, 1112014848, 0, 212, 1, 1, 0); std::string::~string((int)&v12); v12 = 0; v13 = 0; v14 = 0; std::string::__init(&v12, "Smooth\nVelocity", 0xFu); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v9, -130.0, -10.0); cocos2d::CCPoint::operator+(v10, v8, v9); SetupTriggerPopup::createToggleValueControl((int)this, 453, (int)&v12, (int)v10, 0, 0, 0, 1.0); std::string::~string((int)&v12); v12 = 0; v13 = 0; v14 = 0; std::string::__init(&v12, "Modifier:", 9u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v9, 95.0, -10.0); cocos2d::CCPoint::operator+(v10, v8, v9); ((void (__fastcall *)(_DWORD, _DWORD, _DWORD, _DWORD, _DWORD, _DWORD, _DWORD, _DWORD, _DWORD, _DWORD, _DWORD, _DWORD, _DWORD, _DWORD, _DWORD, _DWORD))SetupTriggerPopup::createValueControlAdvanced)( this, 454, &v12, v10, 1061158912, 0, 1, 10, 0, 0, 1.0, 0, 453, 1, 2, 0); std::string::~string((int)&v12); v12 = 0; v13 = 0; v14 = 0; std::string::__init(&v12, "Duration:", 9u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v9, -100.0, -60.0); cocos2d::CCPoint::operator+(v10, v8, v9); SetupTriggerPopup::createValueControlAdvanced( this, 10, &v12, v10, 1061158912, 0, 1, 10, 0, 0, 1092616192, 0, 0, 0, 2, 0); std::string::~string((int)&v12); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v9, 105.0, -60.0); cocos2d::CCPoint::operator+(v10, v8, v9); SetupTriggerPopup::createEasingControls(this, v10, 1061997773, 0, 0); SetupStaticCameraPopup::updateState(this); SetupTriggerPopup::postSetup(this); } return v4; }
GD Web Decomp Icon

GD Web Decomp

Raw Source