// // SetupAnimSettingsPopup::init from 0x14040a290 to 0x14040ab0c (2172 bytes) // // 3 xrefs: // > SetupAnimSettingsPopup::create @ 0x14040a24e // > @ 0x1406d8ab0 // > @ 0x1406d8abc // // 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 // // Hidden C++ exception states: #wind=3 bool SetupAnimSettingsPopup::init(SetupAnimSettingsPopup *a1, EffectGameObject *a2, cocos2d::CCArray *a3) { bool result; // al _QWORD *v5; // r9 _QWORD *v6; // rcx const char *v7; // rdx __int64 v8; // r8 double v9; // xmm0_8 __int64 v10; // rcx cocos2d::CCDirector *v11; // rax double v12; // xmm0_8 char v13; // [rsp+80h] [rbp-88h] __int64 v14; // [rsp+80h] [rbp-88h] __int128 v15; // [rsp+88h] [rbp-80h] BYREF __int64 v16; // [rsp+98h] [rbp-70h] __int64 v17; // [rsp+A0h] [rbp-68h] _QWORD v18[2]; // [rsp+A8h] [rbp-60h] BYREF __int128 *v19; // [rsp+B8h] [rbp-50h] _BYTE v20[8]; // [rsp+C0h] [rbp-48h] BYREF float v21; // [rsp+C8h] [rbp-40h] __int128 v22; // [rsp+D0h] [rbp-38h] BYREF __int64 v23; // [rsp+E0h] [rbp-28h] __int64 v24; // [rsp+E8h] [rbp-20h] char v25; // [rsp+160h] [rbp+58h] BYREF result = SetupTriggerPopup::init(a1, a2, a3, 400.0, 240.0, 1); if ( result ) { a1->m_disableTextDelegate = 1; a1->determineStartValues(a1); v15 = 0; *(_QWORD *)&v15 = sub_14003AA10(0x20u); v16 = 23; v17 = 31; strcpy((char *)v15, "Edit Animation Settings"); SetupTriggerPopup::addTitle(a1, &v15); v15 = 0; v16 = 2; v17 = 15; strcpy((char *)&v15, "OK"); SetupTriggerPopup::addCloseButton(a1, &v15); v18[0] = &v15; v15 = 0; v16 = 0; v17 = 15; v5 = sub_14003AA10(0x1C0u); *(_QWORD *)&v15 = v5; v16 = 446; v17 = 447; v6 = v5; v7 = "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."; v8 = 3; do { *(_OWORD *)v6 = *(_OWORD *)v7; *((_OWORD *)v6 + 1) = *((_OWORD *)v7 + 1); *((_OWORD *)v6 + 2) = *((_OWORD *)v7 + 2); *((_OWORD *)v6 + 3) = *((_OWORD *)v7 + 3); *((_OWORD *)v6 + 4) = *((_OWORD *)v7 + 4); *((_OWORD *)v6 + 5) = *((_OWORD *)v7 + 5); *((_OWORD *)v6 + 6) = *((_OWORD *)v7 + 6); v6 += 16; *((_OWORD *)v6 - 1) = *((_OWORD *)v7 + 7); v7 += 128; --v8; } while ( v8 ); *(_OWORD *)v6 = *(_OWORD *)v7; *((_OWORD *)v6 + 1) = *((_OWORD *)v7 + 1); *((_OWORD *)v6 + 2) = *((_OWORD *)v7 + 2); v6[6] = *((_QWORD *)v7 + 6); *((_DWORD *)v6 + 14) = *((_DWORD *)v7 + 14); *((_WORD *)v6 + 30) = *((_WORD *)v7 + 30); *((_BYTE *)v5 + 446) = 0; v22 = 0; v23 = 4; v24 = 15; strcpy((char *)&v22, "Help"); v9 = SetupTriggerPopup::addHelpButton(a1, &v22, &v15); v11 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v10); cocos2d::CCDirector::getWinSize(v11); v12 = cocos2d::CCPoint::CCPoint(*(float *)&v9, v21 * 0.5); cocos2d::CCPoint::CCPoint(*(float *)&v12, -40.0); cocos2d::CCPoint::operator+(v20, &v25); v18[1] = &v15; v16 = 15; v17 = 15; strcpy((char *)&v15, "Randomize\nStart"); cocos2d::CCPoint::CCPoint(1.7589351e22, -125.0); cocos2d::CCPoint::operator+(&v25, v18); SetupTriggerPopup::createToggleValueControl( (_DWORD)a1, 106, (unsigned int)&v15, (unsigned int)v18, 0, 0, 0, 1065353216); v19 = &v15; *((_QWORD *)&v15 + 1) = 100; v16 = 9; v17 = 15; *(_QWORD *)&v15 = 0x656570530A657355LL; cocos2d::CCPoint::CCPoint(1.104764e-32, 0.0); cocos2d::CCPoint::operator+(&v25, v18); SetupTriggerPopup::createToggleValueControl( (_DWORD)a1, 122, (unsigned int)&v15, (unsigned int)v18, 0, 0, 0, 1065353216); v19 = &v15; v15 = 0; v16 = 0; v17 = 15; *(_QWORD *)&v15 = sub_14003AA10(0x20u); v16 = 18; v17 = 31; strcpy((char *)v15, "Animate\non Trigger"); cocos2d::CCPoint::CCPoint(4.515206e27, 125.0); cocos2d::CCPoint::operator+(&v25, v18); SetupTriggerPopup::createToggleValueControl( (_DWORD)a1, 123, (unsigned int)&v15, (unsigned int)v18, 0, 0, 0, 1065353216); v19 = &v15; v15 = 0; v16 = 0; v17 = 15; *(_QWORD *)&v15 = sub_14003AA10(0x20u); v16 = 20; v17 = 31; strcpy((char *)v15, "Disable\ndelayed\nloop"); cocos2d::CCPoint::CCPoint(2.80634e20, -125.0); cocos2d::CCPoint::operator+(&v25, v18); SetupTriggerPopup::createToggleValueControl( (_DWORD)a1, 126, (unsigned int)&v15, (unsigned int)v18, 0, 0, 0, 1065353216); v19 = &v15; v15 = 0; v16 = 0; v17 = 15; *(_QWORD *)&v15 = sub_14003AA10(0x20u); v16 = 17; v17 = 31; strcpy((char *)v15, "Disable\nAnimShine"); cocos2d::CCPoint::CCPoint(2.80634e20, 0.0); cocos2d::CCPoint::operator+(&v25, v18); SetupTriggerPopup::createToggleValueControl( (_DWORD)a1, 127, (unsigned int)&v15, (unsigned int)v18, 0, 0, 0, 1065353216); v19 = &v15; v16 = 14; v17 = 15; strcpy((char *)&v15, "Only if\nactive"); HIBYTE(v15) = 0; cocos2d::CCPoint::CCPoint(7.6726211e34, 125.0); cocos2d::CCPoint::operator+(&v25, v18); SetupTriggerPopup::createToggleValueControl( (_DWORD)a1, 214, (unsigned int)&v15, (unsigned int)v18, 0, 0, 0, 1065353216); v19 = &v15; v15 = 0; v16 = 6; v17 = 15; strcpy((char *)&v15, "Speed:"); cocos2d::CCPoint::CCPoint(0.0, -100.0); cocos2d::CCPoint::operator+(v20, v18); v13 = 0; SetupTriggerPopup::createValueControlAdvanced( (_DWORD)a1, 107, (unsigned int)&v15, (unsigned int)v18, 1061997773, 0, 1, 6, 0, -1073741824, 0x40000000, 0, 0, 0, 2, v13); v19 = &v15; v16 = 13; v17 = 15; strcpy((char *)&v15, "Single Frame:"); HIWORD(v15) = 0; cocos2d::CCPoint::CCPoint(1.1258661e24, 100.0); cocos2d::CCPoint::operator+(v20, v18); LOBYTE(v14) = 0; SetupTriggerPopup::createValueControlAdvanced( (_DWORD)a1, 462, (unsigned int)&v15, (unsigned int)v18, 1061997773, 1, 3, 3, 1, 0, 1101004800, 0, 0, 0, 2, v14); v19 = &v15; v16 = 11; v17 = 15; *(_QWORD *)&v15 = 0x410A74657366664FLL; *((_QWORD *)&v15 + 1) = 7170414; cocos2d::CCPoint::CCPoint(1.825414e31, 125.0); cocos2d::CCPoint::operator+(&v25, v18); SetupTriggerPopup::createToggleValueControl( (_DWORD)a1, 592, (unsigned int)&v15, (unsigned int)v18, 0, 0, 0, 1065353216); a1->updateDefaultTriggerValues(a1); a1->m_disableTextDelegate = 0; return 1; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source