Ejemplo n.º 1
0
 public void ShowSelectHNWindow(bool show)
 {
     if (show)
     {
         int hnidx = this.uiCtrl.searchSortHNIdx;
         this.noProc     = true;
         this.selectInfo = hnidx != -1 ? ((IEnumerable <NetSelectHNScrollController.ScrollData>) this.scrollerDatas).FirstOrDefault <NetSelectHNScrollController.ScrollData>((Func <NetSelectHNScrollController.ScrollData, bool>)(d => d.info.userIdx == hnidx)) : (NetSelectHNScrollController.ScrollData)null;
         this.SetNowSelectToggle();
         this.noProc = false;
         ((Component)this).get_gameObject().SetActive(true);
     }
     else
     {
         ((Component)this).get_gameObject().SetActive(false);
     }
 }
Ejemplo n.º 2
0
 private void OnValueChanged(bool _isOn, int _idx)
 {
     if (this.skip)
     {
         return;
     }
     this.skip = true;
     if (!this.noProc)
     {
         this.uiCtrl.searchSortHNIdx     = !_isOn ? -1 : this.scrollerDatas[_idx].info.userIdx;
         this.uiCtrl.changeSearchSetting = true;
     }
     if (_isOn)
     {
         bool flag = !this.IsNowSelectInfo(this.scrollerDatas[_idx].info);
         this.selectInfo = this.scrollerDatas[_idx];
         if (flag)
         {
             for (int index1 = 0; index1 < this.view.ShownItemCount; ++index1)
             {
                 LoopListViewItem2 shownItemByIndex = this.view.GetShownItemByIndex(index1);
                 if (!Object.op_Equality((Object)shownItemByIndex, (Object)null))
                 {
                     NetSelectHNScrollViewInfo component = (NetSelectHNScrollViewInfo)((Component)shownItemByIndex).GetComponent <NetSelectHNScrollViewInfo>();
                     for (int index2 = 0; index2 < this.countPerRow; ++index2)
                     {
                         if (!this.IsNowSelectInfo(component.GetListInfo()))
                         {
                             component.SetToggleON(false);
                         }
                     }
                 }
             }
         }
     }
     else if (this.IsNowSelectInfo(this.scrollerDatas[_idx].info))
     {
         this.selectInfo = (NetSelectHNScrollController.ScrollData)null;
     }
     this.skip = false;
 }