// // KeyframeGameObject::updateShadowObjects from 0x763a94 to 0x763d58 (708 bytes) // // 3 xrefs: // > LevelEditorLayer::updateKeyframeObjects @ 0x662c10 // > EditorUI::createNewKeyframeAnim @ 0x6bf1a0 // > @ 0x7e2b8 // // 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 KeyframeGameObject::updateShadowObjects(KeyframeGameObject *a1, GJBaseGameLayer *a2, EditorUI *a3) { cocos2d::CCSprite *m_previewSprite; // x0 int m_targetGroupID; // w1 cocos2d::CCArray *Group; // x23 GameObject *GroupParent; // x21 cocos2d::CCSprite *v10; // x1 float width; // w2 cocos2d::CCSprite *v12; // x0 cocos2d::CCSprite_vtbl *v13; // x1 float height; // w3 cocos2d::CCSprite *v15; // x0 cocos2d::CCSprite_vtbl *v16; // x2 const cocos2d::CCPoint *v17; // x0 float v18; // s0 float v19; // s1 KeyframeGameObject_vtbl *v20; // x1 void (__fastcall *setOpacity)(KeyframeGameObject *__hidden, unsigned __int8); // x21 int v22; // w0 __int64 v23; // [xsp+58h] [xbp+58h] BYREF char v24[8]; // [xsp+60h] [xbp+60h] BYREF cocos2d::CCPoint v25; // [xsp+68h] [xbp+68h] BYREF char *v26; // [xsp+70h] [xbp+70h] BYREF cocos2d::CCPoint GroupCenter; // 0:kr00_8.8 m_previewSprite = a1->m_previewSprite; if ( m_previewSprite ) { m_previewSprite->removeMeAndCleanup(m_previewSprite); a1->m_previewSprite = nullptr; } cocos2d::CCArray::removeAllObjects(a1->m_shadowObjects); if ( a1->m_previewArt ) { m_targetGroupID = a1->m_targetGroupID; a1->m_bDontDraw = 1; Group = GJBaseGameLayer::getGroup(a2, m_targetGroupID); GroupParent = GJBaseGameLayer::getGroupParent(a2, a1->m_targetGroupID); if ( (unsigned int)cocos2d::CCArray::count(Group) && GroupParent ) { EditorUI::copyObjects(&v23, a3, Group, 0, 0); sub_D18D28(&v26); a1->m_previewSprite = EditorUI::spriteFromObjectString( a3, (const void **)&v26, 0, 1u, 0, a1->m_shadowObjects, Group, (__int64)GroupParent); if ( v26 - 24 != (char *)&qword_124B6B0 ) sub_74B3A8(v26 - 24); ((void (__fastcall *)(KeyframeGameObject *))a1->addChild)(a1); a1->setContentSize(a1, &stru_1242470); v10 = a1->m_previewSprite; a1->m_updateCustomContentSize = 1; width = v10->getContentSize(v10)->width; v12 = a1->m_previewSprite; v13 = v12->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; a1->m_width = width; height = v13->getContentSize(v12)->height; v15 = a1->m_previewSprite; v16 = v15->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; a1->m_height = height; v16->setPosition(v15, &stru_1242458); GroupCenter = EditorUI::getGroupCenter(a3, Group, 1); v17 = (const cocos2d::CCPoint *)((__int64 (__fastcall *)(GameObject *, float, float))GroupParent->getPosition)( GroupParent, GroupCenter.x, GroupCenter.y); cocos2d::CCPoint::CCPoint(&v25, v17); cocos2d::CCPoint::operator-(&v26, v24, &v25); cocos2d::CCPoint::operator=(&a1->m_customBoxOffset, v18, v19); v20 = a1->EffectGameObject::EnhancedGameObject::GameObject::CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; a1->m_isObjectRectDirty = 1; setOpacity = v20->setOpacity; v22 = ((__int64 (__fastcall *)(KeyframeGameObject *))v20->getOpacity)(a1); setOpacity(a1, v22); if ( (__int64 *)(v23 - 24) != &qword_124B6B0 ) sub_74B3A8((void *)(v23 - 24)); } } else { a1->m_bDontDraw = 0; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source