// // EditorUI::menuItemFromObjectString from 0x1003e8ec8 to 0x1003e9094 (460 bytes) // // 1 xrefs: // > EditorUI::createCustomItems @ 0x1003e8cc8 // // 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::menuItemFromObjectString(__int64 a1, __int64 a2, int a3) { cocos2d::CCSprite *v5; // x21 float v6; // s8 _BOOL4 v7; // w22 __int64 v8; // x0 ButtonSprite *v9; // x22 float32x2_t *v10; // x23 __n128 v11; // q0 __n128 v12; // q1 double v13; // d0 CreateMenuItem *v14; // x21 float32x2_t v16; // [xsp+0h] [xbp-70h] BYREF float32x2_t v17; // [xsp+8h] [xbp-68h] BYREF void *__p[2]; // [xsp+10h] [xbp-60h] BYREF __int64 v19; // [xsp+20h] [xbp-50h] cocos2d::SEL_MenuHandler v20; // 0:x3.16 if ( *(char *)(a2 + 23) < 0 ) { sub_1000097D0(__p, *(void **)a2, *(_QWORD *)(a2 + 8)); } else { *(_OWORD *)__p = *(_OWORD *)a2; v19 = *(_QWORD *)(a2 + 16); } v5 = (cocos2d::CCSprite *)EditorUI::spriteFromObjectString(a1, __p, 1, 0, 100, 0, 0, 0); if ( SHIBYTE(v19) < 0 ) operator delete(__p[0]); v6 = *(float *)((__int64 (__fastcall *)(cocos2d::CCSprite *))v5->getContentSize)(v5); v7 = v6 <= *(float *)(((__int64 (__fastcall *)(cocos2d::CCSprite *))v5->getContentSize)(v5) + 4); v8 = ((__int64 (__fastcall *)(cocos2d::CCSprite *))v5->getContentSize)(v5); ((void (__fastcall *)(cocos2d::CCSprite *, float))v5->setScale)(v5, 40.0 / *(float *)(v8 + 4LL * v7)); v9 = ButtonSprite::create(v5, 32, 0, 32.0, 1.0, 1, "GJ_button_04.png", 0); v10 = (float32x2_t *)((__int64 (__fastcall *)(cocos2d::CCSprite *))v5->getPosition)(v5); v11.n128_u32[0] = 0; v12.n128_u32[0] = -1.0; sub_100022980(v11, v12, &v16); *(float32x2_t *)&v13 = sub_1000229DC(v10, &v16, &v17); ((void (__fastcall *)(cocos2d::CCSprite *, float32x2_t *, double))v5->setPosition)(v5, &v17, v13); v20.ptr = (void (__cdecl *)(cocos2d::CCObject *))EditorUI::onCreateButton; v20.adj = 0; v14 = CreateMenuItem::create(v9, nullptr, (cocos2d::CCObject *)a1, v20); v14->m_objectID = a3; ((void (__fastcall *)(CreateMenuItem *, float))v14->setScale)(v14, 0.9); v14->m_baseScale = 0.9; sub_10024A2D0(*(_QWORD *)(a1 + 1232)); return v14; }
GD Web Decomp Icon

GD Web Decomp

Raw Source