示例#1
0
 public void Unregister(UiIconSlot icon)
 {
     if (this._activeIcons.Contains(icon))
     {
         this._activeIcons.Remove(icon);
     }
     this.RefreshActiveFilters();
 }
示例#2
0
 public void Register(UiIconSlot icon, bool priority)
 {
     if (!this._activeIcons.Contains(icon))
     {
         if (priority)
         {
             this._activeIcons.Insert(0, icon);
         }
         else
         {
             this._activeIcons.Add(icon);
         }
     }
     this.RefreshActiveFilters();
 }