Esempio n. 1
0
 public void RefreshFilterMask()
 {
     if (this.param == null || this.partyMainSlot != -1 || this.partySubSlot != -1)
     {
         this.filterMask = UnitListFilterWindow.SelectType.NONE;
     }
     else
     {
         this.filterMask = UnitListFilterWindow.GetFilterMask(this);
     }
 }
Esempio n. 2
0
        public void LoadSelectType()
        {
            this.m_SelectType = UnitListFilterWindow.SelectType.RARITY_1 | UnitListFilterWindow.SelectType.RARITY_2 | UnitListFilterWindow.SelectType.RARITY_3 | UnitListFilterWindow.SelectType.RARITY_4 | UnitListFilterWindow.SelectType.RARITY_5 | UnitListFilterWindow.SelectType.WEAPON_SLASH | UnitListFilterWindow.SelectType.WEAPON_STAB | UnitListFilterWindow.SelectType.WEAPON_BLOW | UnitListFilterWindow.SelectType.WEAPON_SHOT | UnitListFilterWindow.SelectType.WEAPON_MAG | UnitListFilterWindow.SelectType.WEAPON_NONE | UnitListFilterWindow.SelectType.BIRTH_ENV | UnitListFilterWindow.SelectType.BIRTH_WRATH | UnitListFilterWindow.SelectType.BIRTH_SAGA | UnitListFilterWindow.SelectType.BIRTH_SLOTH | UnitListFilterWindow.SelectType.BIRTH_LUST | UnitListFilterWindow.SelectType.BIRTH_WADATSUMI | UnitListFilterWindow.SelectType.BIRTH_DESERT | UnitListFilterWindow.SelectType.BIRTH_GREED | UnitListFilterWindow.SelectType.BIRTH_GLUTTONY | UnitListFilterWindow.SelectType.BIRTH_OTHER | UnitListFilterWindow.SelectType.BIRTH_NOZ;
            string key = "UNITLIST_FILTER";

            if (!string.IsNullOrEmpty(key))
            {
                if (PlayerPrefsUtility.HasKey(key))
                {
                    string s      = PlayerPrefsUtility.GetString(key, string.Empty);
                    int    result = 0;
                    if (!string.IsNullOrEmpty(s) && int.TryParse(s, out result))
                    {
                        this.ResetSelect((UnitListFilterWindow.SelectType)result);
                    }
                }
                else
                {
                    string str1 = "UNITLIST";
                    if (!string.IsNullOrEmpty(str1))
                    {
                        if (PlayerPrefsUtility.HasKey(str1 + "&"))
                        {
                            string str2 = PlayerPrefsUtility.GetString(str1 + "&", string.Empty);
                            if (!string.IsNullOrEmpty(str2))
                            {
                                string str3    = str2;
                                char[] chArray = new char[1] {
                                    '&'
                                };
                                foreach (string text in str3.Split(chArray))
                                {
                                    this.ResetSelect(UnitListFilterWindow.ConvertFilterString(text));
                                }
                            }
                        }
                        this.SaveSelectType();
                    }
                }
            }
            this.m_SelectTypeReg = this.m_SelectType;
        }
Esempio n. 3
0
 protected override void Awake()
 {
     base.Awake();
     this.m_WindowController.Initialize((FlowNode)this);
     this.m_WindowController.Add((FlowWindowBase.SerializeParamBase) this.m_RootWindowParam);
     this.m_WindowController.Add((FlowWindowBase.SerializeParamBase) this.m_SortWindowParam);
     this.m_WindowController.Add((FlowWindowBase.SerializeParamBase) this.m_FilterWindowParam);
     this.m_RootWindow   = this.m_WindowController.GetWindow <UnitListRootWindow>();
     this.m_SortWindow   = this.m_WindowController.GetWindow <UnitListSortWindow>();
     this.m_FilterWindow = this.m_WindowController.GetWindow <UnitListFilterWindow>();
     if (this.m_RootWindow != null)
     {
         this.m_RootWindow.SetRoot(this);
     }
     if (this.m_SortWindow != null)
     {
         this.m_SortWindow.SetRoot(this);
     }
     if (this.m_FilterWindow == null)
     {
         return;
     }
     this.m_FilterWindow.SetRoot(this);
 }