public void SelectTopButtons(TopButtonsState _newState) { switch (_newState) { case TopButtonsState.Select: { _sortByButton.gameObject.SetActive(true); _searchButton.gameObject.SetActive(true); _topButton.gameObject.SetActive(false); _newButton.gameObject.SetActive(false); _starButton.gameObject.SetActive(false); }; break; case TopButtonsState.SortBy: { _sortByButton.gameObject.SetActive(false); _searchButton.gameObject.SetActive(false); _topButton.gameObject.SetActive(true); _newButton.gameObject.SetActive(true); _starButton.gameObject.SetActive(true); }; break; case TopButtonsState.Search: { _sortByButton.gameObject.SetActive(false); _searchButton.gameObject.SetActive(false); _topButton.gameObject.SetActive(false); _newButton.gameObject.SetActive(false); _starButton.gameObject.SetActive(false); }; break; } }
public void SelectTopButtons(TopButtonsState _newState) { switch (_newState) { case TopButtonsState.Select: { _selectBtnsRect.gameObject.SetActive(true); _sortBtnsRect.gameObject.SetActive(false); }; break; case TopButtonsState.SortBy: { _selectBtnsRect.gameObject.SetActive(false); _sortBtnsRect.gameObject.SetActive(true); _diffButton.interactable = ScrappedData.Downloaded; }; break; case TopButtonsState.Search: { _selectBtnsRect.gameObject.SetActive(false); _sortBtnsRect.gameObject.SetActive(false); }; break; case TopButtonsState.Mode: { _selectBtnsRect.gameObject.SetActive(false); _sortBtnsRect.gameObject.SetActive(false); }; break; } }
public void SelectTopButtons(TopButtonsState _newState) { switch (_newState) { case TopButtonsState.Select: { _sortByButton.gameObject.SetActive(true); _searchButton.gameObject.SetActive(true); _topButton.gameObject.SetActive(false); _newButton.gameObject.SetActive(false); _trendingButton.gameObject.SetActive(false); _newlyRankedButton.gameObject.SetActive(false); _difficultyButton.gameObject.SetActive(false); // TogglePageUpDownButtons(true, true); }; break; case TopButtonsState.SortBy: { _sortByButton.gameObject.SetActive(false); _searchButton.gameObject.SetActive(false); _topButton.gameObject.SetActive(true); _newButton.gameObject.SetActive(true); _trendingButton.gameObject.SetActive(true); _newlyRankedButton.gameObject.SetActive(true); _difficultyButton.gameObject.SetActive(true); // TogglePageUpDownButtons(false, false); }; break; case TopButtonsState.Search: { _sortByButton.gameObject.SetActive(false); _searchButton.gameObject.SetActive(false); _topButton.gameObject.SetActive(false); _newButton.gameObject.SetActive(false); _trendingButton.gameObject.SetActive(false); _newlyRankedButton.gameObject.SetActive(false); _difficultyButton.gameObject.SetActive(false); }; break; } }
public void SelectTopButtons(TopButtonsState _newState) { switch (_newState) { case TopButtonsState.Select: { _sortByButton.gameObject.SetActive(true); _searchButton.gameObject.SetActive(true); _playlistsButton.gameObject.SetActive(true); _defButton.gameObject.SetActive(false); _newButton.gameObject.SetActive(false); _difficultyButton.gameObject.SetActive(false); }; break; case TopButtonsState.SortBy: { _sortByButton.gameObject.SetActive(false); _searchButton.gameObject.SetActive(false); _playlistsButton.gameObject.SetActive(false); _defButton.gameObject.SetActive(true); _newButton.gameObject.SetActive(true); _difficultyButton.gameObject.SetActive(true); }; break; case TopButtonsState.Search: { _sortByButton.gameObject.SetActive(false); _searchButton.gameObject.SetActive(false); _playlistsButton.gameObject.SetActive(false); _defButton.gameObject.SetActive(false); _newButton.gameObject.SetActive(false); _difficultyButton.gameObject.SetActive(false); }; break; } }
public void SelectTopButtons(TopButtonsState _newState) { switch (_newState) { case TopButtonsState.Select: { _sortByButton.gameObject.SetActive(true); _searchButton.gameObject.SetActive(true); _modeButton.gameObject.SetActive(true); _defButton.gameObject.SetActive(false); _newButton.gameObject.SetActive(false); _diffButton.gameObject.SetActive(false); _stdButton.gameObject.SetActive(false); _oneSbrButton.gameObject.SetActive(false); _noArrButton.gameObject.SetActive(false); }; break; case TopButtonsState.SortBy: { _sortByButton.gameObject.SetActive(false); _searchButton.gameObject.SetActive(false); _modeButton.gameObject.SetActive(false); _defButton.gameObject.SetActive(true); _newButton.gameObject.SetActive(true); _diffButton.gameObject.SetActive(true); _diffButton.interactable = ScrappedData.Downloaded; _stdButton.gameObject.SetActive(false); _oneSbrButton.gameObject.SetActive(false); _noArrButton.gameObject.SetActive(false); }; break; case TopButtonsState.Search: { _sortByButton.gameObject.SetActive(false); _searchButton.gameObject.SetActive(false); _modeButton.gameObject.SetActive(false); _defButton.gameObject.SetActive(false); _newButton.gameObject.SetActive(false); _diffButton.gameObject.SetActive(false); _stdButton.gameObject.SetActive(false); _oneSbrButton.gameObject.SetActive(false); _noArrButton.gameObject.SetActive(false); }; break; case TopButtonsState.Mode: { _sortByButton.gameObject.SetActive(false); _searchButton.gameObject.SetActive(false); _modeButton.gameObject.SetActive(false); _defButton.gameObject.SetActive(false); _newButton.gameObject.SetActive(false); _diffButton.gameObject.SetActive(false); _stdButton.gameObject.SetActive(true); _oneSbrButton.gameObject.SetActive(true); _noArrButton.gameObject.SetActive(true); }; break; } }