// // InfoLayer::getSpriteButton from 0x1007b0f50 to 0x1007b1027 (215 bytes) // // 0 xrefs: // // 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 *__fastcall InfoLayer::getSpriteButton( InfoLayer *a1, const char *a2, cocos2d::SEL_MenuHandler a3, cocos2d::CCMenu *a4, float a5, cocos2d::CCPoint a6) { double *v6; // r9 double *v7; // r13 cocos2d::CCSprite *v9; // rax ButtonSprite *v10; // r14 cocos2d::CCPoint v11; // xmm0_8 CCMenuItemSpriteExtra *v12; // r14 __int64 v14; // [rsp+8h] [rbp-48h] BYREF size_t adj; // [rsp+10h] [rbp-40h] void (__cdecl *ptr)(cocos2d::CCObject *); // [rsp+18h] [rbp-38h] float v17; // [rsp+24h] [rbp-2Ch] v7 = v6; v17 = a5; adj = a3.adj; ptr = a3.ptr; v9 = cocos2d::CCSprite::createWithSpriteFrameName(a2); v10 = ButtonSprite::create(v9, 32, 0, 32.0, 1.0, 1, "GJ_button_01.png", 0); *(double *)&v11 = sub_10028CC60(&v14, v7); ButtonSprite::updateSpriteOffset(v10, v11); v12 = CCMenuItemSpriteExtra::create( v10, nullptr, a1, (cocos2d::SEL_MenuHandler)__PAIR128__(adj, (unsigned __int64)ptr)); ((void (__fastcall *)(CCMenuItemSpriteExtra *, float))v12->setScale)(v12, v17); v12->m_baseScale = v17; if ( a4 ) ((void (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))a4->addChild)(a4, v12); return v12; }
GD Web Decomp Icon

GD Web Decomp

Raw Source