// // GJSmartBlockPreview::toggleSelectItem from 0x1004296f0 to 0x1004297b6 (198 bytes) // // 1 xrefs: // > BrowseSmartKeyLayer::onPrefabObject @ 0x1004eb6fe // // 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 GJSmartBlockPreview::toggleSelectItem(GJSmartBlockPreview *a1, bool a2) { cocos2d::CCSprite *m_selectSprite; // rax cocos2d::CCSprite *v4; // rax cocos2d::CCSprite *v5; // r14 float v6[12]; // [rsp-30h] [rbp-30h] BYREF if ( a1->m_selected != a2 ) { a1->m_selected = a2; m_selectSprite = a1->m_selectSprite; if ( !m_selectSprite ) { v4 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_select_001.png"); a1->m_selectSprite = v4; ((void (__fastcall *)(GJSmartBlockPreview *, cocos2d::CCSprite *))a1->addChild)(a1, v4); ((void (__fastcall *)(cocos2d::CCSprite *, float))a1->m_selectSprite->setScale)(a1->m_selectSprite, 2.8); v5 = a1->m_selectSprite; sub_10028CBE0(v6, 45.0, 45.0); ((void (__fastcall *)(cocos2d::CCSprite *, float *))v5->setPosition)(v5, v6); m_selectSprite = a1->m_selectSprite; } ((void (__fastcall *)(cocos2d::CCSprite *, bool))m_selectSprite->setVisible)(m_selectSprite, a2); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source