private void ResetEquipMenu() { _tabs = new List<EquipMenuTab>(); _tabs.Add(new EquipTab(this)); _tabs.Add(new PlayersTab(this)); if (MenuEngine.Game.NetworkMode != NetworkMode.Standalone) _tabs.Add(_chatTab = new ChatTab(this)); _tabs.Add(new MatchTab(this)); _tab = _tabs[_tabIndex = 0]; }
private void ChangeTab(int step = 1) { _tabIndex = (_tabIndex + step).Modulo(_tabs.Count); _tab = _tabs[_tabIndex]; MenuEngine.Game.SoundEngine.PlaySound("MenuChangeItem"); _tabFadeStartTime = MenuEngine.Game.GameTime.TotalRealTime; }