コード例 #1
0
    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);
    }
コード例 #2
0
    /// <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); // カラーコード設定
        }
    }
コード例 #3
0
    /// <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); // カラーコード設定
    }
コード例 #4
0
    /// <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;
    }
コード例 #5
0
    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;
            }
        }
    }