// // EditorUI::getSpriteButton from 0x481454 to 0x4815c0 (364 bytes) // // 5 xrefs: // > EditorUI::getSpriteButton @ 0x48162c // > EditorUI::setupDeleteMenu @ 0x6f59ae // > EditorUI::setupDeleteMenu @ 0x6f5a92 // > EditorUI::setupDeleteMenu @ 0x6f5cda // > EditorUI::createDpadMoveMenu @ 0x6f723a // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:49:22 +0000 // _DWORD *__fastcall EditorUI::getSpriteButton( int a1, ButtonSprite *this, int a3, int a4, int a5, int a6, int a7, const cocos2d::CCPoint *a8, float a9) { char *v11; // r4 const cocos2d::CCSize *v12; // r0 float v13; // s14 float v14; // s15 bool v15; // fnf ButtonSprite *v17; // r0 ButtonSprite *v18; // r6 _DWORD *v19; // r4 float v21; // [sp+14h] [bp-20h] float v24; // [sp+24h] [bp-10h] BYREF float v25; // [sp+28h] [bp-Ch] switch ( a7 ) { case 2: v11 = "GJ_button_02.png"; break; case 3: v11 = "GJ_button_03.png"; break; case 4: v11 = "GJ_button_04.png"; break; case 5: v11 = "GJ_button_05.png"; break; case 6: v11 = "GJ_button_06.png"; break; default: v11 = "GJ_button_01.png"; break; } if ( a9 <= 0.0 ) { v17 = ButtonSprite::create( this, (cocos2d::CCSprite *)&dword_20, 0, 32.0, 1.0, (_BOOL4)&dword_0 + 1, v11, (const char *)&dword_0 + 1, 0.0, v21); } else { v12 = (const cocos2d::CCSize *)(*(int (__fastcall **)(ButtonSprite *))(*(_DWORD *)this + 164))(this); cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v24, v12); v13 = 32.0 / v24; v14 = 32.0 / v25; if ( (float)(32.0 / v24) <= (float)(32.0 / v25) ) v15 = v13 < 1.0; else v15 = v14 < 1.0; if ( v15 ) { if ( v13 <= v14 ) v14 = 32.0 / v24; } else { v14 = 1.0; } v17 = ButtonSprite::create( this, (cocos2d::CCSprite *)(int)(float)(a9 - 8.0), 0, 32.0, v14, 1, v11, nullptr, 0.0, v21); } v18 = v17; v19 = (_DWORD *)CCMenuItemSpriteExtra::create((int)v17, 0, a1, a3, a4); (*(void (__fastcall **)(_DWORD *, int))(*v19 + 80))(v19, a6); v19[79] = a6; if ( a5 ) (*(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)a5 + 228))(a5, v19); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v24, a8); ButtonSprite::updateSpriteOffset(v18, (int)&v24); return v19; }
GD Web Decomp Icon

GD Web Decomp

Raw Source