// // SetupKeyframePopup::init from 0xb69ee0 to 0xb6b0d0 (4592 bytes) // // 2 xrefs: // > SetupKeyframePopup::create @ 0xb6b378 // > @ 0x95698 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 13:02:17 +0000 // __int64 __fastcall SetupKeyframePopup::init( cocos2d::CCArray **this, KeyframeGameObject *a2, cocos2d::CCArray *a3, LevelEditorLayer *a4) { _BOOL4 v8; // w22 cocos2d::CCString *v9; // x0 char *CString; // x0 __int64 v11; // x2 __int64 v12; // x3 __int64 v13; // x4 __int64 v14; // x5 const char *v15; // x6 cocos2d::CCDirector *v16; // x0 cocos2d::CCDirector *v17; // x0 int v18; // w28 cocos2d::CCArray *v19; // x0 cocos2d::CCObject *v20; // x0 int v21; // w28 unsigned int i; // w23 __int64 v23; // x26 CCMenuItemToggler *ToggleButton; // x24 __int64 v25; // x2 int v26; // [xsp+8h] [xbp-28h] unsigned __int8 v27; // [xsp+D7h] [xbp+A7h] cocos2d::CCNode *v28; // [xsp+D8h] [xbp+A8h] __int64 v29; // [xsp+E0h] [xbp+B0h] BYREF _BYTE v30[8]; // [xsp+E8h] [xbp+B8h] BYREF float v31; // [xsp+F0h] [xbp+C0h] BYREF float v32; // [xsp+F4h] [xbp+C4h] _BYTE v33[8]; // [xsp+F8h] [xbp+C8h] BYREF _BYTE v34[8]; // [xsp+100h] [xbp+D0h] BYREF __int64 v35; // [xsp+108h] [xbp+D8h] BYREF __int64 v36; // [xsp+110h] [xbp+E0h] BYREF __int64 v37; // [xsp+118h] [xbp+E8h] BYREF size_t v38; // [xsp+120h] [xbp+F0h] void *v39; // [xsp+128h] [xbp+F8h] __int64 v40; // [xsp+130h] [xbp+100h] BYREF size_t v41; // [xsp+138h] [xbp+108h] void *v42; // [xsp+140h] [xbp+110h] __int64 v43[2]; // [xsp+148h] [xbp+118h] BYREF void *v44; // [xsp+158h] [xbp+128h] __int64 v45[2]; // [xsp+160h] [xbp+130h] BYREF void *v46; // [xsp+170h] [xbp+140h] __int64 v47[2]; // [xsp+178h] [xbp+148h] BYREF void *v48; // [xsp+188h] [xbp+158h] __int64 v49[2]; // [xsp+190h] [xbp+160h] BYREF void *v50; // [xsp+1A0h] [xbp+170h] __int64 v51[2]; // [xsp+1A8h] [xbp+178h] BYREF void *v52; // [xsp+1B8h] [xbp+188h] __int64 v53[2]; // [xsp+1C0h] [xbp+190h] BYREF void *v54; // [xsp+1D0h] [xbp+1A0h] __int64 v55[2]; // [xsp+1D8h] [xbp+1A8h] BYREF void *v56; // [xsp+1E8h] [xbp+1B8h] __int64 v57[2]; // [xsp+1F0h] [xbp+1C0h] BYREF void *v58; // [xsp+200h] [xbp+1D0h] __int64 v59[2]; // [xsp+208h] [xbp+1D8h] BYREF void *v60; // [xsp+218h] [xbp+1E8h] __int64 v61[2]; // [xsp+220h] [xbp+1F0h] BYREF void *v62; // [xsp+230h] [xbp+200h] __int64 v63[2]; // [xsp+238h] [xbp+208h] BYREF void *v64; // [xsp+248h] [xbp+218h] __int64 v65[2]; // [xsp+250h] [xbp+220h] BYREF void *v66; // [xsp+260h] [xbp+230h] __int64 v67[2]; // [xsp+268h] [xbp+238h] BYREF void *v68; // [xsp+278h] [xbp+248h] __int64 v69[2]; // [xsp+280h] [xbp+250h] BYREF void *v70; // [xsp+290h] [xbp+260h] __int64 v71[2]; // [xsp+298h] [xbp+268h] BYREF void *v72; // [xsp+2A8h] [xbp+278h] __int64 v73[2]; // [xsp+2B0h] [xbp+280h] BYREF void *v74; // [xsp+2C0h] [xbp+290h] __int64 v75[2]; // [xsp+2C8h] [xbp+298h] BYREF void *v76; // [xsp+2D8h] [xbp+2A8h] __int64 v77[2]; // [xsp+2E0h] [xbp+2B0h] BYREF void *v78; // [xsp+2F0h] [xbp+2C0h] __int64 v79[2]; // [xsp+2F8h] [xbp+2C8h] BYREF void *v80; // [xsp+308h] [xbp+2D8h] __int64 v81[2]; // [xsp+310h] [xbp+2E0h] BYREF void *v82; // [xsp+320h] [xbp+2F0h] __int64 v83[2]; // [xsp+328h] [xbp+2F8h] BYREF void *v84; // [xsp+338h] [xbp+308h] __int64 v85[2]; // [xsp+340h] [xbp+310h] BYREF void *v86; // [xsp+350h] [xbp+320h] __int64 v87[2]; // [xsp+358h] [xbp+328h] BYREF void *v88; // [xsp+368h] [xbp+338h] __int64 v89[2]; // [xsp+370h] [xbp+340h] BYREF void *v90; // [xsp+380h] [xbp+350h] cocos2d::CCArray *v91; // [xsp+388h] [xbp+358h] BYREF size_t v92; // [xsp+390h] [xbp+360h] void *v93; // [xsp+398h] [xbp+368h] cocos2d::CCArray *v94; // [xsp+3A0h] [xbp+370h] BYREF size_t v95; // [xsp+3A8h] [xbp+378h] void *v96; // [xsp+3B0h] [xbp+380h] v27 = SetupTriggerPopup::init((SetupTriggerPopup *)this, a2, a3, 440.0, 280.0, 1u, 0.0); if ( !v27 ) return v27; SetupTriggerPopup::preSetup((SetupTriggerPopup *)this); *(this + 128) = a4; if ( a2 ) { v8 = *((_DWORD *)a2 + 465) == 0; v37 = 0; v38 = 0; v39 = nullptr; std::string::__init(&v37, "Setup Keyframe", 0xEu); v9 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"Setup Keyframe %i", (const char *)*((unsigned int *)a2 + 465)); CString = (char *)cocos2d::CCString::getCString(v9); std::string::assign(&v37, CString); } else { v8 = 0; v37 = 0; v38 = 0; v39 = nullptr; std::string::__init(&v37, "Setup Keyframe", 0xEu); } v40 = 0; v41 = 0; v42 = nullptr; if ( (v37 & 1) != 0 ) { std::string::__init(&v40, v39, v38); } else { v42 = v39; v40 = v37; v41 = v38; } SetupTriggerPopup::addTitle((__int64)this, (__int64)&v40); if ( (v40 & 1) != 0 ) operator delete(v42); v43[0] = 0; v43[1] = 0; v44 = nullptr; std::string::__init(v43, "OK", 2u); SetupTriggerPopup::addCloseButton((__int64)this, (__int64)v43, v11, v12, v13, v14, v15); if ( (v43[0] & 1) != 0 ) operator delete(v44); v45[0] = 0; v45[1] = 0; v46 = nullptr; std::string::__init(v45, "Help", 4u); v47[0] = 0; v47[1] = 0; v48 = nullptr; std::string::__init( v47, "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.", 0x2C9u); SetupTriggerPopup::addHelpButton((__int64)this, (char *)v45, (char *)v47, 0.8); if ( (v47[0] & 1) != 0 ) operator delete(v48); v16 = (cocos2d::CCDirector *)LOBYTE(v45[0]); if ( (v45[0] & 1) != 0 ) operator delete(v46); v17 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v16); cocos2d::CCDirector::getWinSize(&v29, v17); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v30, *(float *)&v29 * 0.5, (float)(*((float *)&v29 + 1) * 0.5) + 10.0); v49[0] = 0; v49[1] = 0; v50 = nullptr; std::string::__init(v49, "Curve", 5u); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v36, (float)((float)(*((float *)this + 183) * 0.5) + (float)(*(float *)&v29 * 0.5)) - 80.0, (float)((float)(*((float *)this + 184) * 0.5) + (float)(*((float *)&v29 + 1) * 0.5)) - 20.0); SetupTriggerPopup::createToggleValueControl((__int64)this, 0x17Au, v49, (const cocos2d::CCPoint *)&v36, 0, 0, 0, 1.0); if ( (v49[0] & 1) != 0 ) operator delete(v50); if ( v8 ) { v51[0] = 0; v51[1] = 0; v52 = nullptr; std::string::__init(v51, "GroupID", 7u); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v36, (float)(*(float *)&v29 * 0.5) + -135.0, (float)(*((float *)&v29 + 1) * 0.5) + 105.0); IDNameInput::create(this, this + 68, 1, 51, v51, &v36, 6, 0, 0.6, 1, 0); if ( (v51[0] & 1) != 0 ) operator delete(v52); } v53[0] = 0; v53[1] = 0; v54 = nullptr; std::string::__init(v53, "Duration", 8u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v35, -85.0, 65.0); cocos2d::CCPoint::operator+(&v36, v30); SetupTriggerPopup::createValueControlAdvanced( this, 10, (char *)v53, (__int64)&v36, 0, 1, 6, 0, 0.7, 0.0, 2.0, 0, 0, 0, 2, 0); if ( (v53[0] & 1) != 0 ) operator delete(v54); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v35, 90.0, 70.0); cocos2d::CCPoint::operator+(&v36, v30); SetupTriggerPopup::createEasingControls((__int64)this, (__int64)&v36, 0, 0, 0.65); v55[0] = 0; v55[1] = 0; v56 = nullptr; std::string::__init(v55, "x360", 4u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v35, -85.0, 10.0); cocos2d::CCPoint::operator+(&v36, v30); SetupTriggerPopup::createValueControlAdvanced( this, 537, (char *)v55, (__int64)&v36, 0, 2, 6, 0, 0.7, -10.0, 10.0, 0, 0, 0, 2, 0); if ( (v55[0] & 1) != 0 ) operator delete(v56); v18 = (int)(*((float (__fastcall **)(cocos2d::CCArray **, __int64))*this + 183))(this, 536); v57[0] = 0; v57[1] = 0; v58 = nullptr; std::string::__init(v57, "CCW", 3u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v35, 40.0, 5.0); cocos2d::CCPoint::operator+(&v36, v30); SetupTriggerPopup::createCustomToggleValueControl( (__int64)this, 2u, v18 == 2, 1u, (char *)v57, (const cocos2d::CCPoint *)&v36, 0, 0, 0); if ( (v57[0] & 1) != 0 ) operator delete(v58); v59[0] = 0; v59[1] = 0; v60 = nullptr; std::string::__init(v59, "CW", 2u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v35, 130.0, 5.0); cocos2d::CCPoint::operator+(&v36, v30); SetupTriggerPopup::createCustomToggleValueControl( (__int64)this, 1u, v18 == 1, 1u, (char *)v59, (const cocos2d::CCPoint *)&v36, 0, 0, 0); if ( (v59[0] & 1) != 0 ) operator delete(v60); v61[0] = 0; v61[1] = 0; v62 = nullptr; std::string::__init(v61, "SpawnGID", 8u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v35, -110.0, -60.0); cocos2d::CCPoint::operator+(&v36, v30); LOBYTE(v26) = 0; IDNameInput::create(this, this + 68, 1, 71, v61, &v36, 6, 0, 0.7, 1, v26); if ( (v61[0] & 1) != 0 ) operator delete(v62); v63[0] = 0; v63[1] = 0; v64 = nullptr; std::string::__init(v63, "SpawnDelay", 0xAu); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v35, 30.0, -50.0); cocos2d::CCPoint::operator+(&v36, v30); SetupTriggerPopup::createValueControlAdvanced( this, 557, (char *)v63, (__int64)&v36, 0, 1, 6, 0, 0.7, 0.0, 2.0, 0, 0, 0, 2, 0); if ( (v63[0] & 1) != 0 ) operator delete(v64); v65[0] = 0; v65[1] = 0; v66 = nullptr; std::string::__init(v65, "Prox", 4u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v35, 130.0, -60.0); cocos2d::CCPoint::operator+(&v36, v30); SetupTriggerPopup::createToggleValueControl((__int64)this, 0x179u, v65, (const cocos2d::CCPoint *)&v36, 1, 0, 0, 1.0); if ( (v65[0] & 1) != 0 ) operator delete(v66); v67[0] = 0; v67[1] = 0; v68 = nullptr; std::string::__init(v67, "Close\nLoop", 0xAu); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v36, (float)(*(float *)&v29 * 0.5) + -200.0, 20.0 - (float)((float)(*((float *)this + 184) * 0.5) - (float)(*((float *)&v29 + 1) * 0.5))); SetupTriggerPopup::createToggleValueControl((__int64)this, 0x178u, v67, (const cocos2d::CCPoint *)&v36, 0, 0, 0, 1.0); if ( (v67[0] & 1) != 0 ) operator delete(v68); v69[0] = 0; v69[1] = 0; v70 = nullptr; std::string::__init(v69, "Preview\nArt", 0xBu); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v36, (float)(*(float *)&v29 * 0.5) + -120.0, 20.0 - (float)((float)(*((float *)this + 184) * 0.5) - (float)(*((float *)&v29 + 1) * 0.5))); SetupTriggerPopup::createToggleValueControl((__int64)this, 0x17Cu, v69, (const cocos2d::CCPoint *)&v36, 0, 0, 0, 1.0); if ( (v69[0] & 1) != 0 ) operator delete(v70); v71[0] = 0; v71[1] = 0; v72 = nullptr; std::string::__init(v71, "Ref\nOnly", 8u); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v36, (float)(*(float *)&v29 * 0.5) + 60.0, 20.0 - (float)((float)(*((float *)this + 184) * 0.5) - (float)(*((float *)&v29 + 1) * 0.5))); SetupTriggerPopup::createToggleValueControl((__int64)this, 0x177u, v71, (const cocos2d::CCPoint *)&v36, 0, 0, 0, 1.0); if ( (v71[0] & 1) != 0 ) operator delete(v72); v73[0] = 0; v73[1] = 0; v74 = nullptr; std::string::__init(v73, "Auto\nLayer", 0xAu); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v36, (float)(*(float *)&v29 * 0.5) + 140.0, 20.0 - (float)((float)(*((float *)this + 184) * 0.5) - (float)(*((float *)&v29 + 1) * 0.5))); SetupTriggerPopup::createToggleValueControl((__int64)this, 0x1CBu, v73, (const cocos2d::CCPoint *)&v36, 0, 0, 0, 1.0); if ( (v73[0] & 1) != 0 ) operator delete(v74); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v31, (float)(*(float *)&v29 * 0.5) + -190.0, (float)(*((float *)&v29 + 1) * 0.5) + 60.0); v75[0] = 0; v75[1] = 0; v76 = nullptr; std::string::__init(v75, "Select\nAll", 0xAu); v77[0] = 0; v77[1] = 0; v78 = nullptr; std::string::__init(v77, &byte_11B8890, 0); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v36, v31, v32); SetupTriggerPopup::createCustomButton( (__int64)this, 1u, (__int64)v75, v77, (const cocos2d::CCPoint *)&v36, 1u, 0, 0, 0.7, 0.4); if ( (v77[0] & 1) != 0 ) operator delete(v78); if ( (v75[0] & 1) != 0 ) operator delete(v76); v79[0] = 0; v79[1] = 0; v80 = nullptr; std::string::__init(v79, "Update\nArt", 0xAu); v81[0] = 0; v81[1] = 0; v82 = nullptr; std::string::__init(v81, &byte_11B8890, 0); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v36, v31, v32 - 46.0); SetupTriggerPopup::createCustomButton( (__int64)this, 2u, (__int64)v79, v81, (const cocos2d::CCPoint *)&v36, 1u, 0, 0, 0.7, 0.4); if ( (v81[0] & 1) != 0 ) { operator delete(v82); if ( (v79[0] & 1) == 0 ) goto LABEL_48; LABEL_75: operator delete(v80); goto LABEL_48; } if ( (v79[0] & 1) != 0 ) goto LABEL_75; LABEL_48: v83[0] = 0; v83[1] = 0; v84 = nullptr; std::string::__init(v83, "Dup\nAnim", 8u); v85[0] = 0; v85[1] = 0; v86 = nullptr; std::string::__init(v85, &byte_11B8890, 0); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v36, v31, v32 - 92.0); SetupTriggerPopup::createCustomButton( (__int64)this, 3u, (__int64)v83, v85, (const cocos2d::CCPoint *)&v36, 1u, 0, 0, 0.7, 0.4); if ( (v85[0] & 1) != 0 ) operator delete(v86); if ( (v83[0] & 1) != 0 ) operator delete(v84); v87[0] = 0; v87[1] = 0; v88 = nullptr; std::string::__init(v87, "Reverse\nOrder", 0xDu); v89[0] = 0; v89[1] = 0; v90 = nullptr; std::string::__init(v89, &byte_11B8890, 0); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v36, v31, v32 - 138.0); SetupTriggerPopup::createCustomButton( (__int64)this, 4u, (__int64)v87, v89, (const cocos2d::CCPoint *)&v36, 1u, 0, 0, 0.7, 0.4); if ( (v89[0] & 1) != 0 ) operator delete(v90); if ( (v87[0] & 1) != 0 ) operator delete(v88); v91 = nullptr; v92 = 0; v93 = nullptr; std::string::__init((__int64 *)&v91, "LineOpacity", 0xBu); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v36, (float)((float)(*((float *)this + 183) * 0.5) + (float)(*(float *)&v29 * 0.5)) - 90.0, 50.0 - (float)((float)(*((float *)this + 184) * 0.5) - (float)(*((float *)&v29 + 1) * 0.5))); SetupTriggerPopup::createValueControlAdvanced( this, 524, (char *)&v91, (__int64)&v36, 0, 1, 1, 0, 0.6, 0.0, 1.0, 0, 0, 1, 2, 0); v19 = (cocos2d::CCArray *)(unsigned __int8)v91; if ( ((unsigned __int8)v91 & 1) != 0 ) operator delete(v93); v20 = (cocos2d::CCObject *)cocos2d::CCArray::create(v19); *(this + 127) = v20; cocos2d::CCObject::retain(v20); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v33, (float)((float)(*(float *)&v29 * 0.5) + 85.0) + 110.0, (float)(*((float *)&v29 + 1) * 0.5) + 50.0); v21 = 0; for ( i = 0; i != 3; ++i ) { v91 = nullptr; v92 = 0; v93 = nullptr; std::string::__init((__int64 *)&v91, "NA", 2u); if ( i == 1 ) { std::string::assign((__int64 *)&v91, "Even"); LABEL_62: v94 = nullptr; v95 = 0; v96 = nullptr; if ( ((unsigned __int8)v91 & 1) == 0 ) goto LABEL_63; goto LABEL_72; } if ( i == 2 ) { std::string::assign((__int64 *)&v91, "Dist"); goto LABEL_62; } std::string::assign((__int64 *)&v91, "Time"); v94 = nullptr; v95 = 0; v96 = nullptr; if ( ((unsigned __int8)v91 & 1) == 0 ) { LABEL_63: v96 = v93; v94 = v91; v95 = v92; goto LABEL_64; } LABEL_72: std::string::__init((__int64 *)&v94, v93, v92); LABEL_64: v28 = *(this + 69); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v34, 0.0, (float)v21); cocos2d::CCPoint::operator+(&v35, v33); v23 = (__int64)*(this + 73); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v36, 0.0, 4.0); ToggleButton = GameToolbox::createToggleButton( (__int64)&v94, (const char *)SetupKeyframePopup::onTimeMode, 0, 0, v28, (const cocos2d::CCPoint *)&v35, (__int64)this, v23, 0.7, 0.35, 110.0, (float *)&v36, "bigFont.fnt", 1, 0, nullptr); if ( ((unsigned __int8)v94 & 1) != 0 ) operator delete(v96); v25 = *(_QWORD *)ToggleButton; *((_BYTE *)ToggleButton + 393) = 1; (*(void (__fastcall **)(CCMenuItemToggler *, _QWORD))(v25 + 72))(ToggleButton, i); cocos2d::CCArray::addObject(*(this + 127), ToggleButton); if ( ((unsigned __int8)v91 & 1) != 0 ) operator delete(v93); v21 -= 50; } SetupKeyframePopup::updateTimeModeButtons((SetupKeyframePopup *)this); SetupTriggerPopup::postSetup((SetupTriggerPopup *)this); if ( (v37 & 1) != 0 ) operator delete(v39); return v27; }
GD Web Decomp Icon

GD Web Decomp

Raw Source