// // SetupKeyframeAnimPopup::init from 0xa3a3bc to 0xa3af88 (3020 bytes) // // 2 xrefs: // > SetupKeyframeAnimPopup::create @ 0xa3b150 // > @ 0x6ee08 // // 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 SetupKeyframeAnimPopup::init(SetupKeyframeAnimPopup *a1, EffectGameObject *a2, cocos2d::CCArray *a3) { bool v4; // w27 void *v6; // x0 __int64 v7; // x2 __int64 v8; // x3 __int64 v9; // x4 __int64 v10; // x5 const char *v11; // x6 void *v12; // x0 void *v13; // x0 void *v14; // x0 cocos2d::CCDirector *v15; // x0 float v16; // s3 float v17; // s4 void *v18; // x0 float v19; // s3 float v20; // s4 void *v21; // x0 float v22; // s3 float v23; // s4 void *v24; // x0 float v25; // s0 float v26; // s1 float v27; // s3 float v28; // s4 void *v29; // x0 float v30; // s3 float v31; // s4 void *v32; // x0 float v33; // s3 float v34; // s4 void *v35; // x0 float v36; // s3 float v37; // s4 void *v38; // x0 float v39; // s3 float v40; // s4 void *v41; // x0 float v42; // s3 float v43; // s4 void *v44; // x19 unsigned int *v45; // x1 int v46; // w2 unsigned int *v47; // x1 int v48; // w2 unsigned int *v49; // x1 int v50; // w2 unsigned int *v51; // x1 int v52; // w2 unsigned int *v53; // x1 int v54; // w2 unsigned int *v55; // x1 int v56; // w2 unsigned int *v57; // x1 int v58; // w2 unsigned int *v59; // x1 int v60; // w2 unsigned int *v61; // x1 int v62; // w2 unsigned int *v63; // x1 int v64; // w2 unsigned int *v65; // x1 int v66; // w2 unsigned int *v67; // x1 int v68; // w2 unsigned int *v69; // x21 int v70; // w0 _QWORD v71[2]; // [xsp+30h] [xbp+0h] BYREF float v72; // [xsp+C0h] [xbp+90h] float v73; // [xsp+C4h] [xbp+94h] cocos2d::CCPoint v74; // [xsp+C8h] [xbp+98h] BYREF cocos2d::CCPoint v75; // [xsp+D0h] [xbp+A0h] BYREF cocos2d::CCPoint v76; // [xsp+D8h] [xbp+A8h] BYREF cocos2d::CCPoint v77; // [xsp+E0h] [xbp+B0h] BYREF cocos2d::CCPoint v78; // 0:s0.4,4:s1.4 cocos2d::CCPoint v79; // 0:s0.4,4:s1.4 cocos2d::CCPoint v80; // 0:s0.4,4:s1.4 cocos2d::CCPoint v81; // 0:s0.4,4:s1.4 cocos2d::CCPoint v82; // 0:s0.4,4:s1.4 cocos2d::CCPoint v83; // 0:s0.4,4:s1.4 cocos2d::CCPoint v84; // 0:s0.4,4:s1.4 cocos2d::CCPoint v85; // 0:s0.4,4:s1.4 cocos2d::CCPoint v86; // 0:s0.4,4:s1.4 v4 = SetupTriggerPopup::init(a1, a2, a3, 340.0, 280.0, 1); if ( v4 ) { SetupTriggerPopup::preSetup(a1); sub_D153B8((unsigned int)v71 + 176, "Setup Keyframe Anim"); SetupTriggerPopup::addTitle((__int64)a1); v6 = (void *)(*(_QWORD *)&v77 - 24LL); if ( (__int64 *)(*(_QWORD *)&v77 - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v45 = (unsigned int *)(*(_QWORD *)&v77 - 8LL); do v46 = __ldaxr(v45); while ( __stlxr(v46 - 1, v45) ); } else { v46 = *(_DWORD *)(*(_QWORD *)&v77 - 8LL); *(_DWORD *)(*(_QWORD *)&v77 - 8LL) = v46 - 1; } if ( v46 <= 0 ) operator delete(v6); } sub_D153B8((unsigned int)v71 + 176, "OK"); SetupTriggerPopup::addCloseButton((__int64)a1, (ButtonSprite **)&v77, v7, v8, v9, v10, v11); v12 = (void *)(*(_QWORD *)&v77 - 24LL); if ( (__int64 *)(*(_QWORD *)&v77 - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v47 = (unsigned int *)(*(_QWORD *)&v77 - 8LL); do v48 = __ldaxr(v47); while ( __stlxr(v48 - 1, v47) ); } else { v48 = *(_DWORD *)(*(_QWORD *)&v77 - 8LL); *(_DWORD *)(*(_QWORD *)&v77 - 8LL) = v48 - 1; } if ( v48 <= 0 ) operator delete(v12); } sub_D153B8((int)&v76, "Help"); sub_D153B8( (int)&v77, "Sets up a keyframe animation using Animation Group ID.\n" "Use Target ID to specify a different target than the one set in the Keyframe trigger.\n" "The animation itself is made in the Keyframe trigger.\n" "By default, objects choose their own center for scaling and rotation, but you can set one using Parent ID." "\n" "On page 2, you can put modifiers for the keyframe sequence."); SetupTriggerPopup::addHelpButton((__int64)a1, 1.0); v13 = (void *)(*(_QWORD *)&v77 - 24LL); if ( (__int64 *)(*(_QWORD *)&v77 - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v55 = (unsigned int *)(*(_QWORD *)&v77 - 8LL); do v56 = __ldaxr(v55); while ( __stlxr(v56 - 1, v55) ); } else { v56 = *(_DWORD *)(*(_QWORD *)&v77 - 8LL); *(_DWORD *)(*(_QWORD *)&v77 - 8LL) = v56 - 1; } if ( v56 <= 0 ) operator delete(v13); } v14 = (void *)(*(_QWORD *)&v76 - 24LL); if ( (__int64 *)(*(_QWORD *)&v76 - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v51 = (unsigned int *)(*(_QWORD *)&v76 - 8LL); do v52 = __ldaxr(v51); while ( __stlxr(v52 - 1, v51) ); } else { v52 = *(_DWORD *)(*(_QWORD *)&v76 - 8LL); *(_DWORD *)(*(_QWORD *)&v76 - 8LL) = v52 - 1; } if ( v52 <= 0 ) operator delete(v14); } SetupTriggerPopup::createMultiTriggerItemsDefault(a1); v15 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(v15); cocos2d::CCPoint::CCPoint(&v74, v72 * 0.5, (float)(v73 * 0.5) + 60.0); sub_D153B8((int)&v77, "Animation Group ID"); cocos2d::CCPoint::CCPoint(&v75, 0.0, 0.0); cocos2d::CCPoint::operator+(&v76, &v74, &v75); v78.y = 0.0; v78.x = 0.8; SetupTriggerPopup::createValueControlAdvanced( a1, 0x4Cu, v78, 9999.0, v16, v17, (std::string)&v77, &v76, Float, Uint, 6, 1u, 0, 0, 0, 2, 0); v18 = (void *)(*(_QWORD *)&v77 - 24LL); if ( (__int64 *)(*(_QWORD *)&v77 - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v59 = (unsigned int *)(*(_QWORD *)&v77 - 8LL); do v60 = __ldaxr(v59); while ( __stlxr(v60 - 1, v59) ); } else { v60 = *(_DWORD *)(*(_QWORD *)&v77 - 8LL); *(_DWORD *)(*(_QWORD *)&v77 - 8LL) = v60 - 1; } if ( v60 <= 0 ) operator delete(v18); } sub_D153B8((int)&v77, "Target ID"); cocos2d::CCPoint::CCPoint(&v75, -85.0, -70.0); cocos2d::CCPoint::operator+(&v76, &v74, &v75); v79.x = 0.8; v79.y = 0.0; SetupTriggerPopup::createValueControlAdvanced( a1, 0x33u, v79, 9999.0, v19, v20, (std::string)&v77, &v76, Float, Uint, 6, 1u, 0, 0, 0, 2, 0); v21 = (void *)(*(_QWORD *)&v77 - 24LL); if ( (__int64 *)(*(_QWORD *)&v77 - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v49 = (unsigned int *)(*(_QWORD *)&v77 - 8LL); do v50 = __ldaxr(v49); while ( __stlxr(v50 - 1, v49) ); } else { v50 = *(_DWORD *)(*(_QWORD *)&v77 - 8LL); *(_DWORD *)(*(_QWORD *)&v77 - 8LL) = v50 - 1; } if ( v50 <= 0 ) operator delete(v21); } sub_D153B8((int)&v77, "Parent ID"); cocos2d::CCPoint::CCPoint(&v75, 85.0, -70.0); cocos2d::CCPoint::operator+(&v76, &v74, &v75); v80.x = 0.8; v80.y = 0.0; SetupTriggerPopup::createValueControlAdvanced( a1, 0x47u, v80, 9999.0, v22, v23, (std::string)&v77, &v76, Float, Uint, 6, 1u, 0, 0, 0, 2, 0); v24 = (void *)(*(_QWORD *)&v77 - 24LL); if ( (__int64 *)(*(_QWORD *)&v77 - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v63 = (unsigned int *)(*(_QWORD *)&v77 - 8LL); do v64 = __ldaxr(v63); while ( __stlxr(v64 - 1, v63) ); } else { v64 = *(_DWORD *)(*(_QWORD *)&v77 - 8LL); *(_DWORD *)(*(_QWORD *)&v77 - 8LL) = v64 - 1; } if ( v64 <= 0 ) operator delete(v24); } cocos2d::CCPoint::CCPoint(&v77, v72 * 0.5, (float)(v73 * 0.5) + 95.0); cocos2d::CCPoint::operator=(&v74, v25, v26); sub_D153B8((int)&v77, "Time Mod:"); cocos2d::CCPoint::CCPoint(&v75, 0.0, 0.0); cocos2d::CCPoint::operator+(&v76, &v74, &v75); v81.y = 0.0; v81.x = 0.7; SetupTriggerPopup::createValueControlAdvanced( a1, 0x208u, v81, 1.0, v27, v28, (std::string)&v77, &v76, (InputValueType)0, Float, 6, 0, 1, 0, 1, 2, 0); v29 = (void *)(*(_QWORD *)&v77 - 24LL); if ( (__int64 *)(*(_QWORD *)&v77 - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v57 = (unsigned int *)(*(_QWORD *)&v77 - 8LL); do v58 = __ldaxr(v57); while ( __stlxr(v58 - 1, v57) ); } else { v58 = *(_DWORD *)(*(_QWORD *)&v77 - 8LL); *(_DWORD *)(*(_QWORD *)&v77 - 8LL) = v58 - 1; } if ( v58 <= 0 ) operator delete(v29); } sub_D153B8((int)&v77, "Position X Mod:"); cocos2d::CCPoint::CCPoint(&v75, 0.0, -30.0); cocos2d::CCPoint::operator+(&v76, &v74, &v75); v82.x = 0.7; v82.y = -2.0; SetupTriggerPopup::createValueControlAdvanced( a1, 0x209u, v82, 2.0, v30, v31, (std::string)&v77, &v76, (InputValueType)0, Float, 6, 0, 1, 0, 1, 2, 0); v32 = (void *)(*(_QWORD *)&v77 - 24LL); if ( (__int64 *)(*(_QWORD *)&v77 - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v67 = (unsigned int *)(*(_QWORD *)&v77 - 8LL); do v68 = __ldaxr(v67); while ( __stlxr(v68 - 1, v67) ); } else { v68 = *(_DWORD *)(*(_QWORD *)&v77 - 8LL); *(_DWORD *)(*(_QWORD *)&v77 - 8LL) = v68 - 1; } if ( v68 <= 0 ) operator delete(v32); } sub_D153B8((int)&v77, "Position Y Mod:"); cocos2d::CCPoint::CCPoint(&v75, 0.0, -60.0); cocos2d::CCPoint::operator+(&v76, &v74, &v75); v83.x = 0.7; v83.y = -2.0; SetupTriggerPopup::createValueControlAdvanced( a1, 0x221u, v83, 2.0, v33, v34, (std::string)&v77, &v76, (InputValueType)0, Float, 6, 0, 1, 0, 1, 2, 0); v35 = (void *)(*(_QWORD *)&v77 - 24LL); if ( (__int64 *)(*(_QWORD *)&v77 - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v53 = (unsigned int *)(*(_QWORD *)&v77 - 8LL); do v54 = __ldaxr(v53); while ( __stlxr(v54 - 1, v53) ); } else { v54 = *(_DWORD *)(*(_QWORD *)&v77 - 8LL); *(_DWORD *)(*(_QWORD *)&v77 - 8LL) = v54 - 1; } if ( v54 <= 0 ) operator delete(v35); } sub_D153B8((int)&v77, "Rotation mod:"); cocos2d::CCPoint::CCPoint(&v75, 0.0, -90.0); cocos2d::CCPoint::operator+(&v76, &v74, &v75); v84.x = 0.7; v84.y = -2.0; SetupTriggerPopup::createValueControlAdvanced( a1, 0x20Au, v84, 2.0, v36, v37, (std::string)&v77, &v76, (InputValueType)0, Float, 6, 0, 1, 0, 1, 2, 0); v38 = (void *)(*(_QWORD *)&v77 - 24LL); if ( (__int64 *)(*(_QWORD *)&v77 - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v65 = (unsigned int *)(*(_QWORD *)&v77 - 8LL); do v66 = __ldaxr(v65); while ( __stlxr(v66 - 1, v65) ); } else { v66 = *(_DWORD *)(*(_QWORD *)&v77 - 8LL); *(_DWORD *)(*(_QWORD *)&v77 - 8LL) = v66 - 1; } if ( v66 <= 0 ) operator delete(v38); } sub_D153B8((int)&v77, "Scale X Mod:"); cocos2d::CCPoint::CCPoint(&v75, 0.0, -120.0); cocos2d::CCPoint::operator+(&v76, &v74, &v75); v85.x = 0.7; v85.y = -2.0; SetupTriggerPopup::createValueControlAdvanced( a1, 0x20Bu, v85, 2.0, v39, v40, (std::string)&v77, &v76, (InputValueType)0, Float, 6, 0, 1, 0, 1, 2, 0); v41 = (void *)(*(_QWORD *)&v77 - 24LL); if ( (__int64 *)(*(_QWORD *)&v77 - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v61 = (unsigned int *)(*(_QWORD *)&v77 - 8LL); do v62 = __ldaxr(v61); while ( __stlxr(v62 - 1, v61) ); } else { v62 = *(_DWORD *)(*(_QWORD *)&v77 - 8LL); *(_DWORD *)(*(_QWORD *)&v77 - 8LL) = v62 - 1; } if ( v62 <= 0 ) operator delete(v41); } sub_D153B8((int)&v77, "Scale Y Mod:"); cocos2d::CCPoint::CCPoint(&v75, 0.0, -150.0); cocos2d::CCPoint::operator+(&v76, &v74, &v75); v86.x = 0.7; v86.y = -2.0; SetupTriggerPopup::createValueControlAdvanced( a1, 0x222u, v86, 2.0, v42, v43, (std::string)&v77, &v76, (InputValueType)0, Float, 6, 0, 1, 0, 1, 2, 0); v44 = (void *)(*(_QWORD *)&v77 - 24LL); if ( (__int64 *)(*(_QWORD *)&v77 - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v69 = (unsigned int *)(*(_QWORD *)&v77 - 8LL); do v70 = __ldaxr(v69); while ( __stlxr(v70 - 1, v69) ); } else { v70 = *(_DWORD *)(*(_QWORD *)&v77 - 8LL); *(_DWORD *)(*(_QWORD *)&v77 - 8LL) = v70 - 1; } if ( v70 <= 0 ) operator delete(v44); } SetupTriggerPopup::createPageButtons(a1, (float)(a1->m_width * 0.5) + 15.0, 1); SetupTriggerPopup::goToPage(a1, 0, 0); SetupTriggerPopup::postSetup(a1); } return v4; }
GD Web Decomp Icon

GD Web Decomp

Raw Source