// // GJSmartBlockPreview::toggleSelectItem from 0x9d65b4 to 0x9d66a8 (244 bytes) // // 2 xrefs: // > BrowseSmartKeyLayer::onPrefabObject @ 0x9dc150 // > @ 0x35388 // // 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; // w21 cocos2d::CCSprite *m_selectSprite; // x0 cocos2d::CCSprite *v5; // x0 cocos2d::CCSprite *v6; // x23 void (__fastcall *setPosition)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x22 cocos2d::CCPoint v8; // [xsp+50h] [xbp+50h] 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"); a1->m_selectSprite = v5; a1->addChild(a1, v5); a1->m_selectSprite->setScale(a1->m_selectSprite, 2.8); v6 = a1->m_selectSprite; setPosition = v6->setPosition; cocos2d::CCPoint::CCPoint(&v8, 45.0, 45.0); setPosition(v6, &v8); m_selectSprite = a1->m_selectSprite; } m_selectSprite->setVisible(m_selectSprite, v3); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source