// // EditorUI::getSpriteButton_2 from 0x10000bc80 to 0x10000bd7b (251 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 EditorUI::getSpriteButton_2( EditorUI *a1, const char *a2, cocos2d::SEL_MenuHandler a3, cocos2d::CCMenu *a4, float a5) { void (__cdecl *ptr)(cocos2d::CCObject *); // r15 cocos2d::CCSprite *v7; // r13 ButtonSprite *v8; // r13 CCMenuItemSpriteExtra *v9; // r14 cocos2d::CCPoint v10; // xmm0_8 _BYTE v12[8]; // [rsp+0h] [rbp-50h] BYREF _BYTE v13[8]; // [rsp+8h] [rbp-48h] BYREF _BYTE v14[8]; // [rsp+10h] [rbp-40h] BYREF size_t adj; // [rsp+18h] [rbp-38h] float v16; // [rsp+24h] [rbp-2Ch] v16 = a5; adj = a3.adj; ptr = a3.ptr; sub_10028CC60(v13, &qword_10099EC08); v7 = cocos2d::CCSprite::createWithSpriteFrameName(a2); sub_10028CC60(v14, v13); v8 = ButtonSprite::create(v7, 32, 0, 32.0, 1.0, 1, "GJ_button_01.png", 1); v9 = CCMenuItemSpriteExtra::create(v8, nullptr, a1, (cocos2d::SEL_MenuHandler)__PAIR128__(adj, (unsigned __int64)ptr)); ((void (__fastcall *)(CCMenuItemSpriteExtra *, float))v9->setScale)(v9, v16); v9->m_baseScale = v16; if ( a4 ) ((void (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))a4->addChild)(a4, v9); *(double *)&v10 = sub_10028CC60(v12, v14); ButtonSprite::updateSpriteOffset(v8, v10); return v9; }
GD Web Decomp Icon

GD Web Decomp

Raw Source