// // SetupCameraRotatePopup2::init from 0x5275a8 to 0x527826 (638 bytes) // // 1 xrefs: // > SetupCameraRotatePopup2::create @ 0x5278f2 // // 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 SetupCameraRotatePopup2::init(SetupCameraRotatePopup2 *a1, EffectGameObject *a2, cocos2d::CCArray *a3) { _BOOL4 v4; // r10 cocos2d::CCDirector *v5; // r0 cocos2d::CCPoint v6; // r1 int v8; // [sp+4h] [bp-60h] _BYTE v9[4]; // [sp+38h] [bp-2Ch] BYREF cocos2d::CCSize v10; // [sp+3Ch] [bp-28h] BYREF cocos2d::CCPoint v11; // [sp+44h] [bp-20h] BYREF cocos2d::CCPoint v12; // [sp+4Ch] [bp-18h] BYREF _BYTE v13[8]; // [sp+54h] [bp-10h] BYREF v4 = SetupTriggerPopup::init(a1, a2, a3, 400.0, 260.0, 1); if ( v4 ) { SetupTriggerPopup::preSetup(a1); sub_776584((int)v13, "Setup Camera Rotation"); SetupTriggerPopup::addTitle(a1, (std::string)v13); sub_774008(v13); sub_776584((int)v13, "OK"); SetupTriggerPopup::addCloseButton(a1, (std::string)v13); sub_774008(v13); sub_776584((int)&v12, "Help"); sub_776584( (int)v13, "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."); SetupTriggerPopup::addHelpButton(a1, (std::string)&v12, (std::string)v13, 1.0); sub_774008(v13); sub_774008(&v12); SetupTriggerPopup::createMultiTriggerItemsDefault(a1); v5 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(&v10, v5); cocos2d::CCPoint::CCPoint(&v11, v10.width * 0.5, v10.height * 0.5); sub_776584((int)v9, "Degrees:"); cocos2d::CCPoint::CCPoint(&v12, -100.0, 60.0); cocos2d::CCPoint::operator+(v13, &v11, &v12); SetupTriggerPopup::createValueControlAdvanced( (int)a1, 68, (int)v9, (int)v13, 0.8, 0, 1, 10, 0, (cocos2d::CCFloat *)0xC3B40000, 360.0, 0, 0, 0, 2, 0); sub_774008(v9); sub_776584((int)v9, "Add"); cocos2d::CCPoint::CCPoint(&v12, 60.0, 70.0); cocos2d::CCPoint::operator+(v13, &v11, &v12); SetupTriggerPopup::createToggleValueControl((int)a1, 70, (int)v9, (int)v13, 0, 0, 0, 1.0); sub_774008(v9); sub_776584((int)v9, "Snap360"); cocos2d::CCPoint::CCPoint(&v12, 60.0, 30.0); cocos2d::CCPoint::operator+(v13, &v11, &v12); SetupTriggerPopup::createToggleValueControl((int)a1, 394, (int)v9, (int)v13, 0, 0, 0, 1.0); sub_774008(v9); sub_776584((int)v9, "Move Time:"); cocos2d::CCPoint::CCPoint(&v12, -100.0, -10.0); cocos2d::CCPoint::operator+(v13, &v11, &v12); SetupTriggerPopup::createValueControlAdvanced( (int)a1, 10, (int)v9, (int)v13, 0.8, 0, 1, 10, 0, nullptr, 10.0, 0, 0, 0, 2, 0); sub_774008(v9); cocos2d::CCPoint::CCPoint(&v12, 95.0, -10.0); cocos2d::CCPoint::operator+(v13, &v11, &v12); LODWORD(v6.x) = v13; v6.y = 0.8; SetupTriggerPopup::createEasingControls(a1, v6, 0.0, 0, v8); SetupTriggerPopup::postSetup(a1); } return v4; }
GD Web Decomp Icon

GD Web Decomp

Raw Source