// // SetupKeyframePopup::init from 0x573b60 to 0x5746bc (2908 bytes) // // 1 xrefs: // > SetupKeyframePopup::create @ 0x574784 // // 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 SetupKeyframePopup::init( SetupKeyframePopup *a1, KeyframeGameObject *a2, cocos2d::CCArray *a3, LevelEditorLayer *a4) { _BOOL4 v7; // r8 cocos2d::CCString *v8; // r0 char *CString; // r0 cocos2d::CCDirector *v10; // r0 cocos2d::CCPoint v11; // r1 int v12; // r8 cocos2d::CCArray *v13; // r0 cocos2d::CCArray *v14; // r0 int i; // r7 char *v16; // r1 cocos2d::CCMenu *m_buttonMenu; // r11 CCMenuItemToggler *v18; // r11 int v20; // [sp+4h] [bp-F8h] _BOOL4 v21; // [sp+34h] [bp-C8h] cocos2d::CCLayer *m_mainLayer; // [sp+38h] [bp-C4h] _BYTE v23[4]; // [sp+50h] [bp-ACh] BYREF _BYTE v24[4]; // [sp+54h] [bp-A8h] BYREF ButtonSprite *v25; // [sp+58h] [bp-A4h] BYREF _BYTE v26[4]; // [sp+5Ch] [bp-A0h] BYREF _BYTE v27[4]; // [sp+60h] [bp-9Ch] BYREF _BYTE v28[4]; // [sp+64h] [bp-98h] BYREF _BYTE v29[4]; // [sp+68h] [bp-94h] BYREF _BYTE v30[4]; // [sp+6Ch] [bp-90h] BYREF _BYTE v31[4]; // [sp+70h] [bp-8Ch] BYREF _BYTE v32[4]; // [sp+74h] [bp-88h] BYREF _BYTE v33[4]; // [sp+78h] [bp-84h] BYREF _BYTE v34[4]; // [sp+7Ch] [bp-80h] BYREF _BYTE v35[4]; // [sp+80h] [bp-7Ch] BYREF _BYTE v36[4]; // [sp+84h] [bp-78h] BYREF _BYTE v37[4]; // [sp+88h] [bp-74h] BYREF _BYTE v38[4]; // [sp+8Ch] [bp-70h] BYREF _BYTE v39[4]; // [sp+90h] [bp-6Ch] BYREF _BYTE v40[4]; // [sp+94h] [bp-68h] BYREF _BYTE v41[4]; // [sp+98h] [bp-64h] BYREF const char *v42; // [sp+9Ch] [bp-60h] BYREF _BYTE v43[4]; // [sp+A0h] [bp-5Ch] BYREF const char *v44; // [sp+A4h] [bp-58h] BYREF _BYTE v45[4]; // [sp+A8h] [bp-54h] BYREF const char *v46; // [sp+ACh] [bp-50h] BYREF _BYTE v47[4]; // [sp+B0h] [bp-4Ch] BYREF cocos2d::CCSize v48; // [sp+B4h] [bp-48h] BYREF cocos2d::CCPoint v49; // [sp+BCh] [bp-40h] BYREF cocos2d::CCPoint v50; // [sp+C4h] [bp-38h] BYREF cocos2d::CCPoint v51; // [sp+CCh] [bp-30h] BYREF cocos2d::CCPoint v52; // [sp+D4h] [bp-28h] BYREF cocos2d::CCPoint v53; // [sp+DCh] [bp-20h] BYREF cocos2d::CCPoint v54; // [sp+E4h] [bp-18h] BYREF cocos2d::CCPoint v55; // [sp+ECh] [bp-10h] BYREF v21 = SetupTriggerPopup::init(a1, a2, a3, 440.0, 280.0, 1); if ( v21 ) { SetupTriggerPopup::preSetup(a1); a1->m_editorLayer = a4; if ( a2 ) v7 = a2->m_keyframeIndex == 0; else v7 = 0; sub_776584((int)v23, "Setup Keyframe"); if ( a2 ) { v8 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"Setup Keyframe %i", (const char *)a2->m_keyframeIndex); CString = (char *)cocos2d::CCString::getCString(v8); sub_7753D4((int)v23, CString); } sub_775C20(v24); SetupTriggerPopup::addTitle((int)a1); sub_774008(v24); sub_776584((int)&v25, "OK"); SetupTriggerPopup::addCloseButton((unsigned int)a1, &v25); sub_774008(&v25); sub_776584((int)v26, "Help"); sub_776584( (int)v27, "GroupID needs to contain a group parent.\n" "Duration is time before next keyframe.\n" "x360 lets you do full rotations before next keyframe.\n" "CCW/CW to force rotation in a direction.\n" "SpawnGID lets you spawn a group at the keyframe.\n" "Prox will spawn the group when close to the keyframe.\n" "Curve uses cubic interpolation to the next keyframe.\n" "Close Loop returns to the first keyframe after the last.\n" "Preview Art lets you preview the Group ID instead of an icon.\n" "Ref Only will only be used as an inbetween frame.\n" "Even = time between each keyframe is duration / keyframes.\n" "Dist = time between each keyframe is distance / keyframes."); SetupTriggerPopup::addHelpButton((int)a1, (int)v26, (int)v27, 1061997773); sub_774008(v27); sub_774008(v26); v10 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(&v48, v10); cocos2d::CCPoint::CCPoint(&v49, v48.width * 0.5, (float)(v48.height * 0.5) + 10.0); sub_776584((int)v28, "Curve"); cocos2d::CCPoint::CCPoint( &v55, (float)((float)(a1->m_width * 0.5) + (float)(v48.width * 0.5)) - 80.0, (float)((float)(a1->m_height * 0.5) + (float)(v48.height * 0.5)) - 20.0); SetupTriggerPopup::createToggleValueControl(a1, 378, (int)v28, &v55, 0, 0, 0, 1.0); sub_774008(v28); if ( v7 ) { sub_776584((int)v29, "GroupID"); cocos2d::CCPoint::CCPoint(&v55, (float)(v48.width * 0.5) - 135.0, (float)(v48.height * 0.5) + 105.0); SetupTriggerPopup::createValueControlAdvanced( (unsigned int)a1, 51, (int)v29, &v55, (cocos2d::CCZone *)0x3F19999A, 1, Uint, 6, 1, nullptr, 100.0, 1, 0, 0, 2, 0); sub_774008(v29); } sub_776584((int)v30, "Duration"); cocos2d::CCPoint::CCPoint(&v54, -85.0, 65.0); cocos2d::CCPoint::operator+(&v55, &v49, &v54); SetupTriggerPopup::createValueControlAdvanced( (unsigned int)a1, 10, (int)v30, &v55, (cocos2d::CCZone *)0x3F333333, 0, Float, 6, 0, nullptr, 2.0, 0, 0, 0, 2, 0); sub_774008(v30); cocos2d::CCPoint::CCPoint(&v54, 90.0, 70.0); cocos2d::CCPoint::operator+(&v55, &v49, &v54); LODWORD(v11.x) = &v55; v11.y = 0.65; SetupTriggerPopup::createEasingControls(a1, v11, 0.0, 0, v20); sub_776584((int)v31, "x360"); cocos2d::CCPoint::CCPoint(&v54, -85.0, 10.0); cocos2d::CCPoint::operator+(&v55, &v49, &v54); SetupTriggerPopup::createValueControlAdvanced( (unsigned int)a1, 537, (int)v31, &v55, (cocos2d::CCZone *)0x3F333333, 0, Int, 6, 0, (cocos2d::CCFloat *)0xC1200000, 10.0, 0, 0, 0, 2, 0); sub_774008(v31); v12 = (int)a1->getValue(a1, 536); sub_776584((int)v32, "CCW"); cocos2d::CCPoint::CCPoint(&v54, 40.0, 5.0); cocos2d::CCPoint::operator+(&v55, &v49, &v54); SetupTriggerPopup::createCustomToggleValueControl( a1, 2, v12 == 2, 1, (std::string)v32, (cocos2d::CCPoint)(unsigned int)&v55, 0, 0); sub_774008(v32); sub_776584((int)v33, "CW"); cocos2d::CCPoint::CCPoint(&v54, 130.0, 5.0); cocos2d::CCPoint::operator+(&v55, &v49, &v54); SetupTriggerPopup::createCustomToggleValueControl( a1, 1, v12 == 1, 1, (std::string)v33, (cocos2d::CCPoint)(unsigned int)&v55, 0, 0); sub_774008(v33); sub_776584((int)v34, "SpawnGID"); cocos2d::CCPoint::CCPoint(&v54, -110.0, -60.0); cocos2d::CCPoint::operator+(&v55, &v49, &v54); SetupTriggerPopup::createValueControlAdvanced( (unsigned int)a1, 71, (int)v34, &v55, (cocos2d::CCZone *)0x3F333333, 1, Uint, 6, 1, nullptr, 100.0, 1, 0, 0, 2, 0); sub_774008(v34); sub_776584((int)v35, "SpawnDelay"); cocos2d::CCPoint::CCPoint(&v54, 30.0, -50.0); cocos2d::CCPoint::operator+(&v55, &v49, &v54); SetupTriggerPopup::createValueControlAdvanced( (unsigned int)a1, 557, (int)v35, &v55, (cocos2d::CCZone *)0x3F333333, 0, Float, 6, 0, nullptr, 2.0, 0, 0, 0, 2, 0); sub_774008(v35); sub_776584((int)v36, "Prox"); cocos2d::CCPoint::CCPoint(&v54, 130.0, -60.0); cocos2d::CCPoint::operator+(&v55, &v49, &v54); SetupTriggerPopup::createToggleValueControl(a1, 377, (int)v36, &v55, 1, 0, 0, 1.0); sub_774008(v36); sub_776584((int)v37, "Close\nLoop"); cocos2d::CCPoint::CCPoint( &v55, (float)(v48.width * 0.5) - 200.0, (float)((float)(v48.height * 0.5) - (float)(a1->m_height * 0.5)) + 20.0); SetupTriggerPopup::createToggleValueControl(a1, 376, (int)v37, &v55, 0, 0, 0, 1.0); sub_774008(v37); sub_776584((int)v38, "Preview\nArt"); cocos2d::CCPoint::CCPoint( &v55, (float)(v48.width * 0.5) - 120.0, (float)((float)(v48.height * 0.5) - (float)(a1->m_height * 0.5)) + 20.0); SetupTriggerPopup::createToggleValueControl(a1, 380, (int)v38, &v55, 0, 0, 0, 1.0); sub_774008(v38); sub_776584((int)v39, "Ref\nOnly"); cocos2d::CCPoint::CCPoint( &v55, (float)(v48.width * 0.5) + 60.0, (float)((float)(v48.height * 0.5) - (float)(a1->m_height * 0.5)) + 20.0); SetupTriggerPopup::createToggleValueControl(a1, 375, (int)v39, &v55, 0, 0, 0, 1.0); sub_774008(v39); sub_776584((int)v40, "Auto\nLayer"); cocos2d::CCPoint::CCPoint( &v55, (float)(v48.width * 0.5) + 140.0, (float)((float)(v48.height * 0.5) - (float)(a1->m_height * 0.5)) + 20.0); SetupTriggerPopup::createToggleValueControl(a1, 459, (int)v40, &v55, 0, 0, 0, 1.0); sub_774008(v40); cocos2d::CCPoint::CCPoint(&v50, (float)(v48.width * 0.5) - 190.0, (float)(v48.height * 0.5) + 60.0); sub_776584((int)v41, "Select\nAll"); sub_776584((int)&v42, (char *)&unk_939830); cocos2d::CCPoint::CCPoint(&v55, v50.x, v50.y); SetupTriggerPopup::createCustomButton(a1, 1, (int)v41, &v42, &v55, 0.7, 1053609165, 1, 0, 0); sub_774008(&v42); sub_774008(v41); sub_776584((int)v43, "Update\nArt"); sub_776584((int)&v44, (char *)&unk_939830); cocos2d::CCPoint::CCPoint(&v55, v50.x, v50.y - 46.0); SetupTriggerPopup::createCustomButton(a1, 2, (int)v43, &v44, &v55, 0.7, 1053609165, 1, 0, 0); sub_774008(&v44); sub_774008(v43); sub_776584((int)v45, "Dup\nAnim"); sub_776584((int)&v46, (char *)&unk_939830); cocos2d::CCPoint::CCPoint(&v55, v50.x, v50.y - 92.0); SetupTriggerPopup::createCustomButton(a1, 3, (int)v45, &v46, &v55, 0.7, 1053609165, 1, 0, 0); sub_774008(&v46); sub_774008(v45); sub_776584((int)&v52, "Reverse\nOrder"); sub_776584((int)&v53, (char *)&unk_939830); cocos2d::CCPoint::CCPoint(&v55, v50.x, v50.y - 138.0); SetupTriggerPopup::createCustomButton(a1, 4, (int)&v52, (const char **)&v53, &v55, 0.7, 1053609165, 1, 0, 0); sub_774008(&v53); sub_774008(&v52); sub_776584((int)&v54, "LineOpacity"); cocos2d::CCPoint::CCPoint( &v55, (float)((float)(a1->m_width * 0.5) + (float)(v48.width * 0.5)) - 90.0, (float)((float)(v48.height * 0.5) - (float)(a1->m_height * 0.5)) + 50.0); SetupTriggerPopup::createValueControlAdvanced( (unsigned int)a1, 524, (int)&v54, &v55, (cocos2d::CCZone *)0x3F19999A, 0, Float, 1, 0, nullptr, 1.0, 0, 0, 1, 2, 0); v13 = (cocos2d::CCArray *)sub_774008(&v54); v14 = (cocos2d::CCArray *)cocos2d::CCArray::create(v13); a1->m_timeModeToggles = v14; cocos2d::CCObject::retain(v14); cocos2d::CCPoint::CCPoint(&v51, (float)((float)(v48.width * 0.5) + 85.0) + 110.0, (float)(v48.height * 0.5) + 50.0); for ( i = 0; i != 3; ++i ) { sub_776584((int)&v46, "NA"); if ( i == 1 ) { v16 = "Even"; } else if ( i == 2 ) { v16 = "Dist"; } else { v16 = "Time"; } sub_7753D4((int)&v46, v16); sub_775C20(v47); m_buttonMenu = a1->m_buttonMenu; LODWORD(v55.x) = SetupKeyframePopup::onTimeMode; v55.y = 0.0; cocos2d::CCPoint::CCPoint(&v52, 0.0, (float)(-50 * i)); cocos2d::CCPoint::operator+(&v53, &v51, &v52); m_mainLayer = a1->m_mainLayer; cocos2d::CCPoint::CCPoint(&v54, 0.0, 4.0); v18 = GameToolbox::createToggleButton( (int)v47, LODWORD(v55.x), LODWORD(v55.y), 0, m_buttonMenu, &v53, a1, m_mainLayer, 0.7, 0.35, 110.0, (int)&v54, (int)"bigFont.fnt", 1, 0, nullptr); sub_774008(v47); v18->m_notClickable = 1; v18->setTag(v18, i); cocos2d::CCArray::addObject(a1->m_timeModeToggles, v18); sub_774008(&v46); } SetupKeyframePopup::updateTimeModeButtons(a1); SetupTriggerPopup::postSetup(a1); sub_774008(v23); } return v21; }
GD Web Decomp Icon

GD Web Decomp

Raw Source