// // CCPartAnimSprite::tweenSpriteTo from 0x10007eeac to 0x10007f038 (396 bytes) // // 1 xrefs: // > CCPartAnimSprite::tweenToFrame @ 0x10007f2c8 // // 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 // void __fastcall CCPartAnimSprite::tweenSpriteTo(CCPartAnimSprite *a1, SpriteDescription *a2, float a3) { __int64 v6; // x19 float x; // s9 float y; // s10 cocos2d::CCMoveTo *v9; // x22 cocos2d::CCScaleTo *v10; // x23 cocos2d::CCRotateTo *v11; // x24 cocos2d::CCSpriteFrame *m_texture; // x8 std::string __p; // [xsp+0h] [xbp-70h] BYREF v6 = sub_10024A388(a1->m_spriteParts, (unsigned int)a2->m_tag); cocos2d::CCNode::stopAllActions((cocos2d::CCNode *)v6); if ( a2->m_flipped.x == 0.0 ) x = a2->m_scale.x; else x = -a2->m_scale.x; if ( a2->m_flipped.y == 0.0 ) y = a2->m_scale.y; else y = -a2->m_scale.y; v9 = cocos2d::CCMoveTo::create(a3, &a2->m_position); v10 = cocos2d::CCScaleTo::create(a3, x, y); v11 = cocos2d::CCRotateTo::create(a3, a2->m_rotation); cocos2d::CCNode::runAction((cocos2d::CCNode *)v6, v9); cocos2d::CCNode::runAction((cocos2d::CCNode *)v6, v10); cocos2d::CCNode::runAction((cocos2d::CCNode *)v6, v11); if ( a2->m_usesCustomTag ) { (*(void (__fastcall **)(__int64, cocos2d::CCSpriteFrame *))(*(_QWORD *)v6 + 1144LL))(v6, a2->m_texture); m_texture = a2->m_texture; if ( m_texture->m_strFrameName.m_data.m_short.shortStorage.__elems_[22] < 0 ) sub_1000097D0( &__p, (void *)m_texture->m_strFrameName.m_data.m_long.capacitym1, m_texture->m_strFrameName.m_data.m_long.size); else __p = m_texture->m_strFrameName; CCSpritePart::frameChanged((std::string *)v6, (std::string *)&__p); if ( __p.m_data.m_short.shortStorage.__elems_[22] < 0 ) operator delete((void *)__p.m_data.m_long.capacitym1); } if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)v6 + 104LL))(v6) != a2->m_zValue ) ((void (__fastcall *)(CCPartAnimSprite *, __int64))a1->reorderChild)(a1, v6); *(_BYTE *)(v6 + 619) = 1; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v6 + 328LL))(v6, 1); }