// // EditorUI::getCreateMenuItemButton from 0x386230 to 0x3862fa (202 bytes) // // 4 xrefs: // > EditorUI::createCustomItems @ 0x388148 // > EditorUI::createCustomItems @ 0x388186 // > EditorUI::createCustomItems @ 0x3881c2 // > EditorUI::createCustomItems @ 0x388200 // // 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) { ButtonSprite *v8; // r10 CreateMenuItem *v9; // r4 cocos2d::CCPoint v10; // r1 cocos2d::CCPoint v12; // [sp+1Ch] [bp-Ch] BYREF cocos2d::SEL_MenuHandler v13; // 0:^10.8 v13.adj = a3.adj; switch ( a6 ) { case 2: a3.adj = (size_t)"GJ_button_02.png"; break; case 3: a3.adj = (size_t)"GJ_button_03.png"; break; case 4: a3.adj = (size_t)"GJ_button_04.png"; break; case 5: a3.adj = (size_t)"GJ_button_05.png"; break; case 6: a3.adj = (size_t)"GJ_button_06.png"; break; default: a3.adj = (size_t)"GJ_button_01.png"; break; } v8 = ButtonSprite::create( (ButtonSprite *)a2, (cocos2d::CCSprite *)&dword_20, 0, 32.0, 1.0, (_BOOL4)&dword_0 + 1, (char *)a3.adj, (const char *)&dword_0 + 1, (bool)a3.ptr); v9 = CreateMenuItem::create(v8, nullptr, a1, v13); ((void (__fastcall *)(CreateMenuItem *, _DWORD))v9->setScale)(v9, LODWORD(a5)); v9->m_baseScale = a5; if ( a4 ) a4->addChild(a4, v9); cocos2d::CCPoint::CCPoint(&v12, (const cocos2d::CCPoint *)LODWORD(a7.x)); LODWORD(v10.x) = &v12; ButtonSprite::updateSpriteOffset(v8, v10); return v9; }
GD Web Decomp Icon

GD Web Decomp

Raw Source