// // SetupKeyframePopup::init from 0x6ae1a0 to 0x6aee98 (3320 bytes) // // 1 xrefs: // > SetupKeyframePopup::create @ 0x6aef20 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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 11:56:38 +0000 // GameManager *__fastcall SetupKeyframePopup::init( cocos2d::CCArray **this, const char **a2, cocos2d::CCArray *a3, LevelEditorLayer *a4) { _BOOL4 v7; // r8 cocos2d::CCString *v8; // r0 char *CString; // r0 cocos2d::CCDirector *v10; // r0 float v11; // r0 int v12; // r11 _BOOL4 v13; // r9 cocos2d::CCArray *v14; // r0 cocos2d::CCObject *v15; // r0 int i; // r8 char *v17; // r1 int v18; // r9 cocos2d::CCObject *ToggleButton; // r9 GameManager *v21; // [sp+34h] [bp-1B8h] const cocos2d::CCPoint *v22; // [sp+38h] [bp-1B4h] float v23; // [sp+54h] [bp-198h] BYREF float v24; // [sp+58h] [bp-194h] _BYTE v25[8]; // [sp+5Ch] [bp-190h] BYREF float v26; // [sp+64h] [bp-188h] BYREF float v27; // [sp+68h] [bp-184h] _BYTE v28[8]; // [sp+6Ch] [bp-180h] BYREF _BYTE v29[8]; // [sp+74h] [bp-178h] BYREF _BYTE v30[8]; // [sp+7Ch] [bp-170h] BYREF _BYTE v31[8]; // [sp+84h] [bp-168h] BYREF int (__fastcall *v32)(SetupKeyframePopup *, cocos2d::CCObject *); // [sp+8Ch] [bp-160h] BYREF int v33; // [sp+90h] [bp-15Ch] int v34; // [sp+94h] [bp-158h] BYREF size_t v35; // [sp+98h] [bp-154h] const void *v36; // [sp+9Ch] [bp-150h] int v37; // [sp+A0h] [bp-14Ch] BYREF size_t v38; // [sp+A4h] [bp-148h] const void *v39; // [sp+A8h] [bp-144h] int v40[3]; // [sp+ACh] [bp-140h] BYREF int v41[3]; // [sp+B8h] [bp-134h] BYREF int v42[3]; // [sp+C4h] [bp-128h] BYREF int v43[3]; // [sp+D0h] [bp-11Ch] BYREF int v44[3]; // [sp+DCh] [bp-110h] BYREF int v45[3]; // [sp+E8h] [bp-104h] BYREF int v46[3]; // [sp+F4h] [bp-F8h] BYREF int v47[3]; // [sp+100h] [bp-ECh] BYREF int v48[3]; // [sp+10Ch] [bp-E0h] BYREF int v49[3]; // [sp+118h] [bp-D4h] BYREF int v50[3]; // [sp+124h] [bp-C8h] BYREF int v51[3]; // [sp+130h] [bp-BCh] BYREF int v52[3]; // [sp+13Ch] [bp-B0h] BYREF int v53[3]; // [sp+148h] [bp-A4h] BYREF int v54[3]; // [sp+154h] [bp-98h] BYREF int v55[3]; // [sp+160h] [bp-8Ch] BYREF int v56[3]; // [sp+16Ch] [bp-80h] BYREF int v57[3]; // [sp+178h] [bp-74h] BYREF int v58[3]; // [sp+184h] [bp-68h] BYREF int v59[3]; // [sp+190h] [bp-5Ch] BYREF int v60[3]; // [sp+19Ch] [bp-50h] BYREF int v61[3]; // [sp+1A8h] [bp-44h] BYREF int v62[3]; // [sp+1B4h] [bp-38h] BYREF int v63[3]; // [sp+1C0h] [bp-2Ch] BYREF int v64; // [sp+1CCh] [bp-20h] BYREF size_t v65; // [sp+1D0h] [bp-1Ch] const void *v66; // [sp+1D4h] [bp-18h] int v67; // [sp+1D8h] [bp-14h] BYREF size_t v68; // [sp+1DCh] [bp-10h] const void *v69; // [sp+1E0h] [bp-Ch] v21 = SetupTriggerPopup::init( (SetupTriggerPopup *)this, (EffectGameObject *)a2, a3, 440.0, 280.0, (_BYTE *)&dword_0 + 1, 0.0); if ( v21 ) { SetupTriggerPopup::preSetup((SetupTriggerPopup *)this); *(this + 179) = a4; if ( a2 ) v7 = a2[415] == nullptr; else v7 = 0; v34 = 0; v35 = 0; v36 = nullptr; std::string::__init(&v34, "Setup Keyframe", 0xEu); if ( a2 ) { v8 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"Setup Keyframe %i", a2[415]); CString = (char *)cocos2d::CCString::getCString(v8); std::string::assign(&v34, CString); } v37 = 0; v38 = 0; v39 = nullptr; if ( (v34 & 1) != 0 ) { std::string::__init(&v37, v36, v35); } else { v37 = v34; v38 = v35; v39 = v36; } SetupTriggerPopup::addTitle((int)this, (unsigned __int8 *)&v37); std::string::~string((int)&v37); memset(v40, 0, sizeof(v40)); std::string::__init(v40, "OK", 2u); SetupTriggerPopup::addCloseButton((int)this, (int)v40); std::string::~string((int)v40); memset(v41, 0, sizeof(v41)); std::string::__init(v41, "Help", 4u); memset(v42, 0, sizeof(v42)); std::string::__init( v42, "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((int)this, (int)v41, (int)v42, 1061997773); std::string::~string((int)v42); v10 = (cocos2d::CCDirector *)std::string::~string((int)v41); cocos2d::CCDirector::sharedDirector(v10); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v23); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v25, v23 * 0.5, (float)(v24 * 0.5) + 10.0); memset(v43, 0, sizeof(v43)); std::string::__init(v43, "Curve", 5u); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v32, (float)((float)(*((float *)this + 139) * 0.5) + (float)(v23 * 0.5)) - 80.0, (float)((float)(*((float *)this + 140) * 0.5) + (float)(v24 * 0.5)) - 20.0); SetupTriggerPopup::createToggleValueControl((int)this, 378, (int)v43, (const cocos2d::CCPoint *)&v32, 0, 0, 0, 1.0); std::string::~string((int)v43); if ( v7 ) { memset(v44, 0, sizeof(v44)); std::string::__init(v44, "GroupID", 7u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v32, (float)(v23 * 0.5) - 135.0, (float)(v24 * 0.5) + 105.0); IDNameInput::create((int)this, (int)(this + 110), 1, 51, (int)v44, (int)&v32, 0.6, 6, 0, 1, 0); std::string::~string((int)v44); } memset(v45, 0, sizeof(v45)); std::string::__init(v45, "Duration", 8u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v31, -85.0, 65.0); cocos2d::CCPoint::operator+(&v32, v25, v31); SetupTriggerPopup::createValueControlAdvanced( this, 10, (unsigned __int8 *)v45, (int)&v32, 1060320051, 0, 1, 6, 0, 0, 0x40000000, 0, 0, 0, 2, 0); std::string::~string((int)v45); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v31, 90.0, 70.0); cocos2d::CCPoint::operator+(&v32, v25, v31); SetupTriggerPopup::createEasingControls((int)this, (int)&v32, 0.65, 0, 0); memset(v46, 0, sizeof(v46)); std::string::__init(v46, "x360", 4u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v31, -85.0, 10.0); cocos2d::CCPoint::operator+(&v32, v25, v31); SetupTriggerPopup::createValueControlAdvanced( this, 537, (unsigned __int8 *)v46, (int)&v32, 1060320051, 0, 2, 6, 0, -1054867456, COERCE_INT(10.0), 0, 0, 0, 2, 0); std::string::~string((int)v46); v11 = (*((float (__fastcall **)(cocos2d::CCArray **, int))*this + 183))(this, 536); memset(v47, 0, sizeof(v47)); v12 = (int)v11; v13 = (int)v11 == 2; std::string::__init(v47, "CCW", 3u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v31, 40.0, 5.0); cocos2d::CCPoint::operator+(&v32, v25, v31); SetupTriggerPopup::createCustomToggleValueControl( (int)this, 2, v13, 1, (int)v47, (const cocos2d::CCPoint *)&v32, 0, 0, 0); std::string::~string((int)v47); memset(v48, 0, sizeof(v48)); std::string::__init(v48, "CW", 2u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v31, 130.0, 5.0); cocos2d::CCPoint::operator+(&v32, v25, v31); SetupTriggerPopup::createCustomToggleValueControl( (int)this, 1, v12 == 1, 1, (int)v48, (const cocos2d::CCPoint *)&v32, 0, 0, 0); std::string::~string((int)v48); memset(v49, 0, sizeof(v49)); std::string::__init(v49, "SpawnGID", 8u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v31, -110.0, -60.0); cocos2d::CCPoint::operator+(&v32, v25, v31); IDNameInput::create((int)this, (int)(this + 110), 1, 71, (int)v49, (int)&v32, 0.7, 6, 0, 1, 0); std::string::~string((int)v49); memset(v50, 0, sizeof(v50)); std::string::__init(v50, "SpawnDelay", 0xAu); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v31, 30.0, -50.0); cocos2d::CCPoint::operator+(&v32, v25, v31); SetupTriggerPopup::createValueControlAdvanced( this, 557, (unsigned __int8 *)v50, (int)&v32, 1060320051, 0, 1, 6, 0, 0, 0x40000000, 0, 0, 0, 2, 0); std::string::~string((int)v50); memset(v51, 0, sizeof(v51)); std::string::__init(v51, "Prox", 4u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v31, 130.0, -60.0); cocos2d::CCPoint::operator+(&v32, v25, v31); SetupTriggerPopup::createToggleValueControl((int)this, 377, (int)v51, (const cocos2d::CCPoint *)&v32, 1, 0, 0, 1.0); std::string::~string((int)v51); memset(v52, 0, sizeof(v52)); std::string::__init(v52, "Close\nLoop", 0xAu); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v32, (float)(v23 * 0.5) - 200.0, (float)((float)(v24 * 0.5) - (float)(*((float *)this + 140) * 0.5)) + 20.0); SetupTriggerPopup::createToggleValueControl((int)this, 376, (int)v52, (const cocos2d::CCPoint *)&v32, 0, 0, 0, 1.0); std::string::~string((int)v52); memset(v53, 0, sizeof(v53)); std::string::__init(v53, "Preview\nArt", 0xBu); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v32, (float)(v23 * 0.5) - 120.0, (float)((float)(v24 * 0.5) - (float)(*((float *)this + 140) * 0.5)) + 20.0); SetupTriggerPopup::createToggleValueControl((int)this, 380, (int)v53, (const cocos2d::CCPoint *)&v32, 0, 0, 0, 1.0); std::string::~string((int)v53); memset(v54, 0, sizeof(v54)); std::string::__init(v54, "Ref\nOnly", 8u); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v32, (float)(v23 * 0.5) + 60.0, (float)((float)(v24 * 0.5) - (float)(*((float *)this + 140) * 0.5)) + 20.0); SetupTriggerPopup::createToggleValueControl((int)this, 375, (int)v54, (const cocos2d::CCPoint *)&v32, 0, 0, 0, 1.0); std::string::~string((int)v54); memset(v55, 0, sizeof(v55)); std::string::__init(v55, "Auto\nLayer", 0xAu); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v32, (float)(v23 * 0.5) + 140.0, (float)((float)(v24 * 0.5) - (float)(*((float *)this + 140) * 0.5)) + 20.0); SetupTriggerPopup::createToggleValueControl((int)this, 459, (int)v55, (const cocos2d::CCPoint *)&v32, 0, 0, 0, 1.0); std::string::~string((int)v55); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v26, (float)(v23 * 0.5) - 190.0, (float)(v24 * 0.5) + 60.0); memset(v56, 0, sizeof(v56)); std::string::__init(v56, "Select\nAll", 0xAu); memset(v57, 0, sizeof(v57)); std::string::__init(v57, &unk_B6B226, 0); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v32, v26, v27); SetupTriggerPopup::createCustomButton((int)this, 1, (int)v56, v57, (int)&v32, 0.7, 1053609165, 1, 0, 0); std::string::~string((int)v57); std::string::~string((int)v56); memset(v58, 0, sizeof(v58)); std::string::__init(v58, "Update\nArt", 0xAu); memset(v59, 0, sizeof(v59)); std::string::__init(v59, &unk_B6B226, 0); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v32, v26, v27 - 46.0); SetupTriggerPopup::createCustomButton((int)this, 2, (int)v58, v59, (int)&v32, 0.7, 1053609165, 1, 0, 0); std::string::~string((int)v59); std::string::~string((int)v58); memset(v60, 0, sizeof(v60)); std::string::__init(v60, "Dup\nAnim", 8u); memset(v61, 0, sizeof(v61)); std::string::__init(v61, &unk_B6B226, 0); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v32, v26, v27 - 92.0); SetupTriggerPopup::createCustomButton((int)this, 3, (int)v60, v61, (int)&v32, 0.7, 1053609165, 1, 0, 0); std::string::~string((int)v61); std::string::~string((int)v60); memset(v62, 0, sizeof(v62)); std::string::__init(v62, "Reverse\nOrder", 0xDu); memset(v63, 0, sizeof(v63)); std::string::__init(v63, &unk_B6B226, 0); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v32, v26, v27 - 138.0); SetupTriggerPopup::createCustomButton((int)this, 4, (int)v62, v63, (int)&v32, 0.7, 1053609165, 1, 0, 0); std::string::~string((int)v63); std::string::~string((int)v62); v64 = 0; v65 = 0; v66 = nullptr; std::string::__init(&v64, "LineOpacity", 0xBu); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v32, (float)((float)(*((float *)this + 139) * 0.5) + (float)(v23 * 0.5)) - 90.0, (float)((float)(v24 * 0.5) - (float)(*((float *)this + 140) * 0.5)) + 50.0); SetupTriggerPopup::createValueControlAdvanced( this, 524, (unsigned __int8 *)&v64, (int)&v32, 1058642330, 0, 1, 1, 0, 0, 1065353216, 0, 0, 1, 2, 0); v14 = (cocos2d::CCArray *)std::string::~string((int)&v64); v15 = (cocos2d::CCObject *)cocos2d::CCArray::create(v14); *(this + 178) = v15; cocos2d::CCObject::retain(v15); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v28, (float)((float)(v23 * 0.5) + 85.0) + 110.0, (float)(v24 * 0.5) + 50.0); for ( i = 0; i != 3; ++i ) { v64 = 0; v65 = 0; v66 = nullptr; std::string::__init(&v64, "NA", 2u); if ( i == 1 ) { v17 = "Even"; } else if ( i == 2 ) { v17 = "Dist"; } else { v17 = "Time"; } std::string::assign(&v64, v17); v67 = 0; v68 = 0; v69 = nullptr; if ( (v64 & 1) != 0 ) { std::string::__init(&v67, v66, v65); } else { v67 = v64; v68 = v65; v69 = v66; } v32 = SetupKeyframePopup::onTimeMode; v33 = 0; v22 = *(this + 111); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v29, 0.0, (float)(-50 * i)); cocos2d::CCPoint::operator+(v30, v28, v29); v18 = (int)*(this + 115); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v31, 0.0, 4.0); ToggleButton = GameToolbox::createToggleButton( (int)&v67, (int)v32, v33, 0, v22, (int)v30, (int)this, v18, 0.7, 0.35, 110.0, (int)v31, "bigFont.fnt", 1, 0, nullptr); std::string::~string((int)&v67); *((_BYTE *)ToggleButton + 309) = 1; (*(void (__fastcall **)(cocos2d::CCObject *, int))(*(_DWORD *)ToggleButton + 36))(ToggleButton, i); cocos2d::CCArray::addObject(*(this + 178), ToggleButton); std::string::~string((int)&v64); } SetupKeyframePopup::updateTimeModeButtons((SetupKeyframePopup *)this); SetupTriggerPopup::postSetup((SetupTriggerPopup *)this); std::string::~string((int)&v34); } return v21; }
GD Web Decomp Icon

GD Web Decomp

Raw Source