// // SetupCameraGuidePopup::init from 0x140470920 to 0x140470edb (1467 bytes) // // 3 xrefs: // > SetupCameraGuidePopup::create @ 0x1404708de // > @ 0x1406db2c4 // > @ 0x1406db2d0 // // 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 SetupCameraGuidePopup::init(SetupCameraGuidePopup *a1, CameraTriggerGameObject *a2, cocos2d::CCArray *a3) { bool result; // al double v5; // xmm0_8 __int64 v6; // rcx cocos2d::CCDirector *v7; // rax int v8; // eax char v9; // [rsp+80h] [rbp-88h] __int64 v10; // [rsp+80h] [rbp-88h] __int64 v11; // [rsp+80h] [rbp-88h] __int64 v12; // [rsp+80h] [rbp-88h] _BYTE v13[8]; // [rsp+88h] [rbp-80h] BYREF _QWORD v14[2]; // [rsp+90h] [rbp-78h] BYREF __int128 *v15; // [rsp+A0h] [rbp-68h] __int128 v16; // [rsp+A8h] [rbp-60h] BYREF __int64 v17; // [rsp+B8h] [rbp-50h] __int64 v18; // [rsp+C0h] [rbp-48h] __int128 v19; // [rsp+C8h] [rbp-40h] BYREF __int64 v20; // [rsp+D8h] [rbp-30h] __int64 v21; // [rsp+E0h] [rbp-28h] float v22; // [rsp+160h] [rbp+58h] result = SetupTriggerPopup::init(a1, a2, a3, 360.0, 250.0, 1); if ( result ) { a1->m_disableTextDelegate = 1; a1->determineStartValues(a1); a1->m_disableSliderDelegate = 1; v17 = 12; v18 = 15; strcpy((char *)&v16, "Camera Guide"); BYTE13(v16) = 0; HIWORD(v16) = 0; SetupTriggerPopup::addTitle(a1, &v16); v16 = 0; v17 = 2; v18 = 15; strcpy((char *)&v16, "OK"); SetupTriggerPopup::addCloseButton(a1, &v16); v14[0] = &v16; v16 = 0; v17 = 0; v18 = 15; *(_QWORD *)&v16 = sub_14003AA10(0xD0u); v17 = 205; v18 = 207; strcpy( (char *)v16, "Preview the camera bounds at specified Zoom and Offset values for different aspect ratios. The inn" "er line is the guaranteed view 4:3 and the outer line is based on your window aspect ratio."); v19 = 0; v20 = 4; v21 = 15; strcpy((char *)&v19, "Help"); v5 = SetupTriggerPopup::addHelpButton(a1, &v19, &v16); v7 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v6); cocos2d::CCDirector::getWinSize(v7); cocos2d::CCPoint::CCPoint(*(float *)&v5, v22 * 0.5); v14[1] = &v16; v16 = 0; v17 = 5; v18 = 15; strcpy((char *)&v16, "Zoom:"); cocos2d::CCPoint::CCPoint(0.0, 0.0); cocos2d::CCPoint::operator+(v13, v14); v9 = 0; SetupTriggerPopup::createValueControlAdvanced( (_DWORD)a1, 371, (unsigned int)&v16, (unsigned int)v14, 1061997773, 0, 1, 4, 0, 1053609165, 1077936128, 0, 0, 0, 3, v9); v15 = &v16; v17 = 9; v18 = 15; *(_QWORD *)&v16 = *(_QWORD *)"Offset X:"; *((_QWORD *)&v16 + 1) = (unsigned __int8)aOffsetX[8]; BYTE9(v16) = 0; cocos2d::CCPoint::CCPoint(1.825414e31, -85.0); cocos2d::CCPoint::operator+(v13, v14); LOBYTE(v10) = 0; SetupTriggerPopup::createValueControlAdvanced( (_DWORD)a1, 28, (unsigned int)&v16, (unsigned int)v14, 1061997773, 0, 2, 10, 0, -1027080192, 1120403456, 0, 0, 0, 0, v10); v15 = &v16; v17 = 9; v18 = 15; *(_QWORD *)&v16 = *(_QWORD *)"Offset Y:"; *((_QWORD *)&v16 + 1) = (unsigned __int8)aOffsetY[8]; BYTE9(v16) = 0; cocos2d::CCPoint::CCPoint(1.825414e31, 90.0); cocos2d::CCPoint::operator+(v13, v14); LOBYTE(v11) = 0; SetupTriggerPopup::createValueControlAdvanced( (_DWORD)a1, 29, (unsigned int)&v16, (unsigned int)v14, 1061997773, 0, 2, 10, 0, -1027080192, 1120403456, 0, 0, 0, 0, v11); v15 = &v16; v17 = 15; v18 = 15; strcpy((char *)&v16, "Preview\nOpacity"); cocos2d::CCPoint::CCPoint(v22 * 0.5, (float)((float)(a1->m_width * 0.5) + (float)(v22 * 0.5)) - 72.0); LOBYTE(v12) = 0; SetupTriggerPopup::createValueControlAdvanced( (_DWORD)a1, 506, (unsigned int)&v16, v8, 1059481190, 0, 1, 5, 0, 0, 0, 0, 0, 0, 2, v12); a1->updateDefaultTriggerValues(a1); a1->m_disableTextDelegate = 0; return 1; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source