// // EditorUI::menuItemFromObjectString from 0x14010e770 to 0x14010e97e (526 bytes) // // 2 xrefs: // > EditorUI::createCustomItems @ 0x1400e491f // > @ 0x1406c8e14 // // 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 // // Hidden C++ exception states: #wind=2 CreateMenuItem *__fastcall EditorUI::menuItemFromObjectString(__int64 a1, __int64 a2, int a3) { __int64 v6; // rax cocos2d::CCSprite *v7; // rsi ButtonSprite *v8; // rdi int v9; // r9d __int64 v10; // rax cocos2d::CCNode *v11; // rdx CreateMenuItem *v12; // rbx bool v14; // [rsp+30h] [rbp-88h] ButtonSprite *v15; // [rsp+50h] [rbp-68h] BYREF cocos2d::CCPoint v16; // [rsp+58h] [rbp-60h] BYREF _BYTE v17[32]; // [rsp+60h] [rbp-58h] BYREF __int64 v18; // [rsp+80h] [rbp-38h] v18 = a2; v6 = sub_14003BDB0((__int64)v17, a2); v7 = (cocos2d::CCSprite *)EditorUI::spriteFromObjectString(a1, v6, 1, 0, 100, nullptr, nullptr, 0); v7->getContentSize(v7); v7->getContentSize(v7); v7->getContentSize(v7); ((void (__fastcall *)(cocos2d::CCSprite *))v7->setScale_0)(v7); v15 = (ButtonSprite *)operator new(0x2C0u); v8 = ButtonSprite::ButtonSprite(v15); if ( v8 ) { if ( ButtonSprite::init(v8, v7, 32, v9, 32.0, 1.0, v14, "GJ_button_04.png", 0) ) { cocos2d::CCObject::autorelease(v8); } else { ((void (__fastcall *)(ButtonSprite *, __int64))v8->~ButtonSprite)(v8, 1); v8 = nullptr; } } cocos2d::CCPoint::CCPoint(&v16, 0.0, -1.0); v10 = (__int64)v7->getPosition_0(v7); cocos2d::CCPoint::operator+(v10, &v15); v7->setPosition_0(v7, (const cocos2d::CCPoint *)&v15); v12 = CreateMenuItem::create(v8, v11, (cocos2d::CCObject *)a1, (cocos2d::SEL_MenuHandler *)EditorUI::onCreateButton); LODWORD(v12->m_spriteFileName.m_data.m_capacity) = a3; ((void (__fastcall *)(CreateMenuItem *))v12->setScale_0)(v12); HIDWORD(v12->m_pDisabledImage) = 1063675494; cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 1256), v12); sub_14003A830(a2); return v12; }