// // SetupStaticCameraPopup::init from 0x503e28 to 0x504344 (1308 bytes) // // 1 xrefs: // > SetupStaticCameraPopup::create @ 0x5044de // // 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 SetupStaticCameraPopup::init(SetupStaticCameraPopup *a1, CameraTriggerGameObject *a2, cocos2d::CCArray *a3) { _BOOL4 v4; // r11 cocos2d::CCDirector *v5; // r0 int v6; // s16 cocos2d::CCPoint v7; // r1 int v9; // [sp+4h] [bp-68h] _BYTE v10[4]; // [sp+40h] [bp-2Ch] BYREF cocos2d::CCSize v11; // [sp+44h] [bp-28h] BYREF cocos2d::CCPoint v12; // [sp+4Ch] [bp-20h] BYREF cocos2d::CCPoint v13; // [sp+54h] [bp-18h] BYREF _BYTE v14[8]; // [sp+5Ch] [bp-10h] BYREF v4 = SetupTriggerPopup::init(a1, a2, a3, 420.0, 310.0, 1); if ( v4 ) { SetupTriggerPopup::preSetup(a1); v5 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(&v11, v5); cocos2d::CCPoint::CCPoint(&v12, v11.width * 0.5, v11.height * 0.5); sub_776584((int)v14, "Setup Static Camera"); SetupTriggerPopup::addTitle(a1, (std::string)v14); sub_774008(v14); sub_776584((int)&v13, "Help"); sub_776584( (int)v14, "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."); SetupTriggerPopup::addHelpButton(a1, (std::string)&v13, (std::string)v14, 1.0); sub_774008(v14); sub_774008(&v13); sub_776584((int)v14, "OK"); SetupTriggerPopup::addCloseButton(a1, (std::string)v14); sub_774008(v14); SetupTriggerPopup::createMultiTriggerItemsDefaultHorizontal(a1); sub_776584((int)v10, "Exit\nStatic"); cocos2d::CCPoint::CCPoint(&v13, (float)(a1->m_width * 0.5) - 80.0, (float)(a1->m_height * 0.5) - 20.0); cocos2d::CCPoint::operator+(v14, &v12, &v13); SetupTriggerPopup::createToggleValueControl((int)a1, 110, (int)v10, (int)v14, 0, 0, 0, 1.0); sub_774008(v10); sub_776584((int)v10, "Exit\nInstant"); cocos2d::CCPoint::CCPoint(&v13, (float)(a1->m_width * 0.5) - 80.0, (float)(a1->m_height * 0.5) - 50.0); cocos2d::CCPoint::operator+(v14, &v12, &v13); SetupTriggerPopup::createToggleValueControl((int)a1, 465, (int)v10, (int)v14, 0, 0, 0, 1.0); sub_774008(v10); sub_776584((int)v10, "Target Group ID:"); cocos2d::CCPoint::CCPoint(&v13, -100.0, 80.0); cocos2d::CCPoint::operator+(v14, &v12, &v13); SetupTriggerPopup::createValueControlAdvanced( (int)a1, 71, (int)v10, (int)v14, 0.75, 1, 2, 10, 1, (cocos2d::CCFloat *)0xC2C80000, 100.0, 0, 0, 0, 0, 0); sub_774008(v10); v6 = (int)COERCE_FLOAT(((int (__fastcall *)(SetupStaticCameraPopup *, int))a1->getValue)(a1, 101)); sub_776584((int)v10, "X\nOnly"); cocos2d::CCPoint::CCPoint(&v13, 40.0, 80.0); cocos2d::CCPoint::operator+(v14, &v12, &v13); SetupTriggerPopup::createCustomToggleValueControl( a1, 1, v6 == 1, 1, (std::string)v10, (cocos2d::CCPoint)(unsigned int)v14, 0, 0); sub_774008(v10); sub_776584((int)v10, "Y\nOnly"); cocos2d::CCPoint::CCPoint(&v13, 130.0, 80.0); cocos2d::CCPoint::operator+(v14, &v12, &v13); SetupTriggerPopup::createCustomToggleValueControl( a1, 2, v6 == 2, 1, (std::string)v10, (cocos2d::CCPoint)(unsigned int)v14, 0, 0); sub_774008(v10); sub_776584((int)v10, "Follow"); cocos2d::CCPoint::CCPoint(&v13, -130.0, 30.0); cocos2d::CCPoint::operator+(v14, &v12, &v13); SetupTriggerPopup::createToggleValueControl((int)a1, 212, (int)v10, (int)v14, 0, 0, 0, 1.0); sub_774008(v10); sub_776584((int)v10, "Easing:"); cocos2d::CCPoint::CCPoint(&v13, 95.0, 30.0); cocos2d::CCPoint::operator+(v14, &v12, &v13); SetupTriggerPopup::createValueControlAdvanced( (int)a1, 213, (int)v10, (int)v14, 0.75, 0, 1, 10, 0, nullptr, 50.0, 0, 212, 1, 1, 0); sub_774008(v10); sub_776584((int)v10, "Smooth\nVelocity"); cocos2d::CCPoint::CCPoint(&v13, -130.0, -10.0); cocos2d::CCPoint::operator+(v14, &v12, &v13); SetupTriggerPopup::createToggleValueControl((int)a1, 453, (int)v10, (int)v14, 0, 0, 0, 1.0); sub_774008(v10); sub_776584((int)v10, "Modifier:"); cocos2d::CCPoint::CCPoint(&v13, 95.0, -10.0); cocos2d::CCPoint::operator+(v14, &v12, &v13); SetupTriggerPopup::createValueControlAdvanced( (int)a1, 454, (int)v10, (int)v14, 0.75, 0, 1, 10, 0, nullptr, 1.0, 0, 453, 1, 2, 0); sub_774008(v10); sub_776584((int)v10, "Duration:"); cocos2d::CCPoint::CCPoint(&v13, -100.0, -60.0); cocos2d::CCPoint::operator+(v14, &v12, &v13); SetupTriggerPopup::createValueControlAdvanced( (int)a1, 10, (int)v10, (int)v14, 0.75, 0, 1, 10, 0, nullptr, 10.0, 0, 0, 0, 2, 0); sub_774008(v10); cocos2d::CCPoint::CCPoint(&v13, 105.0, -60.0); cocos2d::CCPoint::operator+(v14, &v12, &v13); LODWORD(v7.x) = v14; v7.y = 0.8; SetupTriggerPopup::createEasingControls(a1, v7, 0.0, 0, v9); SetupStaticCameraPopup::updateState(a1); SetupTriggerPopup::postSetup(a1); } return v4; }
GD Web Decomp Icon

GD Web Decomp

Raw Source