// // SetupTransformPopup::init from 0x140465040 to 0x140465a9f (2655 bytes) // // 3 xrefs: // > SetupTransformPopup::create @ 0x140464ffe // > @ 0x1406db03c // > @ 0x1406db048 // // 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 SetupTransformPopup::init(SetupTransformPopup *a1, TransformTriggerGameObject *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 __int128 v11; // xmm0 int v12; // r9d char v13; // [rsp+80h] [rbp-88h] __int64 v14; // [rsp+80h] [rbp-88h] __int64 v15; // [rsp+80h] [rbp-88h] __int64 v16; // [rsp+80h] [rbp-88h] __int64 v17; // [rsp+80h] [rbp-88h] float v18; // [rsp+88h] [rbp-80h] _QWORD v19[2]; // [rsp+90h] [rbp-78h] BYREF __int128 *v20; // [rsp+A0h] [rbp-68h] __int128 v21; // [rsp+A8h] [rbp-60h] BYREF __int64 v22; // [rsp+B8h] [rbp-50h] __int64 v23; // [rsp+C0h] [rbp-48h] __int128 v24; // [rsp+C8h] [rbp-40h] BYREF __int64 v25; // [rsp+D8h] [rbp-30h] __int64 v26; // [rsp+E0h] [rbp-28h] char v27; // [rsp+190h] [rbp+88h] BYREF result = SetupTriggerPopup::init(a1, a2, a3, 440.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, v18 * 0.5); v21 = 0; *(_QWORD *)&v21 = sub_14003AA10(0x20u); v22 = 19; v23 = 31; strcpy((char *)v21, "Setup Scale Command"); SetupTriggerPopup::addTitle(a1, &v21); v21 = 0; v22 = 2; v23 = 15; strcpy((char *)&v21, "OK"); SetupTriggerPopup::addCloseButton(a1, &v21); SetupTriggerPopup::createMultiTriggerItemsCorner(a1); v19[0] = &v21; v21 = 0; v22 = 0; v23 = 15; v7 = sub_14003AA10(0x1E0u); *(_QWORD *)&v21 = v7; v22 = 477; v23 = 479; v8 = v7; v9 = "Scales a specific Target Group ID.\n" "Center Group ID specifies a target object to use as the center. If none is set, all objects use their o" "wn center.\n" "Duration specifies how long the scaling lasts.\n" "Div by Value X/Y divides the current scale by the values.\n" "Only Move makes the objects move as if they were scaled.\n" "Relative Rotation rotates the X- and Y-axis too.\n" "Relative Scale bases scaling on the reference object."; v10 = 3; 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); v8[10] = *((_QWORD *)v9 + 10); *((_DWORD *)v8 + 22) = *((_DWORD *)v9 + 22); *((_BYTE *)v8 + 92) = v9[92]; *((_BYTE *)v7 + 477) = 0; v24 = 0; v25 = 4; v26 = 15; strcpy((char *)&v24, "Help"); SetupTriggerPopup::addHelpButton(a1, &v24, &v21); v19[1] = &v21; v11 = 0; v22 = 9; v23 = 15; *(_QWORD *)&v11 = 0x766F4D0A796C6E4FLL; v21 = v11; WORD4(v21) = 101; cocos2d::CCPoint::CCPoint(a1->m_height * 0.5, 110.0 - (float)(a1->m_width * 0.5)); cocos2d::CCPoint::operator+(&v27, v19); *(double *)&v11 = SetupTriggerPopup::createToggleValueControl( (_DWORD)a1, 133, (unsigned int)&v21, (unsigned int)v19, 0, 0, 0, 1065353216); v20 = &v21; HIWORD(v21) = 0; v22 = 7; v23 = 15; qmemcpy(&v21, "ScaleX", 6); *(_QWORD *)((char *)&v21 + 6) = (unsigned __int8)aScalex[6]; cocos2d::CCPoint::CCPoint(*(float *)&v11, -100.0); cocos2d::CCPoint::operator+(&v27, v19); v13 = 0; *(double *)&v11 = SetupTriggerPopup::createValueControlAdvanced( (_DWORD)a1, 150, (unsigned int)&v21, (unsigned int)v19, 1063675494, 0, 1, 10, 0, 1056964608, 0x40000000, 0, 0, 0, 3, v13); v20 = &v21; v22 = 7; v23 = 15; v21 = 0x3A59656C616353uLL; cocos2d::CCPoint::CCPoint(*(float *)&v11, 105.0); cocos2d::CCPoint::operator+(&v27, v19); LOBYTE(v14) = 0; SetupTriggerPopup::createValueControlAdvanced( (_DWORD)a1, 151, (unsigned int)&v21, (unsigned int)v19, 1063675494, 0, 1, 10, 0, 1056964608, 0x40000000, 0, 0, 0, 3, v14); v20 = &v21; v22 = 14; v23 = 15; strcpy((char *)&v21, "Div by Value X"); HIBYTE(v21) = 0; cocos2d::CCPoint::CCPoint(2.087184e-19, -150.0); cocos2d::CCPoint::operator+(&v27, v19); SetupTriggerPopup::createToggleValueControl( (_DWORD)a1, 153, (unsigned int)&v21, (unsigned int)v19, 0, 0, 0, 1065353216); v20 = &v21; v22 = 14; v23 = 15; strcpy((char *)&v21, "Div by Value Y"); HIBYTE(v21) = 0; cocos2d::CCPoint::CCPoint(2.087184e-19, 55.0); cocos2d::CCPoint::operator+(&v27, v19); *(double *)&v11 = SetupTriggerPopup::createToggleValueControl( (_DWORD)a1, 154, (unsigned int)&v21, (unsigned int)v19, 0, 0, 0, 1065353216); cocos2d::CCPoint::CCPoint(*(float *)&v11, -100.0); cocos2d::CCPoint::operator+(&v27, v19); SetupTriggerPopup::createEasingControls(a1, (cocos2d::CCPoint)v19, 0.80000001, v12, 0); v20 = &v21; *((_QWORD *)&v21 + 1) = 58; v22 = 9; v23 = 15; *(_QWORD *)&v21 = 0x6E6F697461727544LL; cocos2d::CCPoint::CCPoint(2.7953512e20, -100.0); cocos2d::CCPoint::operator+(&v27, v19); LOBYTE(v15) = 0; SetupTriggerPopup::createValueControlAdvanced( (_DWORD)a1, 10, (unsigned int)&v21, (unsigned int)v19, 1063675494, 0, 1, 10, 0, 0, 1092616192, 0, 0, 0, 2, v15); v20 = &v21; v21 = 0; v22 = 0; v23 = 15; *(_QWORD *)&v21 = sub_14003AA10(0x20u); v22 = 16; v23 = 31; strcpy((char *)v21, "Center Group ID:"); cocos2d::CCPoint::CCPoint(7.5550567e31, 115.0); cocos2d::CCPoint::operator+(&v27, v19); LOBYTE(v16) = 0; SetupTriggerPopup::createValueControlAdvanced( (_DWORD)a1, 71, (unsigned int)&v21, (unsigned int)v19, 1063675494, 1, 2, 10, 1, -1027080192, 1120403456, 0, 0, 0, 0, v16); v20 = &v21; v21 = 0; v22 = 0; v23 = 15; *(_QWORD *)&v21 = sub_14003AA10(0x20u); v22 = 16; v23 = 31; strcpy((char *)v21, "Target Group ID:"); cocos2d::CCPoint::CCPoint(1.1446081e24, 115.0); cocos2d::CCPoint::operator+(&v27, v19); LOBYTE(v17) = 0; SetupTriggerPopup::createValueControlAdvanced( (_DWORD)a1, 51, (unsigned int)&v21, (unsigned int)v19, 1063675494, 1, 2, 10, 1, -1027080192, 1120403456, 0, 0, 0, 0, v17); v20 = &v21; v22 = 14; v23 = 15; strcpy((char *)&v21, "Relative\nScale"); HIBYTE(v21) = 0; cocos2d::CCPoint::CCPoint(a1->m_height * 0.5, 50.0); cocos2d::CCPoint::operator+(&v27, v19); SetupTriggerPopup::createToggleValueControl( (_DWORD)a1, 577, (unsigned int)&v21, (unsigned int)v19, 0, 0, 0, 1065353216); v20 = &v21; v21 = 0; v22 = 0; v23 = 15; *(_QWORD *)&v21 = sub_14003AA10(0x20u); v22 = 17; v23 = 31; strcpy((char *)v21, "Relative\nRotation"); cocos2d::CCPoint::CCPoint(a1->m_height * 0.5, (float)(a1->m_width * 0.5) - 85.0); cocos2d::CCPoint::operator+(&v27, v19); SetupTriggerPopup::createToggleValueControl( (_DWORD)a1, 452, (unsigned int)&v21, (unsigned int)v19, 0, 0, 0, 1065353216); a1->updateDefaultTriggerValues(a1); a1->m_disableTextDelegate = 0; return 1; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source