// // EditorUI::selectBuildTab from 0x140114830 to 0x140114973 (323 bytes) // // 6 xrefs: // > EditorUI::setupCreateMenu @ 0x14010ddc2 // > EditorUI::updateCreateMenu @ 0x14010f370 // > EditorUI::onSelectBuildTab @ 0x14011481c // > @ 0x14066f548 // > @ 0x14066f57c // > @ 0x1406c912c // // 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 EditorUI::selectBuildTab(EditorUI *a1, int a2) { int m_selectedTab; // eax unsigned int v3; // edi cocos2d::CCArray *m_createButtonBars; // rcx unsigned int v6; // ebp unsigned int v7; // edi EditButtonBar *v8; // rsi _BOOL8 v9; // rdx CCMenuItemToggler *v10; // rax m_selectedTab = a1->m_selectedTab; v3 = a2; if ( m_selectedTab != a2 && (a1->m_selectedMode == 2 || m_selectedTab == -1) ) { if ( cocos2d::CCArray::count(a1->m_createButtonBars) - 1 < a2 ) cocos2d::CCArray::count(a1->m_createButtonBars); if ( cocos2d::CCArray::count(a1->m_createButtonBars) - 1 < v3 ) v3 = cocos2d::CCArray::count(a1->m_createButtonBars) - 1; m_createButtonBars = a1->m_createButtonBars; v6 = 0; a1->m_selectedTab = v3; v7 = 0; if ( cocos2d::CCArray::count(m_createButtonBars) ) { do { v8 = (EditButtonBar *)cocos2d::CCArray::objectAtIndex(a1->m_createButtonBars, v7); LOBYTE(v9) = v7 == a1->m_selectedTab; v8->setVisible(v8, v9); if ( v7 == a1->m_selectedTab ) a1->m_createButtonBar = v8; ++v7; } while ( v7 < cocos2d::CCArray::count(a1->m_createButtonBars) ); } if ( cocos2d::CCArray::count(a1->m_tabsArray) ) { do { v10 = (CCMenuItemToggler *)cocos2d::CCArray::objectAtIndex(a1->m_tabsArray, v6); CCMenuItemToggler::toggle(v10, v6++ == a1->m_selectedTab); } while ( v6 < cocos2d::CCArray::count(a1->m_tabsArray) ); } } }