//
// EditorUI::getCreateMenuItemButton from 0x694650 to 0x6947b8 (360 bytes)
//
// 5 xrefs:
// > EditorUI::createCustomItems @ 0x697770
// > EditorUI::createCustomItems @ 0x6977c8
// > EditorUI::createCustomItems @ 0x697820
// > EditorUI::createCustomItems @ 0x697878
// > ??> @ 0x8dc00
//
// 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
//
CreateMenuItem *EditorUI::getCreateMenuItemButton(
EditorUI *a1,
cocos2d::CCSprite *a2,
cocos2d::SEL_MenuHandler a3,
cocos2d::CCMenu *a4,
float a5,
int a6,
cocos2d::CCPoint a7)
{
const cocos2d::CCPoint *v7; // x6
size_t adj; // x23
void (__cdecl *ptr)(cocos2d::CCObject *); // x22
const cocos2d::CCPoint *v12; // x24
char *v14; // x4
ButtonSprite *v15; // x26
CreateMenuItem *v16; // x21
cocos2d::CCPoint v18; // [xsp+60h] [xbp+60h] BYREF
cocos2d::SEL_MenuHandler v19; // 0:x3.16
cocos2d::CCPoint v20; // 0:s0.4,4:s1.4
adj = a3.adj;
ptr = a3.ptr;
v12 = v7;
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(
(ButtonSprite *)a2,
(cocos2d::CCSprite *)&qword_20,
0,
(bool)&dword_0 + 1,
32.0,
1.0,
(cocos2d::CCSprite *)v14,
(const char *)&dword_0 + 1);
v19.ptr = ptr;
v19.adj = adj;
v16 = CreateMenuItem::create(v15, nullptr, a1, v19);
v16->setScale(v16, a5);
v16->m_baseScale = a5;
if ( a4 )
a4->addChild(a4, v16);
cocos2d::CCPoint::CCPoint(&v18, v12);
ButtonSprite::updateSpriteOffset(v15, v20);
return v16;
}