//
// EditorUI::getCreateMenuItemButton from 0x1003e7268 to 0x1003e7360 (248 bytes)
//
// 4 xrefs:
// > EditorUI::createCustomItems @ 0x1003e8d68
// > EditorUI::createCustomItems @ 0x1003e8db8
// > EditorUI::createCustomItems @ 0x1003e8e08
// > EditorUI::createCustomItems @ 0x1003e8e58
//
// 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 *__fastcall EditorUI::getCreateMenuItemButton(
EditorUI *a1,
cocos2d::CCSprite *a2,
cocos2d::SEL_MenuHandler a3,
cocos2d::CCMenu *a4,
float a5,
int a6,
cocos2d::CCPoint a7)
{
__int64 *v7; // x6
__int64 *v8; // x19
size_t adj; // x21
void (__cdecl *ptr)(cocos2d::CCObject *); // x22
const char *v14; // x4
ButtonSprite *v15; // x24
CreateMenuItem *v16; // x21
__int64 v18; // [xsp+8h] [xbp-48h] BYREF
cocos2d::SEL_MenuHandler v19; // 0:x3.16
cocos2d::CCPoint v20; // 0:s0.4,4:s1.4
v8 = v7;
adj = a3.adj;
ptr = a3.ptr;
if ( (unsigned int)(a6 - 2) > 4 )
v14 = "GJ_button_01.png";
else
v14 = off_100815A48[a6 - 2];
v15 = ButtonSprite::create(a2, 32, 0, 32.0, 1.0, 1, v14, 1);
v19.ptr = ptr;
v19.adj = adj;
v16 = CreateMenuItem::create(v15, nullptr, a1, v19);
((void (__fastcall *)(CreateMenuItem *, float))v16->setScale)(v16, a5);
v16->m_baseScale = a5;
if ( a4 )
((void (__fastcall *)(cocos2d::CCMenu *, CreateMenuItem *))a4->addChild)(a4, v16);
v20.x = sub_1000229B8(&v18, v8);
ButtonSprite::updateSpriteOffset(v15, v20);
return v16;
}