// // EditorUI::updateCreateMenu from 0x1003e6c70 to 0x1003e6e0c (412 bytes) // // 6 xrefs: // > EditorUI::setupCreateMenu @ 0x1003e4058 // > EditorUI::resetUI @ 0x1003e41c0 // > EditorUI::clickOnPosition @ 0x1003e67a4 // > EditorUI::orderUpCustomItem @ 0x1003e8bb8 // > EditorUI::orderDownCustomItem @ 0x1003e8c1c // > EditorUI::onCreateButton @ 0x1003eb034 // // 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 // void __fastcall EditorUI::updateCreateMenu(EditorUI *a1, bool a2) { void (*setVisible)(void); // x8 _BOOL4 v4; // w20 char v5; // w21 char v6; // w25 __int64 v7; // x8 __int64 v8; // x21 unsigned int v9; // w22 EditorUI *v10; // x0 char i; // w8 char v12; // w26 __int64 v13; // x8 __int64 v14; // x21 unsigned int v15; // w22 __int64 v16; // x0 __int64 v17; // x23 setVisible = (void (*)(void))a1->m_createButtonBar->setVisible; if ( a1->m_selectedMode == 2 ) { v4 = a2; v5 = 1; setVisible(); ((void (__fastcall *)(cocos2d::CCMenu *, __int64))a1->m_tabsMenu->setVisible)(a1->m_tabsMenu, 1); do { v6 = v5; if ( (v5 & 1) != 0 ) v7 = 1224; else v7 = 1232; v8 = *(__int64 *)((char *)&a1->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable + v7); if ( (unsigned int)sub_10024A36C(v8) ) { v9 = 0; do { v10 = (EditorUI *)sub_10024A388(v8, v9); EditorUI::enableButton(v10, (CreateMenuItem *)v10); ++v9; } while ( v9 < (unsigned int)sub_10024A36C(v8) ); } v5 = 0; } while ( (v6 & 1) != 0 ); for ( i = 1; ; i = 0 ) { v12 = i; v13 = (i & 1) != 0 ? 1224LL : 1232LL; v14 = *(__int64 *)((char *)&a1->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable + v13); if ( (unsigned int)sub_10024A36C(v14) ) break; LABEL_18: if ( (v12 & 1) == 0 ) return; } v15 = 0; while ( 1 ) { v16 = sub_10024A388(v14, v15); if ( *(_DWORD *)(v16 + 528) == a1->m_selectedObjectIndex ) break; if ( ++v15 >= (unsigned int)sub_10024A36C(v14) ) goto LABEL_18; } v17 = v16; EditorUI::disableButton((EditorUI *)v16, (CreateMenuItem *)v16); if ( v4 ) { EditorUI::selectBuildTab(a1, *(_DWORD *)(v17 + 536)); EditButtonBar::goToPage(a1->m_createButtonBar, *(_DWORD *)(v17 + 532)); } } else { setVisible(); ((void (__fastcall *)(cocos2d::CCMenu *, _QWORD))a1->m_tabsMenu->setVisible)(a1->m_tabsMenu, 0); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source