Beispiel #1
0
 /// <summary>
 /// お好みソートの項目を選択したとき
 /// </summary>
 /// <param name="sortButton"></param>
 void OnClickFavoriteSortSelectPanelSortButton(SortDialogTextButtonListContext sortButton)
 {
     m_FavoriteSortPanel.SetSortType(sortButton.SortType, m_FavoriteSortPanel.SelectIndex);
     m_FavoriteSortPanel.gameObject.SetActive(true);
     m_FavoriteSortSelectGridPanel.gameObject.SetActive(false);
     IsActiveOneButton = false;
     IsActiveTwoButton = true;
 }
Beispiel #2
0
    void OnClickSortButton(SortDialogTextButtonListContext sortButton)
    {
        SoundUtil.PlaySE(SEID.SE_MENU_OK);

        if (OnClickSortButtonAction != null)
        {
            OnClickSortButtonAction(sortButton);
        }
    }
Beispiel #3
0
    void OnClickReceiveFilterButton(SortDialogTextButtonListContext filterButton)
    {
        SoundUtil.PlaySE(SEID.SE_MENU_OK);

        if (m_SortDialog != null && m_SortDialog.m_MissionFilterData != null)
        {
            m_SortDialog.m_MissionFilterData.m_receive_type = filterButton.AchievementReceiveType;
            UpdateReceiveFilter(filterButton.AchievementReceiveType);
        }
    }
Beispiel #4
0
    void AddDrawFilterData(MasterDataDefineLabel.AchievementFilterType filterType)
    {
        SortDialogTextButtonListContext filterButton = new SortDialogTextButtonListContext();

        filterButton.AchievementFilterType = filterType;
        filterButton.OffNameText           = GameTextUtil.GetMissonDrawFilterText(filterType);
        filterButton.OnNameText            = string.Format(GameTextUtil.GetText("filter_choice"), GameTextUtil.GetMissonDrawFilterText(filterType));
        filterButton.OffTextColor          = ColorUtil.COLOR_WHITE;
        filterButton.OnTextColor           = ColorUtil.COLOR_YELLOW;
        filterButton.DidSelectItem         = OnClickDrawFilterButton;
        DrawFilterButtons.Add(filterButton);
    }
Beispiel #5
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);
    }
Beispiel #6
0
 /// <summary>
 /// ソートの項目を選択したとき
 /// </summary>
 /// <param name="sortButton"></param>
 void OnClickMainPanelSortButton(SortDialogTextButtonListContext sortButton)
 {
     if (sortButton.SortType == MAINMENU_SORT_SEQ.SEQ_SORT_TYPE_FAVORITE_SORT)
     {
         ConfirmSortType(); // ソート設定を確定させる
         AndroidBackKeyManager.Instance.StackPush(m_FavoriteSortPanel.gameObject, OnBackKeyFavoriteSortPanel);
         IsActiveOneButton = false;
         IsActiveTwoButton = true;
         m_MainPanel.gameObject.SetActive(false);
         m_FavoriteSortPanel.gameObject.SetActive(true);
         m_FavoriteSortPanel.UpdateData(m_SortData);
     }
     else
     {
         LocalSaveSortInfo sort = new LocalSaveSortInfo();
         sort.m_SortType       = (int)sortButton.SortType;
         sort.m_SortIsAscOrder = m_MainPanel.IsAscOrder;
         m_MainPanel.UpdateSort(sort);
     }
 }
Beispiel #7
0
    /// <summary>
    /// ソート設定を確定させる
    /// </summary>
    void ConfirmSortType()
    {
        if (m_DialogType == DIALOG_TYPE.UNIT || m_DialogType == DIALOG_TYPE.FRIEND)
        {
            if (m_SortData != null)
            {
                SortDialogTextButtonListContext item = m_MainPanel.SortButtons.Find((v) => v.IsSelect == true);
                if (item != null)
                {
                    m_SortData.m_SortType = (int)item.SortType;
                }
                else
                {
                    m_SortData = SetDefaultSortInfo(m_SortData, m_DialogType);
                }
                m_SortData.m_SortIsAscOrder = m_MainPanel.IsAscOrder;

                // 属性フィルタの設定
                m_SortData.m_FilterElements = new int[m_MainPanel.Elements.Count];
                m_SortData.m_FilterElements = Array.ConvertAll(m_SortData.m_FilterElements, (v) => - 1);
                int count = 0;
                for (int i = 0; i < m_MainPanel.Elements.Count; i++)
                {
                    if (m_MainPanel.Elements[i].IsSelect == true)
                    {
                        m_SortData.m_FilterElements[count] = (int)m_MainPanel.Elements[i].ElementType;
                        ++count;
                    }
                }
                if (count == 0)
                {
                    m_SortData.m_FilterElements = null;
                }
            }
        }
        else if (m_DialogType == DIALOG_TYPE.MISSION)
        {
        }
    }