// // SetupCameraRotatePopup2::init from 0xaecdb8 to 0xaed274 (1212 bytes) // // 2 xrefs: // > SetupCameraRotatePopup2::create @ 0xaed4b0 // > @ 0xd0d20 // // 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:01:10 +0000 // __int64 __fastcall SetupCameraRotatePopup2::init( SetupCameraRotatePopup2 *this, EffectGameObject *a2, cocos2d::CCArray *a3) { unsigned __int8 v4; // w0 unsigned int v5; // w24 cocos2d::CCDirector *MultiTriggerItemsDefault; // x0 cocos2d::CCDirector *v8; // x0 int v9; // [xsp+20h] [xbp-10h] __int64 v10; // [xsp+98h] [xbp+68h] BYREF _BYTE v11[8]; // [xsp+A0h] [xbp+70h] BYREF _BYTE v12[8]; // [xsp+A8h] [xbp+78h] BYREF __int64 v13; // [xsp+B0h] [xbp+80h] BYREF __int64 v14[2]; // [xsp+B8h] [xbp+88h] BYREF void *v15; // [xsp+C8h] [xbp+98h] __int64 v16; // [xsp+D0h] [xbp+A0h] BYREF __int64 v17; // [xsp+D8h] [xbp+A8h] void *v18; // [xsp+E0h] [xbp+B0h] v4 = SetupTriggerPopup::init(this, a2, a3, 400.0, 260.0, 1, 0.0); v5 = v4; if ( v4 ) { SetupTriggerPopup::preSetup(this); v16 = 0; v17 = 0; v18 = nullptr; std::string::__init(&v16, "Setup Camera Rotation", 0x15u); SetupTriggerPopup::addTitle(this, &v16); if ( (v16 & 1) != 0 ) operator delete(v18); v16 = 0; v17 = 0; v18 = nullptr; std::string::__init(&v16, "OK", 2u); SetupTriggerPopup::addCloseButton(this, &v16); if ( (v16 & 1) != 0 ) operator delete(v18); v14[0] = 0; v14[1] = 0; v15 = nullptr; std::string::__init(v14, "Help", 4u); v16 = 0; v17 = 0; v18 = nullptr; std::string::__init( &v16, "Rotates the camera to the target value.\n" "Move Time is how fast the rotate happens.\n" "Easing changes the method used.\n" "Add the rotation to the current camera rotation.\n" "Snap360 converts rotation to closest 360.", 0xF4u); SetupTriggerPopup::addHelpButton(this, v14, &v16, 1.0); if ( (v16 & 1) != 0 ) operator delete(v18); if ( (v14[0] & 1) != 0 ) operator delete(v15); MultiTriggerItemsDefault = (cocos2d::CCDirector *)SetupTriggerPopup::createMultiTriggerItemsDefault(this); v8 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(MultiTriggerItemsDefault); cocos2d::CCDirector::getWinSize(&v10, v8); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v11, *(float *)&v10 * 0.5, *((float *)&v10 + 1) * 0.5); v16 = 0; v17 = 0; v18 = nullptr; std::string::__init(&v16, "Degrees:", 8u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v12, -100.0, 60.0); cocos2d::CCPoint::operator+(&v13, v11); SetupTriggerPopup::createValueControlAdvanced(this, 68, &v16, &v13, 0, 1, 10, 0, 0.8, -360.0, 360.0, 0, 0, 0, 2, 0); if ( (v16 & 1) != 0 ) operator delete(v18); v16 = 0; v17 = 0; v18 = nullptr; std::string::__init(&v16, "Add", 3u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v12, 60.0, 70.0); cocos2d::CCPoint::operator+(&v13, v11); SetupTriggerPopup::createToggleValueControl(this, 70, &v16, &v13, 0, 0, 0, 1.0); if ( (v16 & 1) != 0 ) operator delete(v18); v16 = 0; v17 = 0; v18 = nullptr; std::string::__init(&v16, "Snap360", 7u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v12, 60.0, 30.0); cocos2d::CCPoint::operator+(&v13, v11); SetupTriggerPopup::createToggleValueControl(this, 394, &v16, &v13, 0, 0, 0, 1.0); if ( (v16 & 1) != 0 ) operator delete(v18); v16 = 0; v17 = 0; v18 = nullptr; std::string::__init(&v16, "Move Time:", 0xAu); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v12, -100.0, -10.0); cocos2d::CCPoint::operator+(&v13, v11); LOBYTE(v9) = 0; SetupTriggerPopup::createValueControlAdvanced(this, 10, &v16, &v13, 0, 1, 10, 0, 0.8, 0.0, 10.0, 0, 0, 0, 2, v9); if ( (v16 & 1) != 0 ) operator delete(v18); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v12, 95.0, -10.0); cocos2d::CCPoint::operator+(&v13, v11); SetupTriggerPopup::createEasingControls(this, &v13, 0, 0, 0.8); SetupTriggerPopup::postSetup(this); } return v5; }
GD Web Decomp Icon

GD Web Decomp

Raw Source