Ejemplo n.º 1
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;
 }