//
// EditorUI::getSpriteButton from 0x1400e2900 to 0x1400e2a3f (319 bytes)
//
// 9 xrefs:
// > EditorUI::init @ 0x1400dff20
// > EditorUI::getSpriteButton_1 @ 0x1400e28d7
// > EditorUI::setupDeleteMenu @ 0x1400e50a0
// > EditorUI::setupDeleteMenu @ 0x1400e550e
// > EditorUI::setupDeleteMenu @ 0x1400e55b7
// > EditorUI::setupDeleteMenu @ 0x1400e5641
// > EditorUI::setupDeleteMenu @ 0x1400e5b99
// > EditorUI::setupDeleteMenu @ 0x1400e5c3b
// > ??> @ 0x1406c8bd4
//
// 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 *EditorUI::getSpriteButton(
EditorUI *a1,
cocos2d::CCSprite *a2,
cocos2d::SEL_MenuHandler *a3,
cocos2d::CCMenu *a4,
float a5,
int a6,
cocos2d::CCPoint a7)
{
const char *v10; // rax
ButtonSprite *v11; // rsi
CCMenuItemSpriteExtra *v12; // rax
float v13; // xmm6_4
CCMenuItemSpriteExtra *v14; // rdi
__int64 v15; // rax
bool v17; // [rsp+28h] [rbp-30h]
cocos2d::CCPoint v18; // [rsp+78h] [rbp+20h] BYREF
switch ( a6 )
{
case 2:
v10 = "GJ_button_02.png";
break;
case 3:
v10 = "GJ_button_03.png";
break;
case 4:
v10 = "GJ_button_04.png";
break;
case 5:
v10 = "GJ_button_05.png";
break;
case 6:
v10 = "GJ_button_06.png";
break;
default:
v10 = "GJ_button_01.png";
break;
}
v11 = ButtonSprite::create(a2, 32, (int)a2, 32.0, 1.0, v17, v10, 1);
v12 = CCMenuItemSpriteExtra::create(v11, nullptr, a1, a3);
v13 = a5;
v14 = v12;
((void (__fastcall *)(CCMenuItemSpriteExtra *))v12->setScale_0)(v12);
*((float *)&v14->m_pDisabledImage + 1) = v13;
if ( a4 )
a4->addChild_1(a4, v14);
cocos2d::CCPoint::CCPoint(&v18, *(const struct cocos2d::CCPoint **)&a7);
cocos2d::CCPoint::operator=(&v11->m_spritePosition, v15);
ButtonSprite::updateSpriteBGSize(v11);
return v14;
}