// // SetupStaticCameraPopup::init from 0x14045fca0 to 0x14046069d (2557 bytes) // // 3 xrefs: // > SetupStaticCameraPopup::create @ 0x14045fc5e // > @ 0x1406dadd8 // > @ 0x1406dade4 // // 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 // // Hidden C++ exception states: #wind=3 bool SetupStaticCameraPopup::init(SetupStaticCameraPopup *a1, CameraTriggerGameObject *a2, cocos2d::CCArray *a3) { bool result; // al __int64 v5; // rcx cocos2d::CCDirector *v6; // rax _QWORD *v7; // r9 _QWORD *v8; // rcx const char *v9; // rdx __int64 v10; // r8 int v11; // ebx int v12; // r8d int v13; // r9d int v14; // r8d int v15; // r9d double ToggleValueControl; // xmm0_8 double ValueControlAdvanced; // xmm0_8 int v18; // r9d char v19; // [rsp+80h] [rbp-88h] __int64 v20; // [rsp+80h] [rbp-88h] __int64 v21; // [rsp+80h] [rbp-88h] __int64 v22; // [rsp+80h] [rbp-88h] float v23; // [rsp+88h] [rbp-80h] _QWORD v24[2]; // [rsp+90h] [rbp-78h] BYREF __int128 *v25; // [rsp+A0h] [rbp-68h] __int128 v26; // [rsp+A8h] [rbp-60h] BYREF __int64 v27; // [rsp+B8h] [rbp-50h] __int64 v28; // [rsp+C0h] [rbp-48h] __int128 v29; // [rsp+C8h] [rbp-40h] BYREF __int64 v30; // [rsp+D8h] [rbp-30h] __int64 v31; // [rsp+E0h] [rbp-28h] char v32; // [rsp+170h] [rbp+68h] BYREF result = SetupTriggerPopup::init(a1, a2, a3, 420.0, 310.0, 1); if ( result ) { a1->m_disableTextDelegate = 1; a1->determineStartValues(a1); v6 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v5); cocos2d::CCDirector::getWinSize(v6); cocos2d::CCPoint::CCPoint(310.0, v23 * 0.5); v26 = 0; *(_QWORD *)&v26 = sub_14003AA10(0x20u); v27 = 19; v28 = 31; strcpy((char *)v26, "Setup Static Camera"); SetupTriggerPopup::addTitle(a1, &v26); v24[0] = &v26; v26 = 0; v27 = 0; v28 = 15; v7 = sub_14003AA10(0x180u); *(_QWORD *)&v26 = v7; v27 = 378; v28 = 383; v8 = v7; v9 = "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 eas" "ing.\n" "Duration is how long the camera takes to change to the target object.\n" "Use another trigger with Exit Static to stop."; v10 = 2; do { *(_OWORD *)v8 = *(_OWORD *)v9; *((_OWORD *)v8 + 1) = *((_OWORD *)v9 + 1); *((_OWORD *)v8 + 2) = *((_OWORD *)v9 + 2); *((_OWORD *)v8 + 3) = *((_OWORD *)v9 + 3); *((_OWORD *)v8 + 4) = *((_OWORD *)v9 + 4); *((_OWORD *)v8 + 5) = *((_OWORD *)v9 + 5); *((_OWORD *)v8 + 6) = *((_OWORD *)v9 + 6); v8 += 16; *((_OWORD *)v8 - 1) = *((_OWORD *)v9 + 7); v9 += 128; --v10; } while ( v10 ); *(_OWORD *)v8 = *(_OWORD *)v9; *((_OWORD *)v8 + 1) = *((_OWORD *)v9 + 1); *((_OWORD *)v8 + 2) = *((_OWORD *)v9 + 2); *((_OWORD *)v8 + 3) = *((_OWORD *)v9 + 3); *((_OWORD *)v8 + 4) = *((_OWORD *)v9 + 4); *((_OWORD *)v8 + 5) = *((_OWORD *)v9 + 5); *((_OWORD *)v8 + 6) = *((_OWORD *)v9 + 6); v8[14] = *((_QWORD *)v9 + 14); *((_WORD *)v8 + 60) = *((_WORD *)v9 + 60); *((_BYTE *)v7 + 378) = 0; v29 = 0; v30 = 4; v31 = 15; strcpy((char *)&v29, "Help"); SetupTriggerPopup::addHelpButton(a1, &v29, &v26); v29 = 0; v30 = 2; v31 = 15; strcpy((char *)&v29, "OK"); SetupTriggerPopup::addCloseButton(a1, &v29); SetupTriggerPopup::createMultiTriggerItemsDefaultHorizontal(a1); v24[1] = &v26; v27 = 11; v28 = 15; *(_QWORD *)&v26 = 0x6174530A74697845LL; *((_QWORD *)&v26 + 1) = 6515060; cocos2d::CCPoint::CCPoint(7.3989534e31, (float)(a1->m_width * 0.5) - 80.0); cocos2d::CCPoint::operator+(&v32, v24); SetupTriggerPopup::createToggleValueControl( (_DWORD)a1, 110, (unsigned int)&v26, (unsigned int)v24, 0, 0, 0, 1065353216); v25 = &v26; v27 = 12; v28 = 15; strcpy((char *)&v26, "Exit\nInstant"); BYTE13(v26) = 0; HIWORD(v26) = 0; cocos2d::CCPoint::CCPoint(7.3989534e31, (float)(a1->m_width * 0.5) - 80.0); cocos2d::CCPoint::operator+(&v32, v24); SetupTriggerPopup::createToggleValueControl( (_DWORD)a1, 465, (unsigned int)&v26, (unsigned int)v24, 0, 0, 0, 1065353216); v25 = &v26; v26 = 0; v27 = 0; v28 = 15; *(_QWORD *)&v26 = sub_14003AA10(0x20u); v27 = 16; v28 = 31; strcpy((char *)v26, "Target Group ID:"); cocos2d::CCPoint::CCPoint(1.1446081e24, -100.0); cocos2d::CCPoint::operator+(&v32, v24); v19 = 0; SetupTriggerPopup::createValueControlAdvanced( (_DWORD)a1, 71, (unsigned int)&v26, (unsigned int)v24, 1061158912, 1, 2, 10, 1, -1027080192, 1120403456, 0, 0, 0, 0, v19); v11 = (int)a1->getValue(a1, 101); v25 = &v26; v26 = 0; v27 = 6; v28 = 15; strcpy((char *)&v26, "X\nOnly"); cocos2d::CCPoint::CCPoint(0.0, 40.0); cocos2d::CCPoint::operator+(&v32, v24); LOBYTE(v12) = v11 == 1; SetupTriggerPopup::createCustomToggleValueControl((_DWORD)a1, 1, v12, v13, (__int64)&v26, (__int64)v24, 0, 0, 0); v25 = &v26; v26 = 0; v27 = 6; v28 = 15; strcpy((char *)&v26, "Y\nOnly"); cocos2d::CCPoint::CCPoint(0.0, 130.0); cocos2d::CCPoint::operator+(&v32, v24); LOBYTE(v14) = v11 == 2; SetupTriggerPopup::createCustomToggleValueControl((_DWORD)a1, 2, v14, v15, (__int64)&v26, (__int64)v24, 0, 0, 0); v25 = &v26; v26 = 0; v27 = 6; v28 = 15; strcpy((char *)&v26, "Follow"); cocos2d::CCPoint::CCPoint(0.0, -130.0); cocos2d::CCPoint::operator+(&v32, v24); ToggleValueControl = SetupTriggerPopup::createToggleValueControl( (_DWORD)a1, 212, (unsigned int)&v26, (unsigned int)v24, 0, 0, 0, 1065353216); v25 = &v26; v27 = 7; v28 = 15; v26 = 0x3A676E69736145uLL; cocos2d::CCPoint::CCPoint(*(float *)&ToggleValueControl, 95.0); cocos2d::CCPoint::operator+(&v32, v24); LOBYTE(v20) = 0; SetupTriggerPopup::createValueControlAdvanced( (_DWORD)a1, 213, (unsigned int)&v26, (unsigned int)v24, 1061158912, 0, 1, 10, 0, 0, 1112014848, 0, 212, 1, 1, v20); v25 = &v26; v27 = 15; v28 = 15; strcpy((char *)&v26, "Smooth\nVelocity"); cocos2d::CCPoint::CCPoint(7.4099082e28, -130.0); cocos2d::CCPoint::operator+(&v32, v24); SetupTriggerPopup::createToggleValueControl( (_DWORD)a1, 453, (unsigned int)&v26, (unsigned int)v24, 0, 0, 0, 1065353216); v25 = &v26; *((_QWORD *)&v26 + 1) = 58; v27 = 9; v28 = 15; *(_QWORD *)&v26 = 0x7265696669646F4DLL; cocos2d::CCPoint::CCPoint(1.7260043e25, 95.0); cocos2d::CCPoint::operator+(&v32, v24); LOBYTE(v21) = 0; SetupTriggerPopup::createValueControlAdvanced( (_DWORD)a1, 454, (unsigned int)&v26, (unsigned int)v24, 1061158912, 0, 1, 10, 0, 0, 1065353216, 0, 453, 1, 2, v21); v25 = &v26; *((_QWORD *)&v26 + 1) = 58; v27 = 9; v28 = 15; *(_QWORD *)&v26 = 0x6E6F697461727544LL; cocos2d::CCPoint::CCPoint(2.7953512e20, -100.0); cocos2d::CCPoint::operator+(&v32, v24); LOBYTE(v22) = 0; ValueControlAdvanced = SetupTriggerPopup::createValueControlAdvanced( (_DWORD)a1, 10, (unsigned int)&v26, (unsigned int)v24, 1061158912, 0, 1, 10, 0, 0, 1092616192, 0, 0, 0, 2, v22); cocos2d::CCPoint::CCPoint(*(float *)&ValueControlAdvanced, 105.0); cocos2d::CCPoint::operator+(&v32, v24); SetupTriggerPopup::createEasingControls(a1, (cocos2d::CCPoint)v24, 0.80000001, v18, 0); SetupStaticCameraPopup::updateState(a1); a1->updateDefaultTriggerValues(a1); a1->m_disableTextDelegate = 0; return 1; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source