protected override void Start() { base.Start(); this.customBase.actUpdateCvsHair += new Action(((CvsBase)this).UpdateCustomUI); this.UpdateHairList(); this.sscHairType.SetToggleID(this.hair.parts[this.SNo].id); this.sscHairType.onSelect = (Action <CustomSelectInfo>)(info => { if (info == null || this.hair.parts[this.SNo].id == info.id) { return; } this.chaCtrl.ChangeHair(this.SNo, info.id, false); this.chaCtrl.SetHairAcsDefaultColorParameterOnly(this.SNo); this.chaCtrl.ChangeSettingHairAcsColor(this.SNo); this.SetDrawSettingByHair(); }); this.csBaseColor.actUpdateColor = (Action <Color>)(color => { if (this.autoSetting) { Color topColor; Color underColor; Color specular; this.chaCtrl.CreateHairColor(color, out topColor, out underColor, out specular); for (int parts = 0; parts < this.hair.parts.Length; ++parts) { if (this.sameSetting || parts == this.SNo) { this.hair.parts[parts].baseColor = color; this.hair.parts[parts].topColor = topColor; this.hair.parts[parts].underColor = underColor; this.hair.parts[parts].specular = specular; this.chaCtrl.ChangeSettingHairColor(parts, true, this.autoSetting, this.autoSetting); this.chaCtrl.ChangeSettingHairSpecular(parts); this.csTopColor.SetColor(this.hair.parts[this.SNo].topColor); this.csUnderColor.SetColor(this.hair.parts[this.SNo].underColor); this.csSpecular.SetColor(this.hair.parts[this.SNo].specular); } } } else { for (int parts = 0; parts < this.hair.parts.Length; ++parts) { if (this.sameSetting || parts == this.SNo) { this.hair.parts[parts].baseColor = color; this.chaCtrl.ChangeSettingHairColor(parts, true, this.autoSetting, this.autoSetting); } } } }); this.csTopColor.actUpdateColor = (Action <Color>)(color => { for (int parts = 0; parts < this.hair.parts.Length; ++parts) { if (this.sameSetting || parts == this.SNo) { this.hair.parts[parts].topColor = color; this.chaCtrl.ChangeSettingHairColor(parts, false, true, false); } } }); this.csUnderColor.actUpdateColor = (Action <Color>)(color => { for (int parts = 0; parts < this.hair.parts.Length; ++parts) { if (this.sameSetting || parts == this.SNo) { this.hair.parts[parts].underColor = color; this.chaCtrl.ChangeSettingHairColor(parts, false, false, true); } } }); this.csSpecular.actUpdateColor = (Action <Color>)(color => { for (int parts = 0; parts < this.hair.parts.Length; ++parts) { if (this.sameSetting || parts == this.SNo) { this.hair.parts[parts].specular = color; this.chaCtrl.ChangeSettingHairSpecular(parts); } } }); this.ssMetallic.onChange = (Action <float>)(value => { for (int parts = 0; parts < this.hair.parts.Length; ++parts) { if (this.sameSetting || parts == this.SNo) { this.hair.parts[parts].metallic = value; this.chaCtrl.ChangeSettingHairMetallic(parts); } } }); this.ssMetallic.onSetDefaultValue = (Func <float>)(() => this.defChaCtrl.custom.hair.parts[this.SNo].metallic); this.ssSmoothness.onChange = (Action <float>)(value => { for (int parts = 0; parts < this.hair.parts.Length; ++parts) { if (this.sameSetting || parts == this.SNo) { this.hair.parts[parts].smoothness = value; this.chaCtrl.ChangeSettingHairSmoothness(parts); } } }); this.ssSmoothness.onSetDefaultValue = (Func <float>)(() => this.defChaCtrl.custom.hair.parts[this.SNo].smoothness); this.hcPreset.onClick = (Action <CustomHairColorPreset.HairColorInfo>)(preset => { for (int parts = 0; parts < this.hair.parts.Length; ++parts) { if (this.sameSetting || parts == this.SNo) { this.hair.parts[parts].baseColor = preset.baseColor; this.hair.parts[parts].topColor = preset.topColor; this.hair.parts[parts].underColor = preset.underColor; this.hair.parts[parts].specular = preset.specular; this.hair.parts[parts].metallic = preset.metallic; this.hair.parts[parts].smoothness = preset.smoothness; this.chaCtrl.ChangeSettingHairColor(parts, true, true, true); this.chaCtrl.ChangeSettingHairSpecular(parts); this.chaCtrl.ChangeSettingHairMetallic(parts); this.chaCtrl.ChangeSettingHairSmoothness(parts); this.csBaseColor.SetColor(this.hair.parts[parts].baseColor); this.csTopColor.SetColor(this.hair.parts[parts].topColor); this.csUnderColor.SetColor(this.hair.parts[parts].underColor); this.csSpecular.SetColor(this.hair.parts[parts].specular); this.ssMetallic.SetSliderValue(this.hair.parts[parts].metallic); this.ssSmoothness.SetSliderValue(this.hair.parts[parts].smoothness); } } }); if (this.csAcsColor != null && ((IEnumerable <CustomColorSet>) this.csAcsColor).Any <CustomColorSet>()) { ((IEnumerable <CustomColorSet>) this.csAcsColor).ToList <CustomColorSet>().ForEach((Action <CustomColorSet>)(item => item.actUpdateColor = (Action <Color>)(color => { this.hair.parts[this.SNo].acsColorInfo[0].color = color; this.chaCtrl.ChangeSettingHairAcsColor(this.SNo); }))); } if (Object.op_Implicit((Object)this.btnCorrectAllReset)) { ObservableExtensions.Subscribe <Unit>((IObservable <M0>)UnityUIComponentExtensions.OnClickAsObservable(this.btnCorrectAllReset), (Action <M0>)(_ => { this.chaCtrl.SetDefaultHairCorrectPosRateAll(this.SNo); this.chaCtrl.SetDefaultHairCorrectRotRateAll(this.SNo); this.UpdateAllBundleUI(-1); })); } ObservableExtensions.Subscribe <bool>(UnityEventExtensions.AsObservable <bool>((UnityEvent <M0>) this.tglGuidDraw.onValueChanged), (Action <M0>)(isOn => this.hairCtrlSetting.drawController = isOn)); if (((IEnumerable <Toggle>) this.tglGuidType).Any <Toggle>()) { // ISSUE: object of a compiler-generated type is created ((IEnumerable <Toggle>) this.tglGuidType).Select <Toggle, \u003C\u003E__AnonType15 <Toggle, int> >((Func <Toggle, int, \u003C\u003E__AnonType15 <Toggle, int> >)((val, idx) => new \u003C\u003E__AnonType15 <Toggle, int>(val, idx))).Where <\u003C\u003E__AnonType15 <Toggle, int> >((Func <\u003C\u003E__AnonType15 <Toggle, int>, bool>)(item => Object.op_Inequality((Object)item.val, (Object)null))).ToList <\u003C\u003E__AnonType15 <Toggle, int> >().ForEach((Action <\u003C\u003E__AnonType15 <Toggle, int> >)(item => ObservableExtensions.Subscribe <bool>(Observable.Where <bool>(UnityEventExtensions.AsObservable <bool>((UnityEvent <M0>)item.val.onValueChanged), (Func <M0, bool>)(isOn => isOn)), (Action <M0>)(isOn => { this.hairCtrlSetting.controllerType = item.idx; this.UpdateGuidType(); })))); } ObservableExtensions.Subscribe <float>((IObservable <M0>)UnityUIComponentExtensions.OnValueChangedAsObservable(this.sldGuidSpeed), (Action <M0>)(val => { this.hairCtrlSetting.controllerSpeed = val; this.UpdateGuidSpeed(); })); ObservableExtensions.Subscribe <PointerEventData>((IObservable <M0>)ObservableTriggerExtensions.OnScrollAsObservable((UIBehaviour)this.sldGuidSpeed), (Action <M0>)(scl => { if (!this.customBase.sliderControlWheel) { return; } this.sldGuidSpeed.set_value(Mathf.Clamp(this.sldGuidSpeed.get_value() + (float)(scl.get_scrollDelta().y * -0.00999999977648258), 0.1f, 1f)); })); ObservableExtensions.Subscribe <float>((IObservable <M0>)UnityUIComponentExtensions.OnValueChangedAsObservable(this.sldGuidScale), (Action <M0>)(val => { this.hairCtrlSetting.controllerScale = val; this.UpdateGuidScale(); })); ObservableExtensions.Subscribe <PointerEventData>((IObservable <M0>)ObservableTriggerExtensions.OnScrollAsObservable((UIBehaviour)this.sldGuidScale), (Action <M0>)(scl => { if (!this.customBase.sliderControlWheel) { return; } this.sldGuidScale.set_value(Mathf.Clamp(this.sldGuidScale.get_value() + (float)(scl.get_scrollDelta().y * -0.00999999977648258), 0.3f, 3f)); })); this.UpdateDrawControllerState(); this.StartCoroutine(this.SetInputText()); this.backSNo = this.SNo; }
public void Initialize(int _slotNo, int _correctNo) { this.slotNo = _slotNo; this.correctNo = _correctNo; if (this.slotNo == -1 || this.correctNo == -1) { return; } if (Object.op_Implicit((Object)this.title)) { this.title.set_text(string.Format("{0}{1:00}", (object)"調整", (object)(this.correctNo + 1))); } this.UpdateCustomUI(); if (this.lstDisposable != null && this.lstDisposable.Count != 0) { int count = this.lstDisposable.Count; for (int index = 0; index < count; ++index) { this.lstDisposable[index].Dispose(); } } IDisposable disposable = (IDisposable)null; // ISSUE: object of a compiler-generated type is created ((IEnumerable <Toggle>) this.tglPosRate).Select <Toggle, \u003C\u003E__AnonType12 <Toggle, byte> >((Func <Toggle, int, \u003C\u003E__AnonType12 <Toggle, byte> >)((p, i) => new \u003C\u003E__AnonType12 <Toggle, byte>(p, (byte)i))).ToList <\u003C\u003E__AnonType12 <Toggle, byte> >().ForEach((Action <\u003C\u003E__AnonType12 <Toggle, byte> >)(p => { disposable = ObservableExtensions.Subscribe <bool>(Observable.Where <bool>((IObservable <M0>)UnityUIComponentExtensions.OnValueChangedAsObservable(p.toggle), (Func <M0, bool>)(isOn => isOn)), (Action <M0>)(_ => this.acsCtrlSetting.correctSetting[this.correctNo].posRate = (int)p.index)); this.lstDisposable.Add(disposable); })); // ISSUE: object of a compiler-generated type is created ((IEnumerable <Toggle>) this.tglRotRate).Select <Toggle, \u003C\u003E__AnonType12 <Toggle, byte> >((Func <Toggle, int, \u003C\u003E__AnonType12 <Toggle, byte> >)((p, i) => new \u003C\u003E__AnonType12 <Toggle, byte>(p, (byte)i))).ToList <\u003C\u003E__AnonType12 <Toggle, byte> >().ForEach((Action <\u003C\u003E__AnonType12 <Toggle, byte> >)(p => { disposable = ObservableExtensions.Subscribe <bool>(Observable.Where <bool>((IObservable <M0>)UnityUIComponentExtensions.OnValueChangedAsObservable(p.toggle), (Func <M0, bool>)(isOn => isOn)), (Action <M0>)(_ => this.acsCtrlSetting.correctSetting[this.correctNo].rotRate = (int)p.index)); this.lstDisposable.Add(disposable); })); // ISSUE: object of a compiler-generated type is created ((IEnumerable <Toggle>) this.tglSclRate).Select <Toggle, \u003C\u003E__AnonType12 <Toggle, byte> >((Func <Toggle, int, \u003C\u003E__AnonType12 <Toggle, byte> >)((p, i) => new \u003C\u003E__AnonType12 <Toggle, byte>(p, (byte)i))).ToList <\u003C\u003E__AnonType12 <Toggle, byte> >().ForEach((Action <\u003C\u003E__AnonType12 <Toggle, byte> >)(p => { disposable = ObservableExtensions.Subscribe <bool>(Observable.Where <bool>((IObservable <M0>)UnityUIComponentExtensions.OnValueChangedAsObservable(p.toggle), (Func <M0, bool>)(isOn => isOn)), (Action <M0>)(_ => this.acsCtrlSetting.correctSetting[this.correctNo].sclRate = (int)p.index)); this.lstDisposable.Add(disposable); })); float downTimeCnt = 0.0f; float loopTimeCnt = 0.0f; bool change = false; int[] flag = new int[3] { 1, 2, 4 }; // ISSUE: object of a compiler-generated type is created ((IEnumerable <Button>) this.btnPos).Select <Button, \u003C\u003E__AnonType13 <Button, int> >((Func <Button, int, \u003C\u003E__AnonType13 <Button, int> >)((p, i) => new \u003C\u003E__AnonType13 <Button, int>(p, i))).ToList <\u003C\u003E__AnonType13 <Button, int> >().ForEach((Action <\u003C\u003E__AnonType13 <Button, int> >)(p => { disposable = ObservableExtensions.Subscribe <Unit>((IObservable <M0>)UnityUIComponentExtensions.OnClickAsObservable(p.btn), (Action <M0>)(_ => { if (change) { return; } int index = p.index / 2; int num = p.index % 2 != 0 ? 1 : -1; if (index == 0) { num *= -1; } this.chaCtrl.SetAccessoryPos(this.slotNo, this.correctNo, (float)num * this.movePosValue[this.acsCtrlSetting.correctSetting[this.correctNo].posRate], true, flag[index]); this.orgAcs.parts[this.slotNo].addMove[this.correctNo, 0] = this.nowAcs.parts[this.slotNo].addMove[this.correctNo, 0]; this.inpPos[index].set_text(((Vector3) ref this.nowAcs.parts[this.slotNo].addMove.Address(this.correctNo, 0)).get_Item(index).ToString()); this.SetControllerTransform(); })); this.lstDisposable.Add(disposable); disposable = (IDisposable)DisposableExtensions.AddTo <IDisposable>((M0)ObservableExtensions.Subscribe <Unit>(Observable.RepeatUntilDestroy <Unit>(Observable.TakeUntil <Unit, PointerEventData>(Observable.SkipUntil <Unit, PointerEventData>((IObservable <M0>)ObservableTriggerExtensions.UpdateAsObservable((Component)p.btn), (IObservable <M1>)Observable.Do <PointerEventData>((IObservable <M0>)ObservableTriggerExtensions.OnPointerDownAsObservable((UIBehaviour)p.btn), (Action <M0>)(_ => { downTimeCnt = 0.0f; loopTimeCnt = 0.0f; change = false; }))), (IObservable <M1>)ObservableTriggerExtensions.OnPointerUpAsObservable((UIBehaviour)p.btn)), (Component)this), (Action <M0>)(_ => { int index = p.index / 2; int num1 = p.index % 2 != 0 ? 1 : -1; if (index == 0) { num1 *= -1; } float num2 = (float)num1 * this.movePosValue[this.acsCtrlSetting.correctSetting[this.correctNo].posRate]; float num3 = 0.0f; downTimeCnt += Time.get_deltaTime(); if ((double)downTimeCnt <= 0.300000011920929) { return; } for (loopTimeCnt += Time.get_deltaTime(); (double)loopTimeCnt > 0.0500000007450581; loopTimeCnt -= 0.05f) { num3 += num2; } if ((double)num3 == 0.0) { return; } this.chaCtrl.SetAccessoryPos(this.slotNo, this.correctNo, num3, true, flag[index]); this.orgAcs.parts[this.slotNo].addMove[this.correctNo, 0] = this.nowAcs.parts[this.slotNo].addMove[this.correctNo, 0]; this.inpPos[index].set_text(((Vector3) ref this.nowAcs.parts[this.slotNo].addMove.Address(this.correctNo, 0)).get_Item(index).ToString()); change = true; this.SetControllerTransform(); })), (Component)this); this.lstDisposable.Add(disposable); })); // ISSUE: object of a compiler-generated type is created ((IEnumerable <InputField>) this.inpPos).Select <InputField, \u003C\u003E__AnonType14 <InputField, int> >((Func <InputField, int, \u003C\u003E__AnonType14 <InputField, int> >)((p, i) => new \u003C\u003E__AnonType14 <InputField, int>(p, i))).ToList <\u003C\u003E__AnonType14 <InputField, int> >().ForEach((Action <\u003C\u003E__AnonType14 <InputField, int> >)(p => { disposable = ObservableExtensions.Subscribe <string>(UnityEventExtensions.AsObservable <string>((UnityEvent <M0>)p.inp.get_onEndEdit()), (Action <M0>)(value => { int index = p.index % 3; float num = CustomBase.ConvertValueFromTextLimit(-100f, 100f, 1, value); p.inp.set_text(num.ToString()); this.chaCtrl.SetAccessoryPos(this.slotNo, this.correctNo, num, false, flag[index]); this.orgAcs.parts[this.slotNo].addMove[this.correctNo, 0] = this.nowAcs.parts[this.slotNo].addMove[this.correctNo, 0]; this.SetControllerTransform(); })); this.lstDisposable.Add(disposable); })); // ISSUE: object of a compiler-generated type is created ((IEnumerable <Button>) this.btnPosReset).Select <Button, \u003C\u003E__AnonType13 <Button, int> >((Func <Button, int, \u003C\u003E__AnonType13 <Button, int> >)((p, i) => new \u003C\u003E__AnonType13 <Button, int>(p, i))).ToList <\u003C\u003E__AnonType13 <Button, int> >().ForEach((Action <\u003C\u003E__AnonType13 <Button, int> >)(p => { disposable = ObservableExtensions.Subscribe <Unit>((IObservable <M0>)UnityUIComponentExtensions.OnClickAsObservable(p.btn), (Action <M0>)(_ => { this.inpPos[p.index].set_text("0"); this.chaCtrl.SetAccessoryPos(this.slotNo, this.correctNo, 0.0f, false, flag[p.index]); this.orgAcs.parts[this.slotNo].addMove[this.correctNo, 0] = this.nowAcs.parts[this.slotNo].addMove[this.correctNo, 0]; this.SetControllerTransform(); })); this.lstDisposable.Add(disposable); })); // ISSUE: object of a compiler-generated type is created ((IEnumerable <Button>) this.btnRot).Select <Button, \u003C\u003E__AnonType13 <Button, int> >((Func <Button, int, \u003C\u003E__AnonType13 <Button, int> >)((p, i) => new \u003C\u003E__AnonType13 <Button, int>(p, i))).ToList <\u003C\u003E__AnonType13 <Button, int> >().ForEach((Action <\u003C\u003E__AnonType13 <Button, int> >)(p => { disposable = ObservableExtensions.Subscribe <Unit>((IObservable <M0>)UnityUIComponentExtensions.OnClickAsObservable(p.btn), (Action <M0>)(_ => { if (change) { return; } int index = p.index / 2; this.chaCtrl.SetAccessoryRot(this.slotNo, this.correctNo, (p.index % 2 != 0 ? 1f : -1f) * this.moveRotValue[this.acsCtrlSetting.correctSetting[this.correctNo].rotRate], true, flag[index]); this.orgAcs.parts[this.slotNo].addMove[this.correctNo, 1] = this.nowAcs.parts[this.slotNo].addMove[this.correctNo, 1]; this.inpRot[index].set_text(((Vector3) ref this.nowAcs.parts[this.slotNo].addMove.Address(this.correctNo, 1)).get_Item(index).ToString()); this.SetControllerTransform(); })); this.lstDisposable.Add(disposable); disposable = (IDisposable)DisposableExtensions.AddTo <IDisposable>((M0)ObservableExtensions.Subscribe <Unit>(Observable.RepeatUntilDestroy <Unit>(Observable.TakeUntil <Unit, PointerEventData>(Observable.SkipUntil <Unit, PointerEventData>((IObservable <M0>)ObservableTriggerExtensions.UpdateAsObservable((Component)p.btn), (IObservable <M1>)Observable.Do <PointerEventData>((IObservable <M0>)ObservableTriggerExtensions.OnPointerDownAsObservable((UIBehaviour)p.btn), (Action <M0>)(_ => { downTimeCnt = 0.0f; loopTimeCnt = 0.0f; change = false; }))), (IObservable <M1>)ObservableTriggerExtensions.OnPointerUpAsObservable((UIBehaviour)p.btn)), (Component)this), (Action <M0>)(_ => { int index = p.index / 2; float num1 = (p.index % 2 != 0 ? 1f : -1f) * this.moveRotValue[this.acsCtrlSetting.correctSetting[this.correctNo].rotRate]; float num2 = 0.0f; downTimeCnt += Time.get_deltaTime(); if ((double)downTimeCnt <= 0.300000011920929) { return; } for (loopTimeCnt += Time.get_deltaTime(); (double)loopTimeCnt > 0.0500000007450581; loopTimeCnt -= 0.05f) { num2 += num1; } if ((double)num2 == 0.0) { return; } this.chaCtrl.SetAccessoryRot(this.slotNo, this.correctNo, num2, true, flag[index]); this.orgAcs.parts[this.slotNo].addMove[this.correctNo, 1] = this.nowAcs.parts[this.slotNo].addMove[this.correctNo, 1]; this.inpRot[index].set_text(((Vector3) ref this.nowAcs.parts[this.slotNo].addMove.Address(this.correctNo, 1)).get_Item(index).ToString()); change = true; this.SetControllerTransform(); })), (Component)this); this.lstDisposable.Add(disposable); })); // ISSUE: object of a compiler-generated type is created ((IEnumerable <InputField>) this.inpRot).Select <InputField, \u003C\u003E__AnonType14 <InputField, int> >((Func <InputField, int, \u003C\u003E__AnonType14 <InputField, int> >)((p, i) => new \u003C\u003E__AnonType14 <InputField, int>(p, i))).ToList <\u003C\u003E__AnonType14 <InputField, int> >().ForEach((Action <\u003C\u003E__AnonType14 <InputField, int> >)(p => { disposable = ObservableExtensions.Subscribe <string>(UnityEventExtensions.AsObservable <string>((UnityEvent <M0>)p.inp.get_onEndEdit()), (Action <M0>)(value => { int index = p.index % 3; float num = CustomBase.ConvertValueFromTextLimit(0.0f, 360f, 0, value); p.inp.set_text(num.ToString()); this.chaCtrl.SetAccessoryRot(this.slotNo, this.correctNo, num, false, flag[index]); this.orgAcs.parts[this.slotNo].addMove[this.correctNo, 1] = this.nowAcs.parts[this.slotNo].addMove[this.correctNo, 1]; this.SetControllerTransform(); })); this.lstDisposable.Add(disposable); })); // ISSUE: object of a compiler-generated type is created ((IEnumerable <Button>) this.btnRotReset).Select <Button, \u003C\u003E__AnonType13 <Button, int> >((Func <Button, int, \u003C\u003E__AnonType13 <Button, int> >)((p, i) => new \u003C\u003E__AnonType13 <Button, int>(p, i))).ToList <\u003C\u003E__AnonType13 <Button, int> >().ForEach((Action <\u003C\u003E__AnonType13 <Button, int> >)(p => { disposable = ObservableExtensions.Subscribe <Unit>((IObservable <M0>)UnityUIComponentExtensions.OnClickAsObservable(p.btn), (Action <M0>)(_ => { this.inpRot[p.index].set_text("0"); this.chaCtrl.SetAccessoryRot(this.slotNo, this.correctNo, 0.0f, false, flag[p.index]); this.orgAcs.parts[this.slotNo].addMove[this.correctNo, 1] = this.nowAcs.parts[this.slotNo].addMove[this.correctNo, 1]; this.SetControllerTransform(); })); this.lstDisposable.Add(disposable); })); // ISSUE: object of a compiler-generated type is created ((IEnumerable <Button>) this.btnScl).Select <Button, \u003C\u003E__AnonType13 <Button, int> >((Func <Button, int, \u003C\u003E__AnonType13 <Button, int> >)((p, i) => new \u003C\u003E__AnonType13 <Button, int>(p, i))).ToList <\u003C\u003E__AnonType13 <Button, int> >().ForEach((Action <\u003C\u003E__AnonType13 <Button, int> >)(p => { disposable = ObservableExtensions.Subscribe <Unit>((IObservable <M0>)UnityUIComponentExtensions.OnClickAsObservable(p.btn), (Action <M0>)(_ => { if (change) { return; } int index = p.index / 2; this.chaCtrl.SetAccessoryScl(this.slotNo, this.correctNo, (p.index % 2 != 0 ? 1f : -1f) * this.moveSclValue[this.acsCtrlSetting.correctSetting[this.correctNo].sclRate], true, flag[index]); this.orgAcs.parts[this.slotNo].addMove[this.correctNo, 2] = this.nowAcs.parts[this.slotNo].addMove[this.correctNo, 2]; this.inpScl[index].set_text(((Vector3) ref this.nowAcs.parts[this.slotNo].addMove.Address(this.correctNo, 2)).get_Item(index).ToString()); })); this.lstDisposable.Add(disposable); disposable = (IDisposable)DisposableExtensions.AddTo <IDisposable>((M0)ObservableExtensions.Subscribe <Unit>(Observable.RepeatUntilDestroy <Unit>(Observable.TakeUntil <Unit, PointerEventData>(Observable.SkipUntil <Unit, PointerEventData>((IObservable <M0>)ObservableTriggerExtensions.UpdateAsObservable((Component)p.btn), (IObservable <M1>)Observable.Do <PointerEventData>((IObservable <M0>)ObservableTriggerExtensions.OnPointerDownAsObservable((UIBehaviour)p.btn), (Action <M0>)(_ => { downTimeCnt = 0.0f; loopTimeCnt = 0.0f; change = false; }))), (IObservable <M1>)ObservableTriggerExtensions.OnPointerUpAsObservable((UIBehaviour)p.btn)), (Component)this), (Action <M0>)(_ => { int index = p.index / 2; float num1 = (p.index % 2 != 0 ? 1f : -1f) * this.moveSclValue[this.acsCtrlSetting.correctSetting[this.correctNo].sclRate]; float num2 = 0.0f; downTimeCnt += Time.get_deltaTime(); if ((double)downTimeCnt <= 0.300000011920929) { return; } for (loopTimeCnt += Time.get_deltaTime(); (double)loopTimeCnt > 0.0500000007450581; loopTimeCnt -= 0.05f) { num2 += num1; } if ((double)num2 == 0.0) { return; } this.chaCtrl.SetAccessoryScl(this.slotNo, this.correctNo, num2, true, flag[index]); this.orgAcs.parts[this.slotNo].addMove[this.correctNo, 2] = this.nowAcs.parts[this.slotNo].addMove[this.correctNo, 2]; this.inpScl[index].set_text(((Vector3) ref this.nowAcs.parts[this.slotNo].addMove.Address(this.correctNo, 2)).get_Item(index).ToString()); change = true; })), (Component)this); this.lstDisposable.Add(disposable); })); // ISSUE: object of a compiler-generated type is created ((IEnumerable <InputField>) this.inpScl).Select <InputField, \u003C\u003E__AnonType14 <InputField, int> >((Func <InputField, int, \u003C\u003E__AnonType14 <InputField, int> >)((p, i) => new \u003C\u003E__AnonType14 <InputField, int>(p, i))).ToList <\u003C\u003E__AnonType14 <InputField, int> >().ForEach((Action <\u003C\u003E__AnonType14 <InputField, int> >)(p => { disposable = ObservableExtensions.Subscribe <string>(UnityEventExtensions.AsObservable <string>((UnityEvent <M0>)p.inp.get_onEndEdit()), (Action <M0>)(value => { int index = p.index % 3; float num = CustomBase.ConvertValueFromTextLimit(0.01f, 100f, 2, value); p.inp.set_text(num.ToString()); this.chaCtrl.SetAccessoryScl(this.slotNo, this.correctNo, num, false, flag[index]); this.orgAcs.parts[this.slotNo].addMove[this.correctNo, 2] = this.nowAcs.parts[this.slotNo].addMove[this.correctNo, 2]; })); this.lstDisposable.Add(disposable); })); // ISSUE: object of a compiler-generated type is created ((IEnumerable <Button>) this.btnSclReset).Select <Button, \u003C\u003E__AnonType13 <Button, int> >((Func <Button, int, \u003C\u003E__AnonType13 <Button, int> >)((p, i) => new \u003C\u003E__AnonType13 <Button, int>(p, i))).ToList <\u003C\u003E__AnonType13 <Button, int> >().ForEach((Action <\u003C\u003E__AnonType13 <Button, int> >)(p => { disposable = ObservableExtensions.Subscribe <Unit>((IObservable <M0>)UnityUIComponentExtensions.OnClickAsObservable(p.btn), (Action <M0>)(_ => { this.inpScl[p.index].set_text("1"); this.chaCtrl.SetAccessoryScl(this.slotNo, this.correctNo, 1f, false, flag[p.index]); this.orgAcs.parts[this.slotNo].addMove[this.correctNo, 2] = this.nowAcs.parts[this.slotNo].addMove[this.correctNo, 2]; })); this.lstDisposable.Add(disposable); })); disposable = ObservableExtensions.Subscribe <Unit>((IObservable <M0>)UnityUIComponentExtensions.OnClickAsObservable(this.btnAllReset), (Action <M0>)(_ => { for (int index = 0; index < 3; ++index) { this.inpPos[index].set_text("0"); this.chaCtrl.SetAccessoryPos(this.slotNo, this.correctNo, 0.0f, false, flag[index]); this.orgAcs.parts[this.slotNo].addMove[this.correctNo, 0] = this.nowAcs.parts[this.slotNo].addMove[this.correctNo, 0]; this.SetControllerTransform(); this.inpRot[index].set_text("0"); this.chaCtrl.SetAccessoryRot(this.slotNo, this.correctNo, 0.0f, false, flag[index]); this.orgAcs.parts[this.slotNo].addMove[this.correctNo, 1] = this.nowAcs.parts[this.slotNo].addMove[this.correctNo, 1]; this.SetControllerTransform(); this.inpScl[index].set_text("1"); this.chaCtrl.SetAccessoryScl(this.slotNo, this.correctNo, 1f, false, flag[index]); this.orgAcs.parts[this.slotNo].addMove[this.correctNo, 2] = this.nowAcs.parts[this.slotNo].addMove[this.correctNo, 2]; } })); this.lstDisposable.Add(disposable); disposable = ObservableExtensions.Subscribe <bool>((IObservable <M0>)UnityUIComponentExtensions.OnValueChangedAsObservable(this.tglDrawCtrl), (Action <M0>)(isOn => this.customBase.customSettingSave.acsCtrlSetting.correctSetting[this.correctNo].draw = isOn)); this.lstDisposable.Add(disposable); if (((IEnumerable <Toggle>) this.tglCtrlType).Any <Toggle>()) { // ISSUE: object of a compiler-generated type is created ((IEnumerable <Toggle>) this.tglCtrlType).Select <Toggle, \u003C\u003E__AnonType15 <Toggle, int> >((Func <Toggle, int, \u003C\u003E__AnonType15 <Toggle, int> >)((val, idx) => new \u003C\u003E__AnonType15 <Toggle, int>(val, idx))).Where <\u003C\u003E__AnonType15 <Toggle, int> >((Func <\u003C\u003E__AnonType15 <Toggle, int>, bool>)(item => Object.op_Inequality((Object)item.val, (Object)null))).ToList <\u003C\u003E__AnonType15 <Toggle, int> >().ForEach((Action <\u003C\u003E__AnonType15 <Toggle, int> >)(item => { disposable = ObservableExtensions.Subscribe <bool>(Observable.Where <bool>((IObservable <M0>)UnityUIComponentExtensions.OnValueChangedAsObservable(item.val), (Func <M0, bool>)(isOn => isOn)), (Action <M0>)(isOn => { this.customBase.customSettingSave.acsCtrlSetting.correctSetting[this.correctNo].type = item.idx; if (!Object.op_Implicit((Object)this.cmpGuid)) { return; } this.cmpGuid.SetMode(item.idx); })); this.lstDisposable.Add(disposable); })); } disposable = ObservableExtensions.Subscribe <float>((IObservable <M0>)UnityUIComponentExtensions.OnValueChangedAsObservable(this.sldCtrlSpeed), (Action <M0>)(val => { this.customBase.customSettingSave.acsCtrlSetting.correctSetting[this.correctNo].speed = val; if (!Object.op_Implicit((Object)this.cmpGuid)) { return; } this.cmpGuid.speedMove = val; })); this.lstDisposable.Add(disposable); disposable = ObservableExtensions.Subscribe <PointerEventData>((IObservable <M0>)ObservableTriggerExtensions.OnScrollAsObservable((UIBehaviour)this.sldCtrlSpeed), (Action <M0>)(scl => { if (!this.customBase.sliderControlWheel) { return; } this.sldCtrlSpeed.set_value(Mathf.Clamp(this.sldCtrlSpeed.get_value() + (float)(scl.get_scrollDelta().y * -0.00999999977648258), 0.1f, 1f)); })); this.lstDisposable.Add(disposable); disposable = ObservableExtensions.Subscribe <float>((IObservable <M0>)UnityUIComponentExtensions.OnValueChangedAsObservable(this.sldCtrlSize), (Action <M0>)(val => { this.customBase.customSettingSave.acsCtrlSetting.correctSetting[this.correctNo].scale = val; if (!Object.op_Implicit((Object)this.cmpGuid)) { return; } this.cmpGuid.scaleAxis = val; this.cmpGuid.UpdateScale(); })); this.lstDisposable.Add(disposable); disposable = ObservableExtensions.Subscribe <PointerEventData>((IObservable <M0>)ObservableTriggerExtensions.OnScrollAsObservable((UIBehaviour)this.sldCtrlSize), (Action <M0>)(scl => { if (!this.customBase.sliderControlWheel) { return; } this.sldCtrlSize.set_value(Mathf.Clamp(this.sldCtrlSize.get_value() + (float)(scl.get_scrollDelta().y * -0.00999999977648258), 0.3f, 3f)); })); this.lstDisposable.Add(disposable); this.UpdateDrawControllerState(); }
public void Start() { this.customBase.lstInputField.Add(this.input); if (Object.op_Implicit((Object)this.slider)) { ObservableExtensions.Subscribe <float>(UnityEventExtensions.AsObservable <float>((UnityEvent <M0>) this.slider.get_onValueChanged()), (Action <M0>)(value => { if (this.onChange != null) { this.onChange(value); } if (!Object.op_Implicit((Object)this.input)) { return; } this.input.set_text(CustomBase.ConvertTextFromRate(0, 100, value)); })); ObservableExtensions.Subscribe <PointerEventData>((IObservable <M0>)ObservableTriggerExtensions.OnScrollAsObservable((UIBehaviour)this.slider), (Action <M0>)(scl => { if (!this.customBase.sliderControlWheel) { return; } this.slider.set_value(Mathf.Clamp(this.slider.get_value() + (float)(scl.get_scrollDelta().y * -0.00999999977648258), 0.0f, 100f)); })); ObservableExtensions.Subscribe <PointerEventData>((IObservable <M0>)ObservableTriggerExtensions.OnPointerUpAsObservable((UIBehaviour)this.slider), (Action <M0>)(_ => { if (this.onPointerUp == null) { return; } this.onPointerUp(); })); } if (Object.op_Implicit((Object)this.input)) { ObservableExtensions.Subscribe <string>(UnityEventExtensions.AsObservable <string>((UnityEvent <M0>) this.input.get_onEndEdit()), (Action <M0>)(value => { if (!Object.op_Implicit((Object)this.slider)) { return; } this.slider.set_value(CustomBase.ConvertRateFromText(0, 100, value)); })); } if (!Object.op_Implicit((Object)this.button)) { return; } ObservableExtensions.Subscribe <Unit>((IObservable <M0>)UnityEventExtensions.AsObservable((UnityEvent)this.button.get_onClick()), (Action <M0>)(_ => { if (this.onSetDefaultValue == null) { return; } float num = this.onSetDefaultValue(); if (Object.op_Implicit((Object)this.slider)) { if (Object.op_Implicit((Object)this.input) && (double)this.slider.get_value() != (double)num) { this.input.set_text(CustomBase.ConvertTextFromRate(0, 100, num)); } this.slider.set_value(num); } if (this.onChange != null) { this.onChange(num); } if (this.onEndSetDefaultValue == null) { return; } this.onEndSetDefaultValue(); })); }
protected virtual void Start() { this.customBase.lstInputField.Add(this.inpPoseNo); this.customBase.lstInputField.Add(this.inpEyebrowNo); this.customBase.lstInputField.Add(this.inpEyeNo); this.customBase.lstInputField.Add(this.inpMouthNo); this.customBase.lstInputField.Add(this.inpHandLNo); this.customBase.lstInputField.Add(this.inpHandRNo); this.customBase.drawSaveFrameBack = true; this.customBase.drawSaveFrameFront = true; if (((IEnumerable <Toggle>) this.tglClothesState).Any <Toggle>()) { // ISSUE: object of a compiler-generated type is created ((IEnumerable <Toggle>) this.tglClothesState).Select <Toggle, \u003C\u003E__AnonType15 <Toggle, int> >((Func <Toggle, int, \u003C\u003E__AnonType15 <Toggle, int> >)((val, idx) => new \u003C\u003E__AnonType15 <Toggle, int>(val, idx))).Where <\u003C\u003E__AnonType15 <Toggle, int> >((Func <\u003C\u003E__AnonType15 <Toggle, int>, bool>)(item => Object.op_Inequality((Object)item.val, (Object)null))).ToList <\u003C\u003E__AnonType15 <Toggle, int> >().ForEach((Action <\u003C\u003E__AnonType15 <Toggle, int> >)(item => ObservableExtensions.Subscribe <bool>(Observable.Where <bool>((IObservable <M0>)UnityUIComponentExtensions.OnValueChangedAsObservable(item.val), (Func <M0, bool>)(isOn => isOn)), (Action <M0>)(_ => this.customBase.ChangeClothesState(item.idx + 1))))); } if (((IEnumerable <Toggle>) this.tglAcsState).Any <Toggle>()) { // ISSUE: object of a compiler-generated type is created ((IEnumerable <Toggle>) this.tglAcsState).Select <Toggle, \u003C\u003E__AnonType15 <Toggle, int> >((Func <Toggle, int, \u003C\u003E__AnonType15 <Toggle, int> >)((val, idx) => new \u003C\u003E__AnonType15 <Toggle, int>(val, idx))).Where <\u003C\u003E__AnonType15 <Toggle, int> >((Func <\u003C\u003E__AnonType15 <Toggle, int>, bool>)(item => Object.op_Inequality((Object)item.val, (Object)null))).ToList <\u003C\u003E__AnonType15 <Toggle, int> >().ForEach((Action <\u003C\u003E__AnonType15 <Toggle, int> >)(item => ObservableExtensions.Subscribe <bool>(Observable.Where <bool>((IObservable <M0>)UnityUIComponentExtensions.OnValueChangedAsObservable(item.val), (Func <M0, bool>)(isOn => isOn)), (Action <M0>)(_ => this.customBase.accessoryDraw = item.idx == 0)))); } if (((IEnumerable <Toggle>) this.tglEyeLook).Any <Toggle>()) { // ISSUE: object of a compiler-generated type is created ((IEnumerable <Toggle>) this.tglEyeLook).Select <Toggle, \u003C\u003E__AnonType15 <Toggle, int> >((Func <Toggle, int, \u003C\u003E__AnonType15 <Toggle, int> >)((val, idx) => new \u003C\u003E__AnonType15 <Toggle, int>(val, idx))).Where <\u003C\u003E__AnonType15 <Toggle, int> >((Func <\u003C\u003E__AnonType15 <Toggle, int>, bool>)(item => Object.op_Inequality((Object)item.val, (Object)null))).ToList <\u003C\u003E__AnonType15 <Toggle, int> >().ForEach((Action <\u003C\u003E__AnonType15 <Toggle, int> >)(item => ObservableExtensions.Subscribe <bool>(Observable.Where <bool>((IObservable <M0>)UnityUIComponentExtensions.OnValueChangedAsObservable(item.val), (Func <M0, bool>)(isOn => isOn)), (Action <M0>)(_ => this.customBase.eyelook = item.idx)))); } if (((IEnumerable <Toggle>) this.tglNeckLook).Any <Toggle>()) { // ISSUE: object of a compiler-generated type is created ((IEnumerable <Toggle>) this.tglNeckLook).Select <Toggle, \u003C\u003E__AnonType15 <Toggle, int> >((Func <Toggle, int, \u003C\u003E__AnonType15 <Toggle, int> >)((val, idx) => new \u003C\u003E__AnonType15 <Toggle, int>(val, idx))).Where <\u003C\u003E__AnonType15 <Toggle, int> >((Func <\u003C\u003E__AnonType15 <Toggle, int>, bool>)(item => Object.op_Inequality((Object)item.val, (Object)null))).ToList <\u003C\u003E__AnonType15 <Toggle, int> >().ForEach((Action <\u003C\u003E__AnonType15 <Toggle, int> >)(item => ObservableExtensions.Subscribe <bool>(Observable.Where <bool>((IObservable <M0>)UnityUIComponentExtensions.OnValueChangedAsObservable(item.val), (Func <M0, bool>)(isOn => isOn)), (Action <M0>)(_ => this.customBase.necklook = item.idx)))); } if (((IEnumerable <Button>) this.btnPose).Any <Button>()) { // ISSUE: object of a compiler-generated type is created ((IEnumerable <Button>) this.btnPose).Select <Button, \u003C\u003E__AnonType15 <Button, int> >((Func <Button, int, \u003C\u003E__AnonType15 <Button, int> >)((val, idx) => new \u003C\u003E__AnonType15 <Button, int>(val, idx))).Where <\u003C\u003E__AnonType15 <Button, int> >((Func <\u003C\u003E__AnonType15 <Button, int>, bool>)(item => item != null)).ToList <\u003C\u003E__AnonType15 <Button, int> >().ForEach((Action <\u003C\u003E__AnonType15 <Button, int> >)(item => ObservableExtensions.Subscribe <Unit>((IObservable <M0>)UnityUIComponentExtensions.OnClickAsObservable(item.val), (Action <M0>)(_ => { if (item.idx == 2) { this.customBase.poseNo = 1; } else { this.customBase.ChangeAnimationNext(item.idx); } this.inpPoseNo.set_text(this.customBase.poseNo.ToString()); })))); } if (Object.op_Implicit((Object)this.inpPoseNo)) { ObservableExtensions.Subscribe <string>(UnityEventExtensions.AsObservable <string>((UnityEvent <M0>) this.inpPoseNo.get_onEndEdit()), (Action <M0>)(value => { int result; if (!int.TryParse(value, out result)) { result = 0; } this.customBase.ChangeAnimationNo(result, false); this.inpPoseNo.set_text(this.customBase.poseNo.ToString()); })); } if (((IEnumerable <Button>) this.btnEyebrow).Any <Button>()) { // ISSUE: object of a compiler-generated type is created ((IEnumerable <Button>) this.btnEyebrow).Select <Button, \u003C\u003E__AnonType15 <Button, int> >((Func <Button, int, \u003C\u003E__AnonType15 <Button, int> >)((val, idx) => new \u003C\u003E__AnonType15 <Button, int>(val, idx))).Where <\u003C\u003E__AnonType15 <Button, int> >((Func <\u003C\u003E__AnonType15 <Button, int>, bool>)(item => item != null)).ToList <\u003C\u003E__AnonType15 <Button, int> >().ForEach((Action <\u003C\u003E__AnonType15 <Button, int> >)(item => ObservableExtensions.Subscribe <Unit>((IObservable <M0>)UnityUIComponentExtensions.OnClickAsObservable(item.val), (Action <M0>)(_ => { if (item.idx == 2) { this.customBase.ChangeEyebrowPtnNext(-1); } else { this.customBase.ChangeEyebrowPtnNext(item.idx); } this.inpEyebrowNo.set_text((this.customBase.eyebrowPtn + 1).ToString()); })))); } if (Object.op_Implicit((Object)this.inpEyebrowNo)) { ObservableExtensions.Subscribe <string>(UnityEventExtensions.AsObservable <string>((UnityEvent <M0>) this.inpEyebrowNo.get_onEndEdit()), (Action <M0>)(value => { int result; if (!int.TryParse(value, out result)) { result = 0; } this.customBase.ChangeEyebrowPtnNo(result); this.inpEyebrowNo.set_text((this.customBase.eyebrowPtn + 1).ToString()); })); } if (((IEnumerable <Button>) this.btnEyePtn).Any <Button>()) { // ISSUE: object of a compiler-generated type is created ((IEnumerable <Button>) this.btnEyePtn).Select <Button, \u003C\u003E__AnonType15 <Button, int> >((Func <Button, int, \u003C\u003E__AnonType15 <Button, int> >)((val, idx) => new \u003C\u003E__AnonType15 <Button, int>(val, idx))).Where <\u003C\u003E__AnonType15 <Button, int> >((Func <\u003C\u003E__AnonType15 <Button, int>, bool>)(item => item != null)).ToList <\u003C\u003E__AnonType15 <Button, int> >().ForEach((Action <\u003C\u003E__AnonType15 <Button, int> >)(item => ObservableExtensions.Subscribe <Unit>((IObservable <M0>)UnityUIComponentExtensions.OnClickAsObservable(item.val), (Action <M0>)(_ => { if (item.idx == 2) { this.customBase.ChangeEyePtnNext(-1); } else { this.customBase.ChangeEyePtnNext(item.idx); } this.inpEyeNo.set_text((this.customBase.eyePtn + 1).ToString()); })))); } if (Object.op_Implicit((Object)this.inpEyeNo)) { ObservableExtensions.Subscribe <string>(UnityEventExtensions.AsObservable <string>((UnityEvent <M0>) this.inpEyeNo.get_onEndEdit()), (Action <M0>)(value => { int result; if (!int.TryParse(value, out result)) { result = 0; } this.customBase.ChangeEyePtnNo(result); this.inpEyeNo.set_text((this.customBase.eyePtn + 1).ToString()); })); } if (Object.op_Implicit((Object)this.sldEyeOpen)) { ObservableExtensions.Subscribe <float>((IObservable <M0>)UnityUIComponentExtensions.OnValueChangedAsObservable(this.sldEyeOpen), (Action <M0>)(val => this.chaCtrl.ChangeEyesOpenMax(val))); } ObservableExtensions.Subscribe <PointerEventData>((IObservable <M0>)ObservableTriggerExtensions.OnScrollAsObservable((UIBehaviour)this.sldEyeOpen), (Action <M0>)(scl => { if (!this.customBase.sliderControlWheel) { return; } this.sldEyeOpen.set_value(Mathf.Clamp(this.sldEyeOpen.get_value() + (float)(scl.get_scrollDelta().y * -0.00999999977648258), 0.0f, 100f)); })); if (((IEnumerable <Button>) this.btnMouthPtn).Any <Button>()) { // ISSUE: object of a compiler-generated type is created ((IEnumerable <Button>) this.btnMouthPtn).Select <Button, \u003C\u003E__AnonType15 <Button, int> >((Func <Button, int, \u003C\u003E__AnonType15 <Button, int> >)((val, idx) => new \u003C\u003E__AnonType15 <Button, int>(val, idx))).Where <\u003C\u003E__AnonType15 <Button, int> >((Func <\u003C\u003E__AnonType15 <Button, int>, bool>)(item => item != null)).ToList <\u003C\u003E__AnonType15 <Button, int> >().ForEach((Action <\u003C\u003E__AnonType15 <Button, int> >)(item => ObservableExtensions.Subscribe <Unit>((IObservable <M0>)UnityUIComponentExtensions.OnClickAsObservable(item.val), (Action <M0>)(_ => { if (item.idx == 2) { this.customBase.ChangeMouthPtnNext(-1); } else { this.customBase.ChangeMouthPtnNext(item.idx); } this.inpMouthNo.set_text((this.customBase.mouthPtn + 1).ToString()); })))); } if (Object.op_Implicit((Object)this.inpMouthNo)) { ObservableExtensions.Subscribe <string>(UnityEventExtensions.AsObservable <string>((UnityEvent <M0>) this.inpMouthNo.get_onEndEdit()), (Action <M0>)(value => { int result; if (!int.TryParse(value, out result)) { result = 0; } this.customBase.ChangeMouthPtnNo(result); this.inpMouthNo.set_text((this.customBase.mouthPtn + 1).ToString()); })); } if (Object.op_Implicit((Object)this.sldMouthOpen)) { ObservableExtensions.Subscribe <float>((IObservable <M0>)UnityUIComponentExtensions.OnValueChangedAsObservable(this.sldMouthOpen), (Action <M0>)(val => this.chaCtrl.ChangeMouthOpenMax(val))); } ObservableExtensions.Subscribe <PointerEventData>((IObservable <M0>)ObservableTriggerExtensions.OnScrollAsObservable((UIBehaviour)this.sldMouthOpen), (Action <M0>)(scl => { if (!this.customBase.sliderControlWheel) { return; } this.sldMouthOpen.set_value(Mathf.Clamp(this.sldMouthOpen.get_value() + (float)(scl.get_scrollDelta().y * -0.00999999977648258), 0.0f, 100f)); })); if (((IEnumerable <Button>) this.btnHandLPtn).Any <Button>()) { // ISSUE: object of a compiler-generated type is created ((IEnumerable <Button>) this.btnHandLPtn).Select <Button, \u003C\u003E__AnonType15 <Button, int> >((Func <Button, int, \u003C\u003E__AnonType15 <Button, int> >)((val, idx) => new \u003C\u003E__AnonType15 <Button, int>(val, idx))).Where <\u003C\u003E__AnonType15 <Button, int> >((Func <\u003C\u003E__AnonType15 <Button, int>, bool>)(item => item != null)).ToList <\u003C\u003E__AnonType15 <Button, int> >().ForEach((Action <\u003C\u003E__AnonType15 <Button, int> >)(item => ObservableExtensions.Subscribe <Unit>((IObservable <M0>)UnityUIComponentExtensions.OnClickAsObservable(item.val), (Action <M0>)(_ => { int num = this.chaCtrl.GetShapeIndexHandCount() + 1; this.handLPtn = item.idx != 2 ? (item.idx != 0 ? (this.handLPtn + 1) % num : (this.handLPtn + num - 1) % num) : 0; if (this.handLPtn == 0) { this.chaCtrl.SetEnableShapeHand(0, false); } else { this.chaCtrl.SetEnableShapeHand(0, true); this.chaCtrl.SetShapeHandIndex(0, this.handLPtn - 1, -1); } if (this.handLPtn == 0) { this.inpHandLNo.set_text("ポーズ"); } else { this.inpHandLNo.set_text(this.handLPtn.ToString()); } })))); } if (Object.op_Implicit((Object)this.inpHandLNo)) { ObservableExtensions.Subscribe <string>(UnityEventExtensions.AsObservable <string>((UnityEvent <M0>) this.inpHandLNo.get_onEndEdit()), (Action <M0>)(value => { int result; if (value == "ポーズ") { result = 0; } else if (!int.TryParse(value, out result)) { result = 0; } this.handLPtn = result; if (this.handLPtn == 0) { this.chaCtrl.SetEnableShapeHand(0, false); } else { this.chaCtrl.SetEnableShapeHand(0, true); this.chaCtrl.SetShapeHandIndex(0, this.handLPtn - 1, -1); } if (this.handLPtn == 0) { this.inpHandLNo.set_text("ポーズ"); } else { this.inpHandLNo.set_text(this.handLPtn.ToString()); } })); } if (((IEnumerable <Button>) this.btnHandRPtn).Any <Button>()) { // ISSUE: object of a compiler-generated type is created ((IEnumerable <Button>) this.btnHandRPtn).Select <Button, \u003C\u003E__AnonType15 <Button, int> >((Func <Button, int, \u003C\u003E__AnonType15 <Button, int> >)((val, idx) => new \u003C\u003E__AnonType15 <Button, int>(val, idx))).Where <\u003C\u003E__AnonType15 <Button, int> >((Func <\u003C\u003E__AnonType15 <Button, int>, bool>)(item => item != null)).ToList <\u003C\u003E__AnonType15 <Button, int> >().ForEach((Action <\u003C\u003E__AnonType15 <Button, int> >)(item => ObservableExtensions.Subscribe <Unit>((IObservable <M0>)UnityUIComponentExtensions.OnClickAsObservable(item.val), (Action <M0>)(_ => { int num = this.chaCtrl.GetShapeIndexHandCount() + 1; this.handRPtn = item.idx != 2 ? (item.idx != 0 ? (this.handRPtn + 1) % num : (this.handRPtn + num - 1) % num) : 0; if (this.handRPtn == 0) { this.chaCtrl.SetEnableShapeHand(1, false); } else { this.chaCtrl.SetEnableShapeHand(1, true); this.chaCtrl.SetShapeHandIndex(1, this.handRPtn - 1, -1); } if (this.handRPtn == 0) { this.inpHandRNo.set_text("ポーズ"); } else { this.inpHandRNo.set_text(this.handRPtn.ToString()); } })))); } if (Object.op_Implicit((Object)this.inpHandRNo)) { ObservableExtensions.Subscribe <string>(UnityEventExtensions.AsObservable <string>((UnityEvent <M0>) this.inpHandRNo.get_onEndEdit()), (Action <M0>)(value => { int result; if (value == "ポーズ") { result = 0; } else if (!int.TryParse(value, out result)) { result = 0; } this.handRPtn = result; if (this.handRPtn == 0) { this.chaCtrl.SetEnableShapeHand(1, false); } else { this.chaCtrl.SetEnableShapeHand(1, true); this.chaCtrl.SetShapeHandIndex(1, this.handRPtn - 1, -1); } if (this.handRPtn == 0) { this.inpHandRNo.set_text("ポーズ"); } else { this.inpHandRNo.set_text(this.handRPtn.ToString()); } })); } if (Object.op_Implicit((Object)this.tglPlayAnime)) { ObservableExtensions.Subscribe <bool>((IObservable <M0>)UnityUIComponentExtensions.OnValueChangedAsObservable((Toggle)this.tglPlayAnime), (Action <M0>)(isOn => this.customBase.playPoseAnime = isOn)); } if (Object.op_Implicit((Object)this.sldLightRotX)) { ObservableExtensions.Subscribe <float>((IObservable <M0>)UnityUIComponentExtensions.OnValueChangedAsObservable(this.sldLightRotX), (Action <M0>)(val => ((Component)this.customBase.lightCustom).get_transform().set_localEulerAngles(new Vector3(val, (float)((Component)this.customBase.lightCustom).get_transform().get_localEulerAngles().y, (float)((Component)this.customBase.lightCustom).get_transform().get_localEulerAngles().z)))); } ObservableExtensions.Subscribe <PointerEventData>((IObservable <M0>)ObservableTriggerExtensions.OnScrollAsObservable((UIBehaviour)this.sldLightRotX), (Action <M0>)(scl => { if (!this.customBase.sliderControlWheel) { return; } this.sldLightRotX.set_value(Mathf.Clamp(this.sldLightRotX.get_value() + (float)(scl.get_scrollDelta().y * -0.00999999977648258), 0.0f, 100f)); })); if (Object.op_Implicit((Object)this.sldLightRotY)) { ObservableExtensions.Subscribe <float>((IObservable <M0>)UnityUIComponentExtensions.OnValueChangedAsObservable(this.sldLightRotY), (Action <M0>)(val => ((Component)this.customBase.lightCustom).get_transform().set_localEulerAngles(new Vector3((float)((Component)this.customBase.lightCustom).get_transform().get_localEulerAngles().x, val, (float)((Component)this.customBase.lightCustom).get_transform().get_localEulerAngles().z)))); } ObservableExtensions.Subscribe <PointerEventData>((IObservable <M0>)ObservableTriggerExtensions.OnScrollAsObservable((UIBehaviour)this.sldLightRotY), (Action <M0>)(scl => { if (!this.customBase.sliderControlWheel) { return; } this.sldLightRotY.set_value(Mathf.Clamp(this.sldLightRotY.get_value() + (float)scl.get_scrollDelta().y, -88f, 88f)); })); if (Object.op_Implicit((Object)this.csLight)) { this.csLight.actUpdateColor = (Action <Color>)(color => this.customBase.lightCustom.set_color(color)); } if (Object.op_Implicit((Object)this.sldLightPower)) { ObservableExtensions.Subscribe <float>((IObservable <M0>)UnityUIComponentExtensions.OnValueChangedAsObservable(this.sldLightPower), (Action <M0>)(val => this.customBase.lightCustom.set_intensity(val))); } ObservableExtensions.Subscribe <PointerEventData>((IObservable <M0>)ObservableTriggerExtensions.OnScrollAsObservable((UIBehaviour)this.sldLightPower), (Action <M0>)(scl => { if (!this.customBase.sliderControlWheel) { return; } this.sldLightPower.set_value(Mathf.Clamp(this.sldLightPower.get_value() + (float)scl.get_scrollDelta().y, -178f, 178f)); })); if (Object.op_Implicit((Object)this.btnLightReset)) { ObservableExtensions.Subscribe <Unit>((IObservable <M0>)UnityUIComponentExtensions.OnClickAsObservable(this.btnLightReset), (Action <M0>)(_ => { this.customBase.ResetLightSetting(); Vector3 localEulerAngles = ((Component)this.customBase.lightCustom).get_transform().get_localEulerAngles(); this.sldLightRotX.set_value(89.0 >= localEulerAngles.x ? (float)(double)localEulerAngles.x : (float)(localEulerAngles.x - 360.0)); this.sldLightRotY.set_value(180.0 > localEulerAngles.y ? (float)(double)localEulerAngles.y : (float)(localEulerAngles.y - 360.0)); this.csLight.SetColor(this.customBase.lightCustom.get_color()); this.sldLightPower.set_value(this.customBase.lightCustom.get_intensity()); })); } if (Object.op_Implicit((Object)this.tglBFrameDraw)) { ObservableExtensions.Subscribe <bool>((IObservable <M0>)UnityUIComponentExtensions.OnValueChangedAsObservable(this.tglBFrameDraw), (Action <M0>)(isOn => this.customBase.drawSaveFrameBack = isOn)); } if (((IEnumerable <Button>) this.btnBFramePtn).Any <Button>()) { // ISSUE: object of a compiler-generated type is created ((IEnumerable <Button>) this.btnBFramePtn).Select <Button, \u003C\u003E__AnonType15 <Button, int> >((Func <Button, int, \u003C\u003E__AnonType15 <Button, int> >)((val, idx) => new \u003C\u003E__AnonType15 <Button, int>(val, idx))).Where <\u003C\u003E__AnonType15 <Button, int> >((Func <\u003C\u003E__AnonType15 <Button, int>, bool>)(item => item != null)).ToList <\u003C\u003E__AnonType15 <Button, int> >().ForEach((Action <\u003C\u003E__AnonType15 <Button, int> >)(item => ObservableExtensions.Subscribe <Unit>((IObservable <M0>)UnityUIComponentExtensions.OnClickAsObservable(item.val), (Action <M0>)(_ => this.customBase.saveFrameAssist.ChangeSaveFrameBack((byte)item.idx, true))))); } if (Object.op_Implicit((Object)this.tglFFrameDraw)) { ObservableExtensions.Subscribe <bool>((IObservable <M0>)UnityUIComponentExtensions.OnValueChangedAsObservable(this.tglFFrameDraw), (Action <M0>)(isOn => this.customBase.drawSaveFrameFront = isOn)); } if (((IEnumerable <Button>) this.btnFFramePtn).Any <Button>()) { // ISSUE: object of a compiler-generated type is created ((IEnumerable <Button>) this.btnFFramePtn).Select <Button, \u003C\u003E__AnonType15 <Button, int> >((Func <Button, int, \u003C\u003E__AnonType15 <Button, int> >)((val, idx) => new \u003C\u003E__AnonType15 <Button, int>(val, idx))).Where <\u003C\u003E__AnonType15 <Button, int> >((Func <\u003C\u003E__AnonType15 <Button, int>, bool>)(item => item != null)).ToList <\u003C\u003E__AnonType15 <Button, int> >().ForEach((Action <\u003C\u003E__AnonType15 <Button, int> >)(item => ObservableExtensions.Subscribe <Unit>((IObservable <M0>)UnityUIComponentExtensions.OnClickAsObservable(item.val), (Action <M0>)(_ => this.customBase.saveFrameAssist.ChangeSaveFrameFront((byte)item.idx, true))))); } if (((IEnumerable <Toggle>) this.tglBG).Any <Toggle>()) { // ISSUE: object of a compiler-generated type is created ((IEnumerable <Toggle>) this.tglBG).Select <Toggle, \u003C\u003E__AnonType15 <Toggle, int> >((Func <Toggle, int, \u003C\u003E__AnonType15 <Toggle, int> >)((val, idx) => new \u003C\u003E__AnonType15 <Toggle, int>(val, idx))).Where <\u003C\u003E__AnonType15 <Toggle, int> >((Func <\u003C\u003E__AnonType15 <Toggle, int>, bool>)(item => Object.op_Inequality((Object)item.val, (Object)null))).ToList <\u003C\u003E__AnonType15 <Toggle, int> >().ForEach((Action <\u003C\u003E__AnonType15 <Toggle, int> >)(item => ObservableExtensions.Subscribe <bool>(Observable.Where <bool>((IObservable <M0>)UnityUIComponentExtensions.OnValueChangedAsObservable(item.val), (Func <M0, bool>)(isOn => isOn)), (Action <M0>)(_ => { this.customBase.customCtrl.draw3D = 0 == item.idx; this.objBGIndex.SetActiveIfDifferent(!this.customBase.customCtrl.draw3D); this.objBGColor.SetActiveIfDifferent(this.customBase.customCtrl.draw3D); this.objBackFrame.SetActiveIfDifferent(!this.customBase.customCtrl.draw3D); this.customBase.forceBackFrameHide = this.customBase.customCtrl.draw3D; if (this.customBase.customCtrl.draw3D) { return; } this.customBase.customCtrl.showColorCvs = false; })))); } if (((IEnumerable <Button>) this.btnBGIndex).Any <Button>()) { // ISSUE: object of a compiler-generated type is created ((IEnumerable <Button>) this.btnBGIndex).Select <Button, \u003C\u003E__AnonType15 <Button, int> >((Func <Button, int, \u003C\u003E__AnonType15 <Button, int> >)((val, idx) => new \u003C\u003E__AnonType15 <Button, int>(val, idx))).Where <\u003C\u003E__AnonType15 <Button, int> >((Func <\u003C\u003E__AnonType15 <Button, int>, bool>)(item => item != null)).ToList <\u003C\u003E__AnonType15 <Button, int> >().ForEach((Action <\u003C\u003E__AnonType15 <Button, int> >)(item => ObservableExtensions.Subscribe <Unit>((IObservable <M0>)UnityUIComponentExtensions.OnClickAsObservable(item.val), (Action <M0>)(_ => this.customBase.customCtrl.ChangeBGImage(item.idx))))); } if (Object.op_Implicit((Object)this.csBG)) { this.csBG.actUpdateColor = (Action <Color>)(color => this.customBase.customCtrl.ChangeBGColor(color)); } if (Object.op_Implicit((Object)this.btnCancel)) { ObservableExtensions.Subscribe <Unit>((IObservable <M0>)UnityUIComponentExtensions.OnClickAsObservable(this.btnCancel), (Action <M0>)(_ => { Singleton <Resources> .Instance.SoundPack.Play(SoundPack.SystemSE.Cancel); this.customBase.customCtrl.overwriteSavePath = string.Empty; this.EndCapture(); this.customBase.customCtrl.saveMode = false; this.customBase.customCtrl.updatePng = false; })); } if (!Object.op_Implicit((Object)this.btnSave)) { return; } ObservableExtensions.Subscribe <Unit>((IObservable <M0>)UnityUIComponentExtensions.OnClickAsObservable(this.btnSave), (Action <M0>)(_ => { if (this.customBase.customCtrl.saveMode) { Singleton <Resources> .Instance.SoundPack.Play(SoundPack.SystemSE.Save); this.chaCtrl.chaFile.pngData = this.customBase.customCtrl.customCap.CapCharaCard(true, this.customBase.saveFrameAssist, this.customBase.customCtrl.draw3D); string empty = string.Empty; string filename; if (this.customBase.customCtrl.overwriteSavePath.IsNullOrEmpty()) { filename = this.chaCtrl.sex != (byte)0 ? "AISChaF_" + DateTime.Now.ToString("yyyyMMddHHmmssfff") : "AISChaM_" + DateTime.Now.ToString("yyyyMMddHHmmssfff"); } else { filename = this.customBase.customCtrl.overwriteSavePath; this.customBase.customCtrl.overwriteSavePath = string.Empty; } this.chaCtrl.chaFile.SaveCharaFile(filename, byte.MaxValue, false); this.customBase.updateCvsCharaSaveDelete = true; this.customBase.updateCvsCharaLoad = true; } else { Singleton <Resources> .Instance.SoundPack.Play(SoundPack.SystemSE.Photo); this.chaCtrl.chaFile.pngData = this.customBase.customCtrl.customCap.CapCharaCard(true, this.customBase.saveFrameAssist, this.customBase.customCtrl.draw3D); } this.EndCapture(); this.customBase.customCtrl.saveMode = false; this.customBase.customCtrl.updatePng = false; })); }
protected override void Start() { this.customBase.lstInputField.Add(this.inpPoseNo); this.customBase.lstInputField.Add(this.inpEyebrowNo); this.customBase.lstInputField.Add(this.inpEyeNo); this.customBase.lstInputField.Add(this.inpMouthNo); if (((IEnumerable <Toggle>) this.tglClothesState).Any <Toggle>()) { // ISSUE: object of a compiler-generated type is created ((IEnumerable <Toggle>) this.tglClothesState).Select <Toggle, \u003C\u003E__AnonType15 <Toggle, int> >((Func <Toggle, int, \u003C\u003E__AnonType15 <Toggle, int> >)((val, idx) => new \u003C\u003E__AnonType15 <Toggle, int>(val, idx))).Where <\u003C\u003E__AnonType15 <Toggle, int> >((Func <\u003C\u003E__AnonType15 <Toggle, int>, bool>)(item => Object.op_Inequality((Object)item.val, (Object)null))).ToList <\u003C\u003E__AnonType15 <Toggle, int> >().ForEach((Action <\u003C\u003E__AnonType15 <Toggle, int> >)(item => ObservableExtensions.Subscribe <bool>(Observable.Where <bool>(UnityEventExtensions.AsObservable <bool>((UnityEvent <M0>)item.val.onValueChanged), (Func <M0, bool>)(isOn => isOn)), (Action <M0>)(_ => this.customBase.ChangeClothesState(item.idx))))); } if (((IEnumerable <Toggle>) this.tglAcsState).Any <Toggle>()) { // ISSUE: object of a compiler-generated type is created ((IEnumerable <Toggle>) this.tglAcsState).Select <Toggle, \u003C\u003E__AnonType15 <Toggle, int> >((Func <Toggle, int, \u003C\u003E__AnonType15 <Toggle, int> >)((val, idx) => new \u003C\u003E__AnonType15 <Toggle, int>(val, idx))).Where <\u003C\u003E__AnonType15 <Toggle, int> >((Func <\u003C\u003E__AnonType15 <Toggle, int>, bool>)(item => Object.op_Inequality((Object)item.val, (Object)null))).ToList <\u003C\u003E__AnonType15 <Toggle, int> >().ForEach((Action <\u003C\u003E__AnonType15 <Toggle, int> >)(item => ObservableExtensions.Subscribe <bool>(Observable.Where <bool>((IObservable <M0>)UnityUIComponentExtensions.OnValueChangedAsObservable(item.val), (Func <M0, bool>)(isOn => isOn)), (Action <M0>)(_ => this.customBase.accessoryDraw = item.idx == 0)))); } if (((IEnumerable <Toggle>) this.tglEyeLook).Any <Toggle>()) { // ISSUE: object of a compiler-generated type is created ((IEnumerable <Toggle>) this.tglEyeLook).Select <Toggle, \u003C\u003E__AnonType15 <Toggle, int> >((Func <Toggle, int, \u003C\u003E__AnonType15 <Toggle, int> >)((val, idx) => new \u003C\u003E__AnonType15 <Toggle, int>(val, idx))).Where <\u003C\u003E__AnonType15 <Toggle, int> >((Func <\u003C\u003E__AnonType15 <Toggle, int>, bool>)(item => Object.op_Inequality((Object)item.val, (Object)null))).ToList <\u003C\u003E__AnonType15 <Toggle, int> >().ForEach((Action <\u003C\u003E__AnonType15 <Toggle, int> >)(item => ObservableExtensions.Subscribe <bool>(Observable.Where <bool>((IObservable <M0>)UnityUIComponentExtensions.OnValueChangedAsObservable(item.val), (Func <M0, bool>)(isOn => isOn)), (Action <M0>)(_ => this.customBase.eyelook = item.idx)))); } if (((IEnumerable <Toggle>) this.tglNeckLook).Any <Toggle>()) { // ISSUE: object of a compiler-generated type is created ((IEnumerable <Toggle>) this.tglNeckLook).Select <Toggle, \u003C\u003E__AnonType15 <Toggle, int> >((Func <Toggle, int, \u003C\u003E__AnonType15 <Toggle, int> >)((val, idx) => new \u003C\u003E__AnonType15 <Toggle, int>(val, idx))).Where <\u003C\u003E__AnonType15 <Toggle, int> >((Func <\u003C\u003E__AnonType15 <Toggle, int>, bool>)(item => Object.op_Inequality((Object)item.val, (Object)null))).ToList <\u003C\u003E__AnonType15 <Toggle, int> >().ForEach((Action <\u003C\u003E__AnonType15 <Toggle, int> >)(item => ObservableExtensions.Subscribe <bool>(Observable.Where <bool>((IObservable <M0>)UnityUIComponentExtensions.OnValueChangedAsObservable(item.val), (Func <M0, bool>)(isOn => isOn)), (Action <M0>)(_ => this.customBase.necklook = item.idx)))); } if (((IEnumerable <Button>) this.btnPose).Any <Button>()) { // ISSUE: object of a compiler-generated type is created ((IEnumerable <Button>) this.btnPose).Select <Button, \u003C\u003E__AnonType15 <Button, int> >((Func <Button, int, \u003C\u003E__AnonType15 <Button, int> >)((val, idx) => new \u003C\u003E__AnonType15 <Button, int>(val, idx))).Where <\u003C\u003E__AnonType15 <Button, int> >((Func <\u003C\u003E__AnonType15 <Button, int>, bool>)(item => item != null)).ToList <\u003C\u003E__AnonType15 <Button, int> >().ForEach((Action <\u003C\u003E__AnonType15 <Button, int> >)(item => ObservableExtensions.Subscribe <Unit>((IObservable <M0>)UnityUIComponentExtensions.OnClickAsObservable(item.val), (Action <M0>)(_ => { if (item.idx == 2) { this.customBase.poseNo = 1; } else { this.customBase.ChangeAnimationNext(item.idx); } this.inpPoseNo.set_text(this.customBase.poseNo.ToString()); })))); } if (Object.op_Implicit((Object)this.inpPoseNo)) { ObservableExtensions.Subscribe <string>(UnityEventExtensions.AsObservable <string>((UnityEvent <M0>) this.inpPoseNo.get_onEndEdit()), (Action <M0>)(value => { int result; if (!int.TryParse(value, out result)) { result = 0; } this.customBase.ChangeAnimationNo(result, false); this.inpPoseNo.set_text(this.customBase.poseNo.ToString()); })); } if (((IEnumerable <Button>) this.btnEyebrow).Any <Button>()) { // ISSUE: object of a compiler-generated type is created ((IEnumerable <Button>) this.btnEyebrow).Select <Button, \u003C\u003E__AnonType15 <Button, int> >((Func <Button, int, \u003C\u003E__AnonType15 <Button, int> >)((val, idx) => new \u003C\u003E__AnonType15 <Button, int>(val, idx))).Where <\u003C\u003E__AnonType15 <Button, int> >((Func <\u003C\u003E__AnonType15 <Button, int>, bool>)(item => item != null)).ToList <\u003C\u003E__AnonType15 <Button, int> >().ForEach((Action <\u003C\u003E__AnonType15 <Button, int> >)(item => ObservableExtensions.Subscribe <Unit>((IObservable <M0>)UnityUIComponentExtensions.OnClickAsObservable(item.val), (Action <M0>)(_ => { if (item.idx == 2) { this.customBase.ChangeEyebrowPtnNext(-1); } else { this.customBase.ChangeEyebrowPtnNext(item.idx); } this.inpEyebrowNo.set_text((this.customBase.eyebrowPtn + 1).ToString()); })))); } if (Object.op_Implicit((Object)this.inpEyebrowNo)) { ObservableExtensions.Subscribe <string>(UnityEventExtensions.AsObservable <string>((UnityEvent <M0>) this.inpEyebrowNo.get_onEndEdit()), (Action <M0>)(value => { int result; if (!int.TryParse(value, out result)) { result = 0; } this.customBase.ChangeEyebrowPtnNo(result); this.inpEyebrowNo.set_text((this.customBase.eyebrowPtn + 1).ToString()); })); } if (((IEnumerable <Button>) this.btnEyePtn).Any <Button>()) { // ISSUE: object of a compiler-generated type is created ((IEnumerable <Button>) this.btnEyePtn).Select <Button, \u003C\u003E__AnonType15 <Button, int> >((Func <Button, int, \u003C\u003E__AnonType15 <Button, int> >)((val, idx) => new \u003C\u003E__AnonType15 <Button, int>(val, idx))).Where <\u003C\u003E__AnonType15 <Button, int> >((Func <\u003C\u003E__AnonType15 <Button, int>, bool>)(item => item != null)).ToList <\u003C\u003E__AnonType15 <Button, int> >().ForEach((Action <\u003C\u003E__AnonType15 <Button, int> >)(item => ObservableExtensions.Subscribe <Unit>((IObservable <M0>)UnityUIComponentExtensions.OnClickAsObservable(item.val), (Action <M0>)(_ => { if (item.idx == 2) { this.customBase.ChangeEyePtnNext(-1); } else { this.customBase.ChangeEyePtnNext(item.idx); } this.inpEyeNo.set_text((this.customBase.eyePtn + 1).ToString()); })))); } if (Object.op_Implicit((Object)this.inpEyeNo)) { ObservableExtensions.Subscribe <string>(UnityEventExtensions.AsObservable <string>((UnityEvent <M0>) this.inpEyeNo.get_onEndEdit()), (Action <M0>)(value => { int result; if (!int.TryParse(value, out result)) { result = 0; } this.customBase.ChangeEyePtnNo(result); this.inpEyeNo.set_text((this.customBase.eyePtn + 1).ToString()); })); } if (((IEnumerable <Button>) this.btnMouthPtn).Any <Button>()) { // ISSUE: object of a compiler-generated type is created ((IEnumerable <Button>) this.btnMouthPtn).Select <Button, \u003C\u003E__AnonType15 <Button, int> >((Func <Button, int, \u003C\u003E__AnonType15 <Button, int> >)((val, idx) => new \u003C\u003E__AnonType15 <Button, int>(val, idx))).Where <\u003C\u003E__AnonType15 <Button, int> >((Func <\u003C\u003E__AnonType15 <Button, int>, bool>)(item => item != null)).ToList <\u003C\u003E__AnonType15 <Button, int> >().ForEach((Action <\u003C\u003E__AnonType15 <Button, int> >)(item => ObservableExtensions.Subscribe <Unit>((IObservable <M0>)UnityUIComponentExtensions.OnClickAsObservable(item.val), (Action <M0>)(_ => { if (item.idx == 2) { this.customBase.ChangeMouthPtnNext(-1); } else { this.customBase.ChangeMouthPtnNext(item.idx); } this.inpMouthNo.set_text((this.customBase.mouthPtn + 1).ToString()); })))); } if (Object.op_Implicit((Object)this.inpMouthNo)) { ObservableExtensions.Subscribe <string>(UnityEventExtensions.AsObservable <string>((UnityEvent <M0>) this.inpMouthNo.get_onEndEdit()), (Action <M0>)(value => { int result; if (!int.TryParse(value, out result)) { result = 0; } this.customBase.ChangeMouthPtnNo(result); this.inpMouthNo.set_text((this.customBase.mouthPtn + 1).ToString()); })); } if (Object.op_Implicit((Object)this.tglPlayAnime)) { ObservableExtensions.Subscribe <bool>((IObservable <M0>)UnityUIComponentExtensions.OnValueChangedAsObservable((Toggle)this.tglPlayAnime), (Action <M0>)(isOn => this.customBase.playPoseAnime = isOn)); } Vector3 veclight = ((Component)this.customBase.lightCustom).get_transform().get_localEulerAngles(); if (Object.op_Implicit((Object)this.sldLightRotX)) { this.sldLightRotX.set_value(89.0 >= veclight.x ? (float)(double)veclight.x : (float)(veclight.x - 360.0)); ObservableExtensions.Subscribe <float>((IObservable <M0>)UnityUIComponentExtensions.OnValueChangedAsObservable(this.sldLightRotX), (Action <M0>)(val => ((Component)this.customBase.lightCustom).get_transform().set_localEulerAngles(new Vector3(val, (float)((Component)this.customBase.lightCustom).get_transform().get_localEulerAngles().y, (float)((Component)this.customBase.lightCustom).get_transform().get_localEulerAngles().z)))); } ObservableExtensions.Subscribe <PointerEventData>((IObservable <M0>)ObservableTriggerExtensions.OnScrollAsObservable((UIBehaviour)this.sldLightRotX), (Action <M0>)(scl => { if (!this.customBase.sliderControlWheel) { return; } this.sldLightRotX.set_value(Mathf.Clamp(this.sldLightRotX.get_value() + (float)scl.get_scrollDelta().y, -88f, 88f)); })); if (Object.op_Implicit((Object)this.sldLightRotY)) { this.sldLightRotY.set_value(180.0 > veclight.y ? (float)(double)veclight.y : (float)(veclight.y - 360.0)); ObservableExtensions.Subscribe <float>((IObservable <M0>)UnityUIComponentExtensions.OnValueChangedAsObservable(this.sldLightRotY), (Action <M0>)(val => ((Component)this.customBase.lightCustom).get_transform().set_localEulerAngles(new Vector3((float)((Component)this.customBase.lightCustom).get_transform().get_localEulerAngles().x, val, (float)((Component)this.customBase.lightCustom).get_transform().get_localEulerAngles().z)))); } ObservableExtensions.Subscribe <PointerEventData>((IObservable <M0>)ObservableTriggerExtensions.OnScrollAsObservable((UIBehaviour)this.sldLightRotY), (Action <M0>)(scl => { if (!this.customBase.sliderControlWheel) { return; } this.sldLightRotY.set_value(Mathf.Clamp(this.sldLightRotY.get_value() + (float)scl.get_scrollDelta().y, -178f, 178f)); })); if (Object.op_Implicit((Object)this.csLight)) { this.csLight.actUpdateColor = (Action <Color>)(color => this.customBase.lightCustom.set_color(color)); } if (Object.op_Implicit((Object)this.sldLightPower)) { ObservableExtensions.Subscribe <float>((IObservable <M0>)UnityUIComponentExtensions.OnValueChangedAsObservable(this.sldLightPower), (Action <M0>)(val => this.customBase.lightCustom.set_intensity(val))); } ObservableExtensions.Subscribe <PointerEventData>((IObservable <M0>)ObservableTriggerExtensions.OnScrollAsObservable((UIBehaviour)this.sldLightPower), (Action <M0>)(scl => { if (!this.customBase.sliderControlWheel) { return; } this.sldLightPower.set_value(Mathf.Clamp(this.sldLightPower.get_value() + (float)(scl.get_scrollDelta().y * -0.00999999977648258), 0.0f, 100f)); })); if (Object.op_Implicit((Object)this.btnLightReset)) { ObservableExtensions.Subscribe <Unit>((IObservable <M0>)UnityUIComponentExtensions.OnClickAsObservable(this.btnLightReset), (Action <M0>)(_ => { this.customBase.ResetLightSetting(); veclight = ((Component)this.customBase.lightCustom).get_transform().get_localEulerAngles(); this.sldLightRotX.set_value(89.0 >= veclight.x ? (float)(double)veclight.x : (float)(veclight.x - 360.0)); this.sldLightRotY.set_value(180.0 > veclight.y ? (float)(double)veclight.y : (float)(veclight.y - 360.0)); this.csLight.SetColor(this.customBase.lightCustom.get_color()); this.sldLightPower.set_value(this.customBase.lightCustom.get_intensity()); })); } if (((IEnumerable <Toggle>) this.tglBG).Any <Toggle>()) { // ISSUE: object of a compiler-generated type is created ((IEnumerable <Toggle>) this.tglBG).Select <Toggle, \u003C\u003E__AnonType15 <Toggle, int> >((Func <Toggle, int, \u003C\u003E__AnonType15 <Toggle, int> >)((val, idx) => new \u003C\u003E__AnonType15 <Toggle, int>(val, idx))).Where <\u003C\u003E__AnonType15 <Toggle, int> >((Func <\u003C\u003E__AnonType15 <Toggle, int>, bool>)(item => Object.op_Inequality((Object)item.val, (Object)null))).ToList <\u003C\u003E__AnonType15 <Toggle, int> >().ForEach((Action <\u003C\u003E__AnonType15 <Toggle, int> >)(item => ObservableExtensions.Subscribe <bool>(Observable.Where <bool>((IObservable <M0>)UnityUIComponentExtensions.OnValueChangedAsObservable(item.val), (Func <M0, bool>)(isOn => isOn)), (Action <M0>)(_ => { this.customBase.customCtrl.draw3D = 0 == item.idx; this.objBGIndex.SetActiveIfDifferent(!this.customBase.customCtrl.draw3D); this.objBGColor.SetActiveIfDifferent(this.customBase.customCtrl.draw3D); this.customBase.forceBackFrameHide = this.customBase.customCtrl.draw3D; })))); } if (((IEnumerable <Button>) this.btnBGIndex).Any <Button>()) { // ISSUE: object of a compiler-generated type is created ((IEnumerable <Button>) this.btnBGIndex).Select <Button, \u003C\u003E__AnonType15 <Button, int> >((Func <Button, int, \u003C\u003E__AnonType15 <Button, int> >)((val, idx) => new \u003C\u003E__AnonType15 <Button, int>(val, idx))).Where <\u003C\u003E__AnonType15 <Button, int> >((Func <\u003C\u003E__AnonType15 <Button, int>, bool>)(item => item != null)).ToList <\u003C\u003E__AnonType15 <Button, int> >().ForEach((Action <\u003C\u003E__AnonType15 <Button, int> >)(item => ObservableExtensions.Subscribe <Unit>((IObservable <M0>)UnityUIComponentExtensions.OnClickAsObservable(item.val), (Action <M0>)(_ => this.customBase.customCtrl.ChangeBGImage(item.idx))))); } if (Object.op_Implicit((Object)this.csBG)) { this.csBG.actUpdateColor = (Action <Color>)(color => this.customBase.customCtrl.ChangeBGColor(color)); } if (Object.op_Implicit((Object)this.btnClose)) { ObservableExtensions.Subscribe <Unit>((IObservable <M0>)UnityUIComponentExtensions.OnClickAsObservable(this.btnClose), (Action <M0>)(_ => this.customBase.customCtrl.showDrawMenu = false)); } this.UpdateUI(); }