void AddSortData(MAINMENU_SORT_SEQ sortType) { SortDialogTextButtonListContext sortButton = new SortDialogTextButtonListContext(); sortButton.SortType = sortType; sortButton.OffNameText = GameTextUtil.GetSortDialogSortText(sortType); sortButton.OnNameText = string.Format(GameTextUtil.GetText("filter_choice"), GameTextUtil.GetSortDialogSortText(sortType)); sortButton.OffTextColor = ColorUtil.COLOR_WHITE; sortButton.OnTextColor = ColorUtil.COLOR_YELLOW; sortButton.DidSelectItem = OnClickSortButton; SortButtons.Add(sortButton); }
/// <summary> /// ソートの種別表示の設定 /// </summary> /// <param name="sortInfo"></param> void SetStatusType(LocalSaveSortInfo sortInfo) { StatusTypeText = ""; if (sortInfo != null) { MAINMENU_SORT_SEQ sortType = (MAINMENU_SORT_SEQ)sortInfo.m_SortType; if (sortType == MAINMENU_SORT_SEQ.SEQ_INIT) { StatusTypeText = GameTextUtil.GetText("filter_text18"); } else { StatusTypeText = GameTextUtil.GetSortDialogSortText(sortType); } StatusTypeText = string.Format(GameTextUtil.GetText("sort_colorset"), StatusTypeText); // カラーコード設定 } }
/// <summary> /// ソートの種別表示の設定 /// </summary> /// <param name="item"></param> /// <param name="sortType"></param> void SetStatusType(MAINMENU_SORT_SEQ sortType, MAINMENU_SORT_SEQ[] favoriteSortTypes) { if (TutorialManager.IsExists && m_IsTutorialSortData == true) { StatusTypeText = GameTextUtil.GetText("tutorial_sort_items01"); } else { if (sortType == MAINMENU_SORT_SEQ.SEQ_INIT) { StatusTypeText = GameTextUtil.GetText("filter_text18"); } else { StatusTypeText = GameTextUtil.GetSortDialogSortText(sortType); } } StatusTypeText = string.Format(GameTextUtil.GetText("sort_colorset"), StatusTypeText); // カラーコード設定 }
/// <summary> /// 初期状態に戻すボタンを押したとき /// </summary> public void OnClickClearButton() { SoundUtil.PlaySE(SEID.SE_MENU_OK); string detailFilterText = string.Format(GameTextUtil.GetText("filter_choice"), GameTextUtil.GetSortDialogSortText(MAINMENU_SORT_SEQ.SEQ_INIT)); for (int i = 0; i < SortCells.Count; i++) { SortDialogFavoriteSortListContext favoriteSort = SortCells[i]; favoriteSort.SortType = MAINMENU_SORT_SEQ.SEQ_INIT; favoriteSort.DetailFilterText = detailFilterText; favoriteSort.IsAscOrder = true; } IsOnUsePriority = false; }
public void SetSortType(MAINMENU_SORT_SEQ sortType, int index) { if (SortCells.IsRange(index)) { SortCells[index].SortType = sortType; SortCells[index].DetailFilterText = string.Format(GameTextUtil.GetText("filter_choice"), GameTextUtil.GetSortDialogSortText(SortCells[index].SortType)); if (SortCells[index].SortType == MAINMENU_SORT_SEQ.SEQ_INIT) { SortCells[index].IsAscOrder = true; } } }