protected virtual void Start() { if (!((IEnumerable <CvsBase.ItemInfo>) this.items).Any <CvsBase.ItemInfo>()) { return; } // ISSUE: object of a compiler-generated type is created ((IEnumerable <CvsBase.ItemInfo>) this.items).Select <CvsBase.ItemInfo, \u003C\u003E__AnonType15 <CvsBase.ItemInfo, int> >((Func <CvsBase.ItemInfo, int, \u003C\u003E__AnonType15 <CvsBase.ItemInfo, int> >)((val, idx) => new \u003C\u003E__AnonType15 <CvsBase.ItemInfo, int>(val, idx))).Where <\u003C\u003E__AnonType15 <CvsBase.ItemInfo, int> >((Func <\u003C\u003E__AnonType15 <CvsBase.ItemInfo, int>, bool>)(item => item.val != null && Object.op_Inequality((Object)item.val.tglItem, (Object)null))).ToList <\u003C\u003E__AnonType15 <CvsBase.ItemInfo, int> >().ForEach((Action <\u003C\u003E__AnonType15 <CvsBase.ItemInfo, int> >)(item => ObservableExtensions.Subscribe <bool>(Observable.Where <bool>((IObservable <M0>)UnityUIComponentExtensions.OnValueChangedAsObservable((Toggle)item.val.tglItem), (Func <M0, bool>)(isOn => isOn)), (Action <M0>)(_ => { // ISSUE: object of a compiler-generated type is created foreach (\u003C\u003E__AnonType5 <CvsBase.ItemInfo, int> anonType5 in ((IEnumerable <CvsBase.ItemInfo>) this.items).Select <CvsBase.ItemInfo, \u003C\u003E__AnonType5 <CvsBase.ItemInfo, int> >((Func <CvsBase.ItemInfo, int, \u003C\u003E__AnonType5 <CvsBase.ItemInfo, int> >)((v, i) => new \u003C\u003E__AnonType5 <CvsBase.ItemInfo, int>(v, i)))) { if (anonType5.i != item.idx && anonType5.v != null) { CanvasGroup cgItem = anonType5.v.cgItem; if (Object.op_Implicit((Object)cgItem)) { cgItem.Enable(false, false); } } } if (Object.op_Implicit((Object)item.val.cgItem)) { item.val.cgItem.Enable(true, false); } this.customBase.customCtrl.showColorCvs = false; this.customBase.customCtrl.showPattern = false; })))); }
public virtual void Start() { if (!((IEnumerable <UI_ButtonGroupCtrl.ItemInfo>) this.items).Any <UI_ButtonGroupCtrl.ItemInfo>()) { return; } // ISSUE: object of a compiler-generated type is created ((IEnumerable <UI_ButtonGroupCtrl.ItemInfo>) this.items).Select <UI_ButtonGroupCtrl.ItemInfo, \u003C\u003E__AnonType15 <UI_ButtonGroupCtrl.ItemInfo, int> >((Func <UI_ButtonGroupCtrl.ItemInfo, int, \u003C\u003E__AnonType15 <UI_ButtonGroupCtrl.ItemInfo, int> >)((val, idx) => new \u003C\u003E__AnonType15 <UI_ButtonGroupCtrl.ItemInfo, int>(val, idx))).Where <\u003C\u003E__AnonType15 <UI_ButtonGroupCtrl.ItemInfo, int> >((Func <\u003C\u003E__AnonType15 <UI_ButtonGroupCtrl.ItemInfo, int>, bool>)(item => item.val != null && Object.op_Inequality((Object)item.val.btnItem, (Object)null))).ToList <\u003C\u003E__AnonType15 <UI_ButtonGroupCtrl.ItemInfo, int> >().ForEach((Action <\u003C\u003E__AnonType15 <UI_ButtonGroupCtrl.ItemInfo, int> >)(item => ObservableExtensions.Subscribe <Unit>((IObservable <M0>)UnityUIComponentExtensions.OnClickAsObservable(item.val.btnItem), (Action <M0>)(_ => { // ISSUE: object of a compiler-generated type is created foreach (\u003C\u003E__AnonType5 <UI_ButtonGroupCtrl.ItemInfo, int> anonType5 in ((IEnumerable <UI_ButtonGroupCtrl.ItemInfo>) this.items).Select <UI_ButtonGroupCtrl.ItemInfo, \u003C\u003E__AnonType5 <UI_ButtonGroupCtrl.ItemInfo, int> >((Func <UI_ButtonGroupCtrl.ItemInfo, int, \u003C\u003E__AnonType5 <UI_ButtonGroupCtrl.ItemInfo, int> >)((v, i) => new \u003C\u003E__AnonType5 <UI_ButtonGroupCtrl.ItemInfo, int>(v, i)))) { if (anonType5.i != item.idx && anonType5.v != null) { CanvasGroup cgItem = anonType5.v.cgItem; if (Object.op_Inequality((Object)null, (Object)cgItem)) { cgItem.Enable(false, false); } } } if (!Object.op_Inequality((Object)null, (Object)item.val.cgItem)) { return; } item.val.cgItem.Enable(true, false); })))); }
public void Show() { _canvasGroup.Enable(); foreach (CurrencyView currencyView in _currencyViews) { currencyView.UpdateView(); } }
public void Show() { _canvasGroup.Enable(); }