// // InfoLayer::getSpriteButton from 0x7e298c to 0x7e2a9c (272 bytes) // // 5 xrefs: // > InfoLayer::init @ 0x7e4314 // > InfoLayer::init @ 0x7e4368 // > InfoLayer::init @ 0x7e5258 // > InfoLayer::init @ 0x7e52b4 // > @ 0x9fd08 // // 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 // CCMenuItemSpriteExtra *InfoLayer::getSpriteButton( InfoLayer *a1, const char *a2, cocos2d::SEL_MenuHandler a3, cocos2d::CCMenu *a4, float a5, cocos2d::CCPoint a6) { const cocos2d::CCPoint *v6; // x5 void (__cdecl *ptr)(cocos2d::CCObject *); // x24 const cocos2d::CCPoint *v11; // x26 ButtonSprite *v12; // x0 ButtonSprite *v13; // x22 CCMenuItemSpriteExtra *v14; // x20 cocos2d::CCPoint v16; // [xsp+60h] [xbp+60h] BYREF cocos2d::SEL_MenuHandler v17; // 0:x2.16 cocos2d::CCPoint v18; // 0:s0.4,4:s1.4 ptr = a3.ptr; v11 = v6; v12 = (ButtonSprite *)cocos2d::CCSprite::createWithSpriteFrameName(a2); v13 = (ButtonSprite *)ButtonSprite::create( v12, (cocos2d::CCSprite *)&qword_20, 0, 1, 32.0, 1.0, (cocos2d::CCSprite *)"GJ_button_01.png", nullptr); cocos2d::CCPoint::CCPoint(&v16, v11); ButtonSprite::updateSpriteOffset(v13, v18); v17.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; v17.adj = (size_t)ptr; v14 = CCMenuItemSpriteExtra::create(v13, nullptr, v17); v14->setScale(v14, a5); v14->m_baseScale = a5; if ( a4 ) a4->addChild(a4, v14); return v14; }
GD Web Decomp Icon

GD Web Decomp

Raw Source