// // GJSmartBlockPreview::toggleSelectItem from 0x53ba04 to 0x53ba8e (138 bytes) // // 1 xrefs: // > BrowseSmartKeyLayer::onPrefabObject @ 0x53d790 // // 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 GJSmartBlockPreview::toggleSelectItem(GJSmartBlockPreview *a1, bool a2) { _BOOL4 v3; // r6 cocos2d::CCSprite *m_selectSprite; // r3 cocos2d::CCSprite *v5; // r0 GJSmartBlockPreview_vtbl *v6; // r3 cocos2d::CCSprite *v7; // r8 void (__fastcall *setPosition)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r9 cocos2d::CCPoint v9; // [sp+4h] [bp-10h] BYREF v3 = a2; if ( a1->m_selected != a2 ) { m_selectSprite = a1->m_selectSprite; a1->m_selected = a2; if ( !m_selectSprite ) { v5 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_select_001.png"); v6 = a1->__vftable; a1->m_selectSprite = v5; v6->addChild(a1, v5); ((void (__fastcall *)(cocos2d::CCSprite *, int))a1->m_selectSprite->setScale)(a1->m_selectSprite, 1077097267); v7 = a1->m_selectSprite; setPosition = v7->setPosition; cocos2d::CCPoint::CCPoint(&v9, 45.0, 45.0); setPosition(v7, &v9); } a1->m_selectSprite->setVisible(a1->m_selectSprite, v3); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source