//
// EditorUI::getCreateMenuItemButton from 0x7c1188 to 0x7c12f4 (364 bytes)
//
// 5 xrefs:
// > EditorUI::createCustomItems @ 0xbdfc98
// > EditorUI::createCustomItems @ 0xbdfcf0
// > EditorUI::createCustomItems @ 0xbdfd48
// > EditorUI::createCustomItems @ 0xbdfda0
// > ??> @ 0xbbac8
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 12:54:06 +0000
//
float *__fastcall EditorUI::getCreateMenuItemButton(
__int64 a1,
ButtonSprite *this,
__int64 a3,
__int64 a4,
__int64 a5,
int a6,
const cocos2d::CCPoint *a7,
float a8)
{
char *v14; // x4
ButtonSprite *v15; // x26
float *v16; // x21
_BYTE v18[8]; // [xsp+60h] [xbp+60h] BYREF
switch ( a6 )
{
case 2:
v14 = "GJ_button_02.png";
break;
case 3:
v14 = "GJ_button_03.png";
break;
case 4:
v14 = "GJ_button_04.png";
break;
case 5:
v14 = "GJ_button_05.png";
break;
case 6:
v14 = "GJ_button_06.png";
break;
default:
v14 = "GJ_button_01.png";
break;
}
v15 = (ButtonSprite *)ButtonSprite::create(
this,
(cocos2d::CCSprite *)&qword_20,
0,
(char)&dword_0 + 1,
32.0,
1.0,
(cocos2d::CCSprite *)v14,
(const char *)&dword_0 + 1,
0.0);
v16 = (float *)CreateMenuItem::create(v15, 0, a1, a3, a4);
(*(void (__fastcall **)(float *, float))(*(_QWORD *)v16 + 160LL))(v16, a8);
v16[101] = a8;
if ( a5 )
(*(void (__fastcall **)(__int64, float *))(*(_QWORD *)a5 + 456LL))(a5, v16);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v18, a7);
ButtonSprite::updateSpriteOffset(v15, (__int64)v18);
return v16;
}