// // EditorUI::updateCreateMenu from 0x1401b2140 to 0x1401b245b (795 bytes) // // 12 xrefs: // > EditorUI::clickOnPosition @ 0x1401adae5 // > EditorUI::resetUI @ 0x1401afcde // > EditorUI::onCreateButton @ 0x1401b212a // > EditorUI::onShowUIBtn @ 0x1401b3d56 // > EditorUI::handleEditorAction @ 0x1401c332a // > EditorUI::setupCreateMenu @ 0x1401f083d // > EditorUI::orderUpCustomItem @ 0x1401f616f // > EditorUI::orderDownCustomItem @ 0x1401f61ff // > @ 0x1408a1708 // > @ 0x1408a172c // > @ 0x1408a173c // > @ 0x140919f7c // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:27:56 +0000 // void __fastcall EditorUI::updateCreateMenu(__int64 a1, __int64 a2) { char v2; // r15 __int64 v4; // rdx cocos2d::CCArray *v5; // rdi unsigned int i; // ebx int *v7; // rax __int64 v8; // rcx cocos2d::CCArray *v9; // rdi unsigned int j; // ebx int *v11; // rax __int64 v12; // rcx int v13; // r14d __int64 v14; // rax unsigned int v15; // ebx cocos2d::CCArray *v16; // rdi struct cocos2d::CCObject *v17; // rax struct cocos2d::CCObject *v18; // rsi __int64 v19; // rax __int64 v20; // rbx __int64 v21; // rcx __int64 v22; // rbx __int16 v23; // ax int v25; // ecx __int64 v26; // rbx int v27; // edi __int64 v28; // rcx cocos2d::CCArray *v29; // rcx __int16 v30; // [rsp+60h] [rbp+8h] BYREF char v31; // [rsp+62h] [rbp+Ah] __int16 v32; // [rsp+70h] [rbp+18h] BYREF char v33; // [rsp+72h] [rbp+1Ah] __int16 v34; // [rsp+78h] [rbp+20h] BYREF char v35; // [rsp+7Ah] [rbp+22h] v2 = a2; if ( *(_BYTE *)(a1 + 1661) || *(_DWORD *)(a1 + 1508) != 2 ) { (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 872) + 336LL))(*(_QWORD *)(a1 + 872), 0); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 1248) + 336LL))(*(_QWORD *)(a1 + 1248), 0); } else { LOBYTE(a2) = 1; (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 872) + 336LL))(*(_QWORD *)(a1 + 872), a2); LOBYTE(v4) = 1; (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 1248) + 336LL))(*(_QWORD *)(a1 + 1248), v4); v5 = *(cocos2d::CCArray **)(a1 + 1400); for ( i = 0; i < cocos2d::CCArray::count(v5); ++i ) { v7 = (int *)cocos2d::CCArray::objectAtIndex(v5, i); EditorUI::enableButton(v8, v7); } v9 = *(cocos2d::CCArray **)(a1 + 1408); for ( j = 0; j < cocos2d::CCArray::count(v9); ++j ) { v11 = (int *)cocos2d::CCArray::objectAtIndex(v9, j); EditorUI::enableButton(v12, v11); } v13 = 0; while ( 1 ) { v14 = 1400; if ( v13 ) v14 = 1408; v15 = 0; v16 = *(cocos2d::CCArray **)(v14 + a1); if ( cocos2d::CCArray::count(v16) ) break; LABEL_13: if ( ++v13 >= 2 ) return; } while ( 1 ) { v17 = cocos2d::CCArray::objectAtIndex(v16, v15); v18 = v17; if ( *((_DWORD *)v17 + 138) == *(_DWORD *)(a1 + 1392) ) break; if ( ++v15 >= cocos2d::CCArray::count(v16) ) goto LABEL_13; } v19 = (*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v17 + 952LL))(v17); v20 = v19; v21 = *(_QWORD *)(v19 + 648); if ( v21 || (v21 = *(_QWORD *)(v19 + 656)) != 0 ) { v34 = 32639; v35 = 127; (**(void (__fastcall ***)(__int64, __int16 *))(v21 + 320))(v21 + 320, &v34); } if ( *((int *)v18 + 138) >= 0 ) { v22 = *(_QWORD *)(v20 + 640); v30 = 32639; v31 = 127; v32 = 25700; v33 = 127; if ( *(_DWORD *)(v22 + 1256) == 1 ) { v23 = *(_WORD *)(v22 + 1048); if ( !(v23 ? v23 == 1 : *(_BYTE *)(v22 + 1300)) && !*(_QWORD *)(v22 + 896) ) { v25 = *(_DWORD *)(*(_QWORD *)(v22 + 1104) + 4LL); if ( v25 != 1004 && v25 && *(_BYTE *)(v22 + 1784) ) { v30 = v32; v31 = 127; } } } (*(void (__fastcall **)(__int64, __int16 *))(*(_QWORD *)v22 + 1344LL))(v22, &v30); (*(void (__fastcall **)(__int64, __int16 *))(*(_QWORD *)v22 + 944LL))(v22, &v32); } if ( v2 ) { EditorUI::selectBuildTab(a1, *((unsigned int *)v18 + 140)); v26 = *(_QWORD *)(a1 + 872); v27 = *((_DWORD *)v18 + 139); v28 = *(_QWORD *)(v26 + 344); if ( *(_BYTE *)(v28 + 456) ) v29 = *(cocos2d::CCArray **)(v28 + 448); else v29 = *(cocos2d::CCArray **)(v28 + 480); cocos2d::CCArray::count(v29); BoomScrollLayer::instantMoveToPage(*(_QWORD *)(v26 + 344), v27 - 1); BoomScrollLayer::instantMoveToPage(*(_QWORD *)(v26 + 344), v27); EditButtonBar::updateDotState(v26); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source