public void SetData(NetworkInfo.SelectHNInfo _data, Action <bool> _onValueChange)
 {
     // ISSUE: object of a compiler-generated type is created
     // ISSUE: variable of a compiler-generated type
     NetSelectHNScrollViewInfo.\u003CSetData\u003Ec__AnonStorey0 dataCAnonStorey0 = new NetSelectHNScrollViewInfo.\u003CSetData\u003Ec__AnonStorey0();
     // ISSUE: reference to a compiler-generated field
     dataCAnonStorey0._onValueChange = _onValueChange;
     ((UnityEventBase)this.row.tglItem.onValueChanged).RemoveAllListeners();
     // ISSUE: method pointer
     ((UnityEvent <bool>) this.row.tglItem.onValueChanged).AddListener(new UnityAction <bool>((object)dataCAnonStorey0, __methodptr(\u003C\u003Em__0)));
     this.row.text.set_text(_data.drawname);
     this.row.info = _data;
 }
Example #2
0
        private LoopListViewItem2 OnUpdate(LoopListView2 _view, int _index)
        {
            if (_index < 0)
            {
                return((LoopListViewItem2)null);
            }
            LoopListViewItem2         loopListViewItem2 = _view.NewListViewItem(((Object)this.original).get_name());
            NetSelectHNScrollViewInfo component         = (NetSelectHNScrollViewInfo)((Component)loopListViewItem2).GetComponent <NetSelectHNScrollViewInfo>();

            for (int index1 = 0; index1 < this.countPerRow; ++index1)
            {
                int index = _index * this.countPerRow + index1;
                NetworkInfo.SelectHNInfo info = this.scrollerDatas.SafeGet <NetSelectHNScrollController.ScrollData>(index)?.info;
                component.SetData(info, (Action <bool>)(_isOn => this.OnValueChanged(_isOn, index)));
                this.noProc = true;
                component.SetToggleON(this.IsNowSelectInfo(info));
                this.noProc = false;
            }
            return(loopListViewItem2);
        }
Example #3
0
 private bool IsNowSelectInfo(NetworkInfo.SelectHNInfo _info)
 {
     return(_info != null && this.selectInfo != null && this.selectInfo.info == _info);
 }