// // SetupKeyframeAnimPopup::init from 0x573498 to 0x5739e0 (1352 bytes) // // 1 xrefs: // > SetupKeyframeAnimPopup::create @ 0x573a66 // // 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) { _BOOL4 v4; // r11 cocos2d::CCDirector *v5; // r0 int v6; // r2 bool v7; // r3 _BYTE v9[4]; // [sp+38h] [bp-2Ch] BYREF cocos2d::CCSize v10; // [sp+3Ch] [bp-28h] BYREF cocos2d::CCPoint v11; // [sp+44h] [bp-20h] BYREF cocos2d::CCPoint v12; // [sp+4Ch] [bp-18h] BYREF cocos2d::CCPoint v13; // [sp+54h] [bp-10h] BYREF v4 = SetupTriggerPopup::init(a1, a2, a3, 340.0, 280.0, 1); if ( v4 ) { SetupTriggerPopup::preSetup(a1); sub_776584((int)&v13, "Setup Keyframe Anim"); SetupTriggerPopup::addTitle((int)a1); sub_774008(&v13); sub_776584((int)&v13, "OK"); SetupTriggerPopup::addCloseButton((unsigned int)a1, (ButtonSprite **)&v13); sub_774008(&v13); sub_776584((int)&v12, "Help"); sub_776584( (int)&v13, "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((int)a1, (int)&v12, (int)&v13, 1065353216); sub_774008(&v13); sub_774008(&v12); SetupTriggerPopup::createMultiTriggerItemsDefault(a1); v5 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(&v10, v5); cocos2d::CCPoint::CCPoint(&v11, v10.width * 0.5, (float)(v10.height * 0.5) + 60.0); sub_776584((int)v9, "Animation Group ID"); cocos2d::CCPoint::CCPoint(&v12, 0.0, 0.0); cocos2d::CCPoint::operator+(&v13, &v11, &v12); SetupTriggerPopup::createValueControlAdvanced( (unsigned int)a1, 76, (int)v9, &v13, (cocos2d::CCZone *)0x3F4CCCCD, 1, Uint, 6, 1, nullptr, 9999.0, 0, 0, 0, 2, 0); sub_774008(v9); sub_776584((int)v9, "Target ID"); cocos2d::CCPoint::CCPoint(&v12, -85.0, -70.0); cocos2d::CCPoint::operator+(&v13, &v11, &v12); SetupTriggerPopup::createValueControlAdvanced( (unsigned int)a1, 51, (int)v9, &v13, (cocos2d::CCZone *)0x3F4CCCCD, 1, Uint, 6, 1, nullptr, 9999.0, 0, 0, 0, 2, 0); sub_774008(v9); sub_776584((int)v9, "Parent ID"); cocos2d::CCPoint::CCPoint(&v12, 85.0, -70.0); cocos2d::CCPoint::operator+(&v13, &v11, &v12); SetupTriggerPopup::createValueControlAdvanced( (unsigned int)a1, 71, (int)v9, &v13, (cocos2d::CCZone *)0x3F4CCCCD, 1, Uint, 6, 1, nullptr, 9999.0, 0, 0, 0, 2, 0); sub_774008(v9); cocos2d::CCPoint::CCPoint(&v13, v10.width * 0.5, (float)(v10.height * 0.5) + 95.0); cocos2d::CCPoint::operator=((PlayerObject *)&v11, COERCE_FLOAT(&v13), v6, v7); sub_776584((int)v9, "Time Mod:"); cocos2d::CCPoint::CCPoint(&v12, 0.0, 0.0); cocos2d::CCPoint::operator+(&v13, &v11, &v12); SetupTriggerPopup::createValueControlAdvanced( (unsigned int)a1, 520, (int)v9, &v13, (cocos2d::CCZone *)0x3F333333, 0, Float, 6, 0, nullptr, 1.0, 1, 0, 1, 2, 0); sub_774008(v9); sub_776584((int)v9, "Position X Mod:"); cocos2d::CCPoint::CCPoint(&v12, 0.0, -30.0); cocos2d::CCPoint::operator+(&v13, &v11, &v12); SetupTriggerPopup::createValueControlAdvanced( (unsigned int)a1, 521, (int)v9, &v13, (cocos2d::CCZone *)0x3F333333, 0, Float, 6, 0, (cocos2d::CCFloat *)0xC0000000, 2.0, 1, 0, 1, 2, 0); sub_774008(v9); sub_776584((int)v9, "Position Y Mod:"); cocos2d::CCPoint::CCPoint(&v12, 0.0, -60.0); cocos2d::CCPoint::operator+(&v13, &v11, &v12); SetupTriggerPopup::createValueControlAdvanced( (unsigned int)a1, 545, (int)v9, &v13, (cocos2d::CCZone *)0x3F333333, 0, Float, 6, 0, (cocos2d::CCFloat *)0xC0000000, 2.0, 1, 0, 1, 2, 0); sub_774008(v9); sub_776584((int)v9, "Rotation mod:"); cocos2d::CCPoint::CCPoint(&v12, 0.0, -90.0); cocos2d::CCPoint::operator+(&v13, &v11, &v12); SetupTriggerPopup::createValueControlAdvanced( (unsigned int)a1, 522, (int)v9, &v13, (cocos2d::CCZone *)0x3F333333, 0, Float, 6, 0, (cocos2d::CCFloat *)0xC0000000, 2.0, 1, 0, 1, 2, 0); sub_774008(v9); sub_776584((int)v9, "Scale X Mod:"); cocos2d::CCPoint::CCPoint(&v12, 0.0, -120.0); cocos2d::CCPoint::operator+(&v13, &v11, &v12); SetupTriggerPopup::createValueControlAdvanced( (unsigned int)a1, 523, (int)v9, &v13, (cocos2d::CCZone *)0x3F333333, 0, Float, 6, 0, (cocos2d::CCFloat *)0xC0000000, 2.0, 1, 0, 1, 2, 0); sub_774008(v9); sub_776584((int)v9, "Scale Y Mod:"); cocos2d::CCPoint::CCPoint(&v12, 0.0, -150.0); cocos2d::CCPoint::operator+(&v13, &v11, &v12); SetupTriggerPopup::createValueControlAdvanced( (unsigned int)a1, 546, (int)v9, &v13, (cocos2d::CCZone *)0x3F333333, 0, Float, 6, 0, (cocos2d::CCFloat *)0xC0000000, 2.0, 1, 0, 1, 2, 0); sub_774008(v9); 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