// // SetupAnimSettingsPopup::init from 0xa9a614 to 0xa9ad24 (1808 bytes) // // 2 xrefs: // > SetupAnimSettingsPopup::create @ 0xa9af68 // > @ 0xa8ce8 // // 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:00:45 +0000 // __int64 __fastcall SetupAnimSettingsPopup::init( SetupAnimSettingsPopup *this, EffectGameObject *a2, cocos2d::CCArray *a3) { unsigned __int8 v4; // w0 unsigned int v5; // w25 cocos2d::CCDirector *v7; // x0 cocos2d::CCDirector *v8; // x0 int v9; // [xsp+20h] [xbp-10h] __int64 v10; // [xsp+A0h] [xbp+70h] BYREF _BYTE v11[8]; // [xsp+A8h] [xbp+78h] BYREF __int64 v12; // [xsp+B0h] [xbp+80h] BYREF _BYTE v13[8]; // [xsp+B8h] [xbp+88h] BYREF __int64 v14; // [xsp+C0h] [xbp+90h] BYREF cocos2d::CCDirector *v15[2]; // [xsp+C8h] [xbp+98h] BYREF void *v16; // [xsp+D8h] [xbp+A8h] __int64 v17; // [xsp+E0h] [xbp+B0h] BYREF __int64 v18; // [xsp+E8h] [xbp+B8h] void *v19; // [xsp+F0h] [xbp+C0h] v4 = SetupTriggerPopup::init(this, a2, a3, 400.0, 240.0, 1, 0.0); v5 = v4; if ( v4 ) { SetupTriggerPopup::preSetup(this); v17 = 0; v18 = 0; v19 = nullptr; std::string::__init(&v17, "Edit Animation Settings", 0x17u); SetupTriggerPopup::addTitle(this, &v17); if ( (v17 & 1) != 0 ) operator delete(v19); v17 = 0; v18 = 0; v19 = nullptr; std::string::__init(&v17, "OK", 2u); SetupTriggerPopup::addCloseButton(this, &v17); if ( (v17 & 1) != 0 ) operator delete(v19); v15[0] = nullptr; v15[1] = nullptr; v16 = nullptr; std::string::__init((__int64 *)v15, "Help", 4u); v17 = 0; v18 = 0; v19 = nullptr; std::string::__init( &v17, "Disable Anim Shine removes the white flash at the start of the animation for some animated objects.\n" "Use Speed lets you set a custom animation speed.\n" "Use Animate On Trigger to toggle on with Animate trigger.\n" "Only If Active only does this if the object is active.\n" "Single Frame lets you select a specific frame of the animation.\n" "Offset Anim will offset the animation the value of single frame.", 0x1BEu); SetupTriggerPopup::addHelpButton(this, v15, &v17, 1.0); if ( (v17 & 1) != 0 ) operator delete(v19); v7 = (cocos2d::CCDirector *)LOBYTE(v15[0]); if ( ((__int64)v15[0] & 1) != 0 ) operator delete(v16); v8 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v7); cocos2d::CCDirector::getWinSize(&v10, v8); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v11, *(float *)&v10 * 0.5, *((float *)&v10 + 1) * 0.5); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v14, -40.0, 60.0); cocos2d::CCPoint::operator+(&v12, v11); v17 = 0; v18 = 0; v19 = nullptr; std::string::__init(&v17, "Randomize\nStart", 0xFu); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v13, -125.0, 0.0); cocos2d::CCPoint::operator+(&v14, &v12); SetupTriggerPopup::createToggleValueControl(this, 106, &v17, &v14, 0, 0, 0, 1.0); if ( (v17 & 1) != 0 ) operator delete(v19); v17 = 0; v18 = 0; v19 = nullptr; std::string::__init(&v17, "Use\nSpeed", 9u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v13, 0.0, 0.0); cocos2d::CCPoint::operator+(&v14, &v12); SetupTriggerPopup::createToggleValueControl(this, 122, &v17, &v14, 0, 0, 0, 1.0); if ( (v17 & 1) != 0 ) operator delete(v19); v17 = 0; v18 = 0; v19 = nullptr; std::string::__init(&v17, "Animate\non Trigger", 0x12u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v13, 125.0, 0.0); cocos2d::CCPoint::operator+(&v14, &v12); SetupTriggerPopup::createToggleValueControl(this, 123, &v17, &v14, 0, 0, 0, 1.0); if ( (v17 & 1) != 0 ) operator delete(v19); v17 = 0; v18 = 0; v19 = nullptr; std::string::__init(&v17, "Disable\ndelayed\nloop", 0x14u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v13, -125.0, -40.0); cocos2d::CCPoint::operator+(&v14, &v12); SetupTriggerPopup::createToggleValueControl(this, 126, &v17, &v14, 0, 0, 0, 1.0); if ( (v17 & 1) != 0 ) operator delete(v19); v17 = 0; v18 = 0; v19 = nullptr; std::string::__init(&v17, "Disable\nAnimShine", 0x11u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v13, 0.0, -40.0); cocos2d::CCPoint::operator+(&v14, &v12); SetupTriggerPopup::createToggleValueControl(this, 127, &v17, &v14, 0, 0, 0, 1.0); if ( (v17 & 1) != 0 ) operator delete(v19); v17 = 0; v18 = 0; v19 = nullptr; std::string::__init(&v17, "Only if\nactive", 0xEu); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v13, 125.0, -40.0); cocos2d::CCPoint::operator+(&v14, &v12); SetupTriggerPopup::createToggleValueControl(this, 214, &v17, &v14, 0, 0, 0, 1.0); if ( (v17 & 1) != 0 ) operator delete(v19); v17 = 0; v18 = 0; v19 = nullptr; std::string::__init(&v17, "Speed:", 6u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v13, -100.0, -30.0); cocos2d::CCPoint::operator+(&v14, v11); SetupTriggerPopup::createValueControlAdvanced(this, 107, &v17, &v14, 0, 1, 6, 0, 0.8, -2.0, 2.0, 0, 0, 0, 2, 0); if ( (v17 & 1) != 0 ) operator delete(v19); v17 = 0; v18 = 0; v19 = nullptr; std::string::__init(&v17, "Single Frame:", 0xDu); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v13, 100.0, -45.0); cocos2d::CCPoint::operator+(&v14, v11); LOBYTE(v9) = 0; SetupTriggerPopup::createValueControlAdvanced(this, 462, &v17, &v14, 1, 3, 3, 1, 0.8, 0.0, 20.0, 0, 0, 0, 2, v9); if ( (v17 & 1) != 0 ) operator delete(v19); v17 = 0; v18 = 0; v19 = nullptr; std::string::__init(&v17, "Offset\nAnim", 0xBu); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v13, 125.0, -155.0); cocos2d::CCPoint::operator+(&v14, &v12); SetupTriggerPopup::createToggleValueControl(this, 592, &v17, &v14, 0, 0, 0, 1.0); if ( (v17 & 1) != 0 ) operator delete(v19); SetupTriggerPopup::postSetup(this); } return v5; }
GD Web Decomp Icon

GD Web Decomp

Raw Source