// // EditorUI::getSpriteButton from 0x10002eb00 to 0x10002ebe6 (230 bytes) // // 1 xrefs: // > EditorUI::getSpriteButton_1 @ 0x10000be4f // // 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( EditorUI *a1, cocos2d::CCSprite *a2, cocos2d::SEL_MenuHandler a3, cocos2d::CCMenu *a4, float a5, int a6, cocos2d::CCPoint a7) { size_t adj; // r15 void (__cdecl *ptr)(cocos2d::CCObject *); // r12 unsigned int v10; // r9d const char *v11; // r8 ButtonSprite *v12; // r13 CCMenuItemSpriteExtra *v13; // r14 cocos2d::CCPoint v14; // xmm0_8 _BYTE v16[8]; // [rsp+Ch] [rbp-34h] BYREF float v17; // [rsp+14h] [rbp-2Ch] __int64 v18; // [rsp+50h] [rbp+10h] v17 = a5; adj = a3.adj; ptr = a3.ptr; v10 = a6 - 2; if ( v10 > 4 ) v11 = "GJ_button_01.png"; else v11 = off_1008B1FC0[v10]; v12 = ButtonSprite::create(a2, 32, 0, 32.0, 1.0, 1, v11, 1); v13 = CCMenuItemSpriteExtra::create( v12, nullptr, a1, (cocos2d::SEL_MenuHandler)__PAIR128__(adj, (unsigned __int64)ptr)); ((void (__fastcall *)(CCMenuItemSpriteExtra *, float))v13->setScale)(v13, v17); v13->m_baseScale = v17; if ( a4 ) ((void (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))a4->addChild)(a4, v13); *(double *)&v14 = sub_10028CC60(v16, v18); ButtonSprite::updateSpriteOffset(v12, v14); return v13; }
GD Web Decomp Icon

GD Web Decomp

Raw Source