// // EditorUI::selectBuildTab from 0x37ddf4 to 0x37debc (200 bytes) // // 3 xrefs: // > EditorUI::updateCreateMenu @ 0x37df88 // > EditorUI::onSelectBuildTab @ 0x37dffc // > EditorUI::setupCreateMenu @ 0x39be50 // // 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; // r3 unsigned int v4; // r5 bool v5; // zf int v6; // r0 unsigned int i; // r5 EditButtonBar *v8; // r6 unsigned int j; // r5 CCMenuItemToggler *v10; // r0 unsigned int v11; // r3 m_selectedTab = a1->m_selectedTab; v4 = a2; if ( m_selectedTab != a2 && (a1->m_selectedMode == 2 || m_selectedTab == -1) ) { if ( cocos2d::CCArray::count(a1->m_createButtonBars) - 1 <= (unsigned int)a2 ) { v6 = cocos2d::CCArray::count(a1->m_createButtonBars) - 1; v5 = v6 == 0; } else { v6 = v4; v5 = v4 == 0; } if ( !v5 ) v6 = 1; if ( v6 ) { if ( cocos2d::CCArray::count(a1->m_createButtonBars) - 1 <= v4 ) v4 = cocos2d::CCArray::count(a1->m_createButtonBars) - 1; } else { v4 = 0; } a1->m_selectedTab = v4; for ( i = 0; i < cocos2d::CCArray::count(a1->m_createButtonBars); ++i ) { v8 = (EditButtonBar *)cocos2d::CCArray::objectAtIndex(a1->m_createButtonBars, i); v8->setVisible(v8, i == a1->m_selectedTab); v5 = i == a1->m_selectedTab; if ( v5 ) a1->m_createButtonBar = v8; } for ( j = 0; j < cocos2d::CCArray::count(a1->m_tabsArray); ++j ) { v10 = (CCMenuItemToggler *)cocos2d::CCArray::objectAtIndex(a1->m_tabsArray, j); v11 = j - a1->m_selectedTab; CCMenuItemToggler::toggle(v10, v11 == 0); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source