protected void LinkToggle(Toggle toggle, Action <bool> act) { ObservableExtensions.Subscribe <bool>(UnityEventExtensions.AsObservable <bool>((UnityEvent <M0>)toggle.onValueChanged), (Action <M0>)(isOn => { this.EnterSE(); act(isOn); })); }
private void AddEvent(VoiceSetting.SetData data) { ObservableExtensions.Subscribe <bool>(UnityEventExtensions.AsObservable <bool>((UnityEvent <M0>)data.toggle.onValueChanged), (Action <M0>)(isOn => { data.sd.Mute = isOn; ((Behaviour)data.image).set_enabled(!isOn); this.EnterSE(); })); UnityUIComponentExtensions.SubscribeToInteractable((IObservable <bool>)Observable.Select <bool, bool>((IObservable <M0>)UnityUIComponentExtensions.OnValueChangedAsObservable(data.toggle), (Func <M0, M1>)(b => !b)), (Selectable)data.slider); ObservableExtensions.Subscribe <int>((IObservable <M0>)Observable.Select <float, int>(UnityEventExtensions.AsObservable <float>((UnityEvent <M0>)data.slider.get_onValueChanged()), (Func <M0, M1>)(value => (int)value)), (Action <M0>)(value => data.sd.Volume = value)); ObservableExtensions.Subscribe <PointerEventData>(Observable.Where <PointerEventData>((IObservable <M0>)ObservableTriggerExtensions.OnPointerDownAsObservable((UIBehaviour)data.slider), (Func <M0, bool>)(_ => Input.GetMouseButtonDown(0))), (Action <M0>)(_ => this.EnterSE())); }
protected override void Start() { ObservableExtensions.Subscribe <PickerRect.Mode>(Observable.TakeUntilDestroy <PickerRect.Mode>((IObservable <M0>) this._mode, (UnityEngine.Component) this), (Action <M0>)(_ => this.CalcSliderAValue())); if (Object.op_Inequality((Object)this.sliderA, (Object)null)) { ObservableExtensions.Subscribe <bool>(Observable.TakeUntilDestroy <bool>((IObservable <M0>) this.isAlpha, (UnityEngine.Component) this), (Action <M0>) new Action <bool>(((UnityEngine.Component) this.sliderA).get_gameObject().SetActive)); ObservableExtensions.Subscribe <float>(UnityEventExtensions.AsObservable <float>((UnityEvent <M0>) this.sliderA.get_onValueChanged()), (Action <M0>)(value => { this.Alpha = value; this.SetColor(this.ColorRGB, PickerRect.Control.None); })); } base.Start(); }
private void InitLink(SoundSetting.SoundGroup sg, SoundData sd, bool isSliderEvent) { this.LinkToggle(sg.toggle, (Action <bool>)(isOn => sd.Mute = isOn)); ObservableExtensions.Subscribe <bool>(UnityEventExtensions.AsObservable <bool>((UnityEvent <M0>)sg.toggle.onValueChanged), (Action <M0>)(isOn => ((Behaviour)sg.image).set_enabled(!isOn))); UnityUIComponentExtensions.SubscribeToInteractable((IObservable <bool>)Observable.Select <bool, bool>((IObservable <M0>)UnityUIComponentExtensions.OnValueChangedAsObservable(sg.toggle), (Func <M0, M1>)(b => !b)), (Selectable)sg.slider); if (isSliderEvent) { this.LinkSlider(sg.slider, (Action <float>)(value => sd.Volume = (int)value)); } else { ObservableExtensions.Subscribe <PointerEventData>(Observable.Where <PointerEventData>((IObservable <M0>)ObservableTriggerExtensions.OnPointerDownAsObservable((UIBehaviour)sg.slider), (Func <M0, bool>)(_ => Input.GetMouseButtonDown(0))), (Action <M0>)(_ => this.EnterSE())); } }
protected virtual void Start() { ObservableExtensions.Subscribe <bool>(Observable.TakeUntilDestroy <bool>((IObservable <M0>) this._isHSV, (UnityEngine.Component) this), (Action <M0>)(isOn => this.SetColor(isOn ? this._color.RGBToHSV() : this._color.HSVToRGB()))); // ISSUE: object of a compiler-generated type is created ((IEnumerable <Slider>) this.sliders).Select <Slider, \u003C\u003E__AnonType32 <Slider, int> >((Func <Slider, int, \u003C\u003E__AnonType32 <Slider, int> >)((p, index) => new \u003C\u003E__AnonType32 <Slider, int>(p, index))).ToList <\u003C\u003E__AnonType32 <Slider, int> >().ForEach((Action <\u003C\u003E__AnonType32 <Slider, int> >)(p => ObservableExtensions.Subscribe <float>(UnityEventExtensions.AsObservable <float>((UnityEvent <M0>)p.slider.get_onValueChanged()), (Action <M0>)(value => { ((Color) ref this._color).set_Item(p.index, p.slider.get_value()); this.SetColor(this._color); })))); if (!Object.op_Inequality((Object)this.sliderA, (Object)null)) { return; } ObservableExtensions.Subscribe <bool>(Observable.TakeUntilDestroy <bool>((IObservable <M0>) this.useAlpha, (UnityEngine.Component) this), (Action <M0>) new Action <bool>(((UnityEngine.Component) this.sliderA).get_gameObject().SetActive)); ObservableExtensions.Subscribe <float>(UnityEventExtensions.AsObservable <float>((UnityEvent <M0>) this.sliderA.get_onValueChanged()), (Action <M0>)(value => { this._color.a = (__Null)(double)value; this.updateColorAction.Call <Color>(this.color); })); }
protected override void OnBeforeStart() { ObservableExtensions.Subscribe <bool>((IObservable <M0>) this.OnActiveChangedAsObservable(), (System.Action <M0>)(active => this.SetActiveControl(active))); for (int index = 0; index < this._charaButtons.Length; ++index) { // ISSUE: object of a compiler-generated type is created // ISSUE: variable of a compiler-generated type CharaLookEditUI.\u003COnBeforeStart\u003Ec__AnonStorey2 startCAnonStorey2 = new CharaLookEditUI.\u003COnBeforeStart\u003Ec__AnonStorey2(); // ISSUE: reference to a compiler-generated field startCAnonStorey2.\u0024this = this; Button charaButton = this._charaButtons[index]; // ISSUE: reference to a compiler-generated field startCAnonStorey2.id = index; // ISSUE: method pointer ((UnityEvent)charaButton.get_onClick()).AddListener(new UnityAction((object)startCAnonStorey2, __methodptr(\u003C\u003Em__0))); } ObservableExtensions.Subscribe <int>((IObservable <M0>) this.OnSelectIDChangedAsObservable(), (System.Action <M0>)(x => { ((Selectable)this._charaCreateButton).set_interactable(x != -1); ((UnityEngine.Component) this._selectedImageTransform).get_gameObject().SetActiveIfDifferent(x != -1); if (((UnityEngine.Component) this._selectedImageTransform).get_gameObject().get_activeSelf()) { ((Transform)this._selectedImageTransform).set_localPosition(((Transform)this._elements[x]).get_localPosition()); } GameCharaFileInfo element = this._infos.GetElement <GameCharaFileInfo>(x); if (element == null) { return; } if (!element.FullPath.IsNullOrEmpty()) { bool activeSelf = this._objFemaleParameterWindow.get_activeSelf(); this._objFemaleParameterWindow.SetActiveIfDifferent(true); if (!activeSelf) { this._femaleParameterSelectNum = 0; this._tglFemaleStateSelects[0].SetIsOnWithoutCallback(true); for (int index = 0; index < this._objFemaleParameterRoots.Length; ++index) { this._objFemaleParameterRoots[index].SetActiveIfDifferent(index == 0); } } this._txtFemaleCharaName.set_text(element.name); this._riFemaleCard.set_texture((Texture)PngAssist.ChangeTextureFromByte(PngFile.LoadPngBytes(element.FullPath), 0, 0, (TextureFormat)5, false)); for (int index = 0; index < this._sccStateOfProgress.Length; ++index) { this._sccStateOfProgress[index].OnChangeValue(element.phase >= index ? 1 : 0); } string empty = string.Empty; this._txtLifeStyle.set_text(!Lifestyle.LifestyleName.TryGetValue(element.lifeStyle, out empty) ? "--------------------" : (element.lifeStyle != 4 ? empty : "E・シーカー")); this._txtGirlPower.set_text(element.flavorState[0].ToString()); this._txtTrust.set_text(element.flavorState[1].ToString()); this._txtHumanNature.set_text(element.flavorState[2].ToString()); this._txtInstinct.set_text(element.flavorState[3].ToString()); this._txtHentai.set_text(element.flavorState[4].ToString()); this._txtVigilance.set_text(element.flavorState[5].ToString()); this._txtSocial.set_text(element.flavorState[7].ToString()); this._txtDarkness.set_text(element.flavorState[6].ToString()); for (int key = 0; key < this._txtNormalSkillSlots.Length; ++key) { string str = "--------------------"; if (element.normalSkill.ContainsKey(key)) { str = Singleton <Resources> .Instance.GameInfo.GetItem(16, element.normalSkill[key])?.Name ?? "--------------------"; } this._txtNormalSkillSlots[key].set_text(str); } for (int key = 0; key < this._txtHSkillSlots.Length; ++key) { string str = "--------------------"; if (element.hSkill.ContainsKey(key)) { str = Singleton <Resources> .Instance.GameInfo.GetItem(17, element.hSkill[key])?.Name ?? "--------------------"; } this._txtHSkillSlots[key].set_text(str); } } else { this._txtFemaleCharaName.set_text(string.Empty); this._riFemaleCard.set_texture((Texture)this._texEmpty); for (int index = 0; index < this._sccStateOfProgress.Length; ++index) { this._sccStateOfProgress[index].OnChangeValue(element.phase >= index ? 1 : 0); } this._txtLifeStyle.set_text(string.Empty); this._txtGirlPower.set_text(string.Empty); this._txtTrust.set_text(string.Empty); this._txtHumanNature.set_text(string.Empty); this._txtInstinct.set_text(string.Empty); this._txtHentai.set_text(string.Empty); this._txtVigilance.set_text(string.Empty); this._txtSocial.set_text(string.Empty); this._txtDarkness.set_text(string.Empty); for (int index = 0; index < this._txtNormalSkillSlots.Length; ++index) { string str = "--------------------"; this._txtNormalSkillSlots[index].set_text(str); } for (int index = 0; index < this._txtHSkillSlots.Length; ++index) { string str = "--------------------"; this._txtHSkillSlots[index].set_text(str); } } })); this._objFemaleParameterWindow.SetActiveIfDifferent(false); this._txtFemaleCharaName.set_text("NoName"); this._riFemaleCard.set_texture((Texture)null); for (int index = 0; index < this._sccStateOfProgress.Length; ++index) { this._sccStateOfProgress[index].OnChangeValue(index != 0 ? 0 : 1); } for (int index = 0; index < this._tglFemaleStateSelects.Length; ++index) { // ISSUE: object of a compiler-generated type is created // ISSUE: variable of a compiler-generated type CharaLookEditUI.\u003COnBeforeStart\u003Ec__AnonStorey3 startCAnonStorey3 = new CharaLookEditUI.\u003COnBeforeStart\u003Ec__AnonStorey3(); // ISSUE: reference to a compiler-generated field startCAnonStorey3.\u0024this = this; // ISSUE: reference to a compiler-generated field startCAnonStorey3.sel = index; // ISSUE: reference to a compiler-generated method // ISSUE: reference to a compiler-generated method ObservableExtensions.Subscribe <bool>(Observable.Where <bool>(UnityEventExtensions.AsObservable <bool>((UnityEvent <M0>) this._tglFemaleStateSelects[index].onValueChanged), (Func <M0, bool>) new Func <bool, bool>(startCAnonStorey3.\u003C\u003Em__0)), (System.Action <M0>) new System.Action <bool>(startCAnonStorey3.\u003C\u003Em__1)); } for (int index = 0; index < this._actionStateSelects.Length; ++index) { // ISSUE: object of a compiler-generated type is created // ISSUE: variable of a compiler-generated type CharaLookEditUI.\u003COnBeforeStart\u003Ec__AnonStorey4 startCAnonStorey4 = new CharaLookEditUI.\u003COnBeforeStart\u003Ec__AnonStorey4(); // ISSUE: reference to a compiler-generated field startCAnonStorey4.\u0024this = this; // ISSUE: reference to a compiler-generated field startCAnonStorey4.sel = index; // ISSUE: method pointer this._actionStateSelects[index].listActionEnter.Add(new UnityAction((object)startCAnonStorey4, __methodptr(\u003C\u003Em__0))); // ISSUE: method pointer this._actionStateSelects[index].listActionExit.Add(new UnityAction((object)startCAnonStorey4, __methodptr(\u003C\u003Em__1))); } for (int index = 0; index < this._objFemaleStateSelectSels.Length; ++index) { this._objFemaleStateSelectSels[index].SetActiveIfDifferent(false); } this._txtLifeStyle.set_text(string.Empty); this._txtGirlPower.set_text("0"); this._txtTrust.set_text("0"); this._txtHumanNature.set_text("0"); this._txtInstinct.set_text("0"); this._txtHentai.set_text("0"); this._txtVigilance.set_text("0"); this._txtSocial.set_text("0"); this._txtDarkness.set_text("0"); for (int index = 0; index < this._txtNormalSkillSlots.Length; ++index) { this._txtNormalSkillSlots[index].set_text("--------------------"); } for (int index = 0; index < this._txtHSkillSlots.Length; ++index) { this._txtHSkillSlots[index].set_text("--------------------"); } KeyCodeDownCommand keyCodeDownCommand = new KeyCodeDownCommand() { KeyCode = (KeyCode)324 }; // ISSUE: method pointer keyCodeDownCommand.TriggerEvent.AddListener(new UnityAction((object)this, __methodptr(\u003COnBeforeStart\u003Em__2))); this._keyCommands.Add(keyCodeDownCommand); // ISSUE: method pointer ((UnityEvent)this._closeButton.get_onClick()).AddListener(new UnityAction((object)this, __methodptr(\u003COnBeforeStart\u003Em__3))); // ISSUE: method pointer ((UnityEvent)this._charaCreateButton.get_onClick()).AddListener(new UnityAction((object)this, __methodptr(\u003COnBeforeStart\u003Em__4))); ((Selectable)this._charaCreateButton).set_interactable(false); ((UnityEngine.Component) this._selectedImageTransform).get_gameObject().SetActive(false); }
public void Start() { if (this.IsStartUp) { return; } this.InitCharaList(true); if (Object.op_Implicit((Object)this.btnEntry)) { ObservableExtensions.Subscribe <Unit>(Observable.Where <Unit>((IObservable <M0>)UnityUIComponentExtensions.OnClickAsObservable(this.btnEntry), (Func <M0, bool>)(_ => !Singleton <Scene> .Instance.IsNowLoadingFade)), (Action <M0>)(_ => { if (this.onLoadItemFunc != null) { this.onLoadItemFunc(this.listCtrl.GetNowSelectCard()); } Singleton <Resources> .Instance.SoundPack.Play(SoundPack.SystemSE.OK_L); })); } // ISSUE: method pointer this.actionEntry.listActionEnter.Add(new UnityAction((object)this, __methodptr(\u003CStart\u003Em__2))); // ISSUE: method pointer this.actionEntry.listActionExit.Add(new UnityAction((object)this, __methodptr(\u003CStart\u003Em__3))); this.UpdateWindow(this.windowType, true, false); if (Object.op_Implicit((Object)this.tglMale)) { ObservableExtensions.Subscribe <bool>(Observable.Where <bool>(UnityEventExtensions.AsObservable <bool>((UnityEvent <M0>) this.tglMale.onValueChanged), (Func <M0, bool>)(_ => this.selectSex != 0)), (Action <M0>)(_isOn => { if (!_isOn) { return; } this.selectSex = 0; this.CreateCharaList(this.lstMaleCharaFileInfo, false); this.listCtrl.SetNowSelectToggle(); if (this.listCtrl.GetNowSelectCard() != null) { this.listCtrl.SetParameterWindowVisible(true); } Singleton <Resources> .Instance.SoundPack.Play(SoundPack.SystemSE.OK_S); })); ObservableExtensions.Subscribe <PointerEventData>((IObservable <M0>)ObservableTriggerExtensions.OnPointerEnterAsObservable((UIBehaviour)this.tglMale), (Action <M0>)(_ => Singleton <Resources> .Instance.SoundPack.Play(SoundPack.SystemSE.Select))); } if (Object.op_Implicit((Object)this.tglFemale)) { ObservableExtensions.Subscribe <bool>(Observable.Where <bool>(UnityEventExtensions.AsObservable <bool>((UnityEvent <M0>) this.tglFemale.onValueChanged), (Func <M0, bool>)(_ => this.selectSex != 1)), (Action <M0>)(_isOn => { if (!_isOn) { return; } this.selectSex = 1; this.CreateCharaList(this.lstFemaleCharaFileInfo, false); this.listCtrl.SetNowSelectToggle(); if (this.listCtrl.GetNowSelectCard() != null) { this.listCtrl.SetParameterWindowVisible(true); } Singleton <Resources> .Instance.SoundPack.Play(SoundPack.SystemSE.OK_S); })); ObservableExtensions.Subscribe <PointerEventData>((IObservable <M0>)ObservableTriggerExtensions.OnPointerEnterAsObservable((UIBehaviour)this.tglFemale), (Action <M0>)(_ => Singleton <Resources> .Instance.SoundPack.Play(SoundPack.SystemSE.Select))); } if (Object.op_Implicit((Object)this.btnCharacterCreation)) { ObservableExtensions.Subscribe <Unit>(Observable.Where <Unit>((IObservable <M0>)UnityUIComponentExtensions.OnClickAsObservable(this.btnCharacterCreation), (Func <M0, bool>)(_ => !Singleton <Scene> .Instance.IsNowLoadingFade)), (Action <M0>)(_ => { if (this.onCharaCreateClickAction != null) { this.onCharaCreateClickAction(this.selectSex); } Singleton <Resources> .Instance.SoundPack.Play(SoundPack.SystemSE.OK_L); })); ObservableExtensions.Subscribe <PointerEventData>((IObservable <M0>)ObservableTriggerExtensions.OnPointerEnterAsObservable((UIBehaviour)this.btnCharacterCreation), (Action <M0>)(_ => Singleton <Resources> .Instance.SoundPack.Play(SoundPack.SystemSE.Select))); ((UnityEngine.Component) this.btnCharacterCreation).get_gameObject().SetActiveIfDifferent(!this._hideCharacterCreation); } // ISSUE: method pointer this.actionFemaleSelect.listActionEnter.Add(new UnityAction((object)this, __methodptr(\u003CStart\u003Em__D))); // ISSUE: method pointer this.actionFemaleSelect.listActionExit.Add(new UnityAction((object)this, __methodptr(\u003CStart\u003Em__E))); // ISSUE: method pointer this.actionMaleSelect.listActionEnter.Add(new UnityAction((object)this, __methodptr(\u003CStart\u003Em__F))); // ISSUE: method pointer this.actionMaleSelect.listActionExit.Add(new UnityAction((object)this, __methodptr(\u003CStart\u003Em__10))); this.selectReactive = new BoolReactiveProperty(false); UnityUIComponentExtensions.SubscribeToInteractable((IObservable <bool>) this.selectReactive, (Selectable)this.btnEntry); this.listCtrl.onChangeItem = (Action <bool>)(_isOn => ((ReactiveProperty <bool>) this.selectReactive).set_Value(_isOn)); ObservableExtensions.Subscribe <Unit>(Observable.Where <Unit>(Observable.Where <Unit>((IObservable <M0>)ObservableTriggerExtensions.UpdateAsObservable((UnityEngine.Component) this), (Func <M0, bool>)(_ => Input.GetMouseButtonUp(1))), (Func <M0, bool>)(_ => !Singleton <Scene> .Instance.IsNowLoadingFade)), (Action <M0>)(_ => { if (this.onClickRightFunc == null) { return; } this.onClickRightFunc(); })); if (Object.op_Implicit((Object)this.btnClose)) { ObservableExtensions.Subscribe <Unit>((IObservable <M0>)UnityUIComponentExtensions.OnClickAsObservable(this.btnClose), (Action <M0>)(_ => { Singleton <Resources> .Instance.SoundPack.Play(SoundPack.SystemSE.Cancel); if (this.onCloseWindowFunc == null) { return; } this.onCloseWindowFunc(); })); ObservableExtensions.Subscribe <PointerEventData>((IObservable <M0>)ObservableTriggerExtensions.OnPointerEnterAsObservable((UIBehaviour)this.btnClose), (Action <M0>)(_ => Singleton <Resources> .Instance.SoundPack.Play(SoundPack.SystemSE.Select))); ((UnityEngine.Component) this.btnClose).get_gameObject().SetActiveIfDifferent(!this._hideClose); } this.IsStartUp = true; }
protected override void Start() { base.Start(); this.customBase.ChangeAcsSlotName(-1); this.customBase.actUpdateCvsAccessory += new Action(((CvsBase)this).UpdateCustomUI); if (((IEnumerable <Toggle>) this.tglType).Any <Toggle>()) { // ISSUE: object of a compiler-generated type is created ((IEnumerable <Toggle>) this.tglType).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>)(tgl => Object.op_Inequality((Object)tgl.val, (Object)null))).ToList <\u003C\u003E__AnonType15 <Toggle, int> >().ForEach((Action <\u003C\u003E__AnonType15 <Toggle, int> >)(tgl => ObservableExtensions.Subscribe <bool>(Observable.Where <bool>(UnityEventExtensions.AsObservable <bool>((UnityEvent <M0>)tgl.val.onValueChanged), (Func <M0, bool>)(isOn => isOn)), (Action <M0>)(isOn => this.ChangeAcsType(tgl.idx))))); } this.UpdateAcsList(-1); this.sscAcs.SetToggleID(this.nowAcs.parts[this.SNo].id); this.sscAcs.onSelect = (Action <CustomSelectInfo>)(info => { if (info == null || this.nowAcs.parts[this.SNo].id == info.id) { return; } this.ChangeAcsId(info.id); }); // ISSUE: object of a compiler-generated type is created ((IEnumerable <CustomColorSet>) this.csColor).Select <CustomColorSet, \u003C\u003E__AnonType15 <CustomColorSet, int> >((Func <CustomColorSet, int, \u003C\u003E__AnonType15 <CustomColorSet, int> >)((val, idx) => new \u003C\u003E__AnonType15 <CustomColorSet, int>(val, idx))).Where <\u003C\u003E__AnonType15 <CustomColorSet, int> >((Func <\u003C\u003E__AnonType15 <CustomColorSet, int>, bool>)(item => Object.op_Inequality((Object)item.val, (Object)null))).ToList <\u003C\u003E__AnonType15 <CustomColorSet, int> >().ForEach((Action <\u003C\u003E__AnonType15 <CustomColorSet, int> >)(item => item.val.actUpdateColor = (Action <Color>)(color => { this.nowAcs.parts[this.SNo].colorInfo[item.idx].color = color; this.orgAcs.parts[this.SNo].colorInfo[item.idx].color = color; this.chaCtrl.ChangeAccessoryColor(this.SNo); }))); // ISSUE: object of a compiler-generated type is created ((IEnumerable <CustomSliderSet>) this.ssGloss).Select <CustomSliderSet, \u003C\u003E__AnonType15 <CustomSliderSet, int> >((Func <CustomSliderSet, int, \u003C\u003E__AnonType15 <CustomSliderSet, int> >)((val, idx) => new \u003C\u003E__AnonType15 <CustomSliderSet, int>(val, idx))).Where <\u003C\u003E__AnonType15 <CustomSliderSet, int> >((Func <\u003C\u003E__AnonType15 <CustomSliderSet, int>, bool>)(item => Object.op_Inequality((Object)item.val, (Object)null))).ToList <\u003C\u003E__AnonType15 <CustomSliderSet, int> >().ForEach((Action <\u003C\u003E__AnonType15 <CustomSliderSet, int> >)(item => { item.val.onChange = (Action <float>)(value => { this.nowAcs.parts[this.SNo].colorInfo[item.idx].glossPower = value; this.orgAcs.parts[this.SNo].colorInfo[item.idx].glossPower = value; this.chaCtrl.ChangeAccessoryColor(this.SNo); }); item.val.onSetDefaultValue = (Func <float>)(() => { if (Object.op_Equality((Object)null, (Object)this.chaCtrl.cmpAccessory[this.SNo])) { return(0.0f); } switch (item.idx) { case 0: return(this.chaCtrl.cmpAccessory[this.SNo].defGlossPower01); case 1: return(this.chaCtrl.cmpAccessory[this.SNo].defGlossPower02); case 2: return(this.chaCtrl.cmpAccessory[this.SNo].defGlossPower03); case 3: return(this.chaCtrl.cmpAccessory[this.SNo].defGlossPower04); default: return(0.0f); } }); })); // ISSUE: object of a compiler-generated type is created ((IEnumerable <CustomSliderSet>) this.ssMetallic).Select <CustomSliderSet, \u003C\u003E__AnonType15 <CustomSliderSet, int> >((Func <CustomSliderSet, int, \u003C\u003E__AnonType15 <CustomSliderSet, int> >)((val, idx) => new \u003C\u003E__AnonType15 <CustomSliderSet, int>(val, idx))).Where <\u003C\u003E__AnonType15 <CustomSliderSet, int> >((Func <\u003C\u003E__AnonType15 <CustomSliderSet, int>, bool>)(item => Object.op_Inequality((Object)item.val, (Object)null))).ToList <\u003C\u003E__AnonType15 <CustomSliderSet, int> >().ForEach((Action <\u003C\u003E__AnonType15 <CustomSliderSet, int> >)(item => { item.val.onChange = (Action <float>)(value => { this.nowAcs.parts[this.SNo].colorInfo[item.idx].metallicPower = value; this.orgAcs.parts[this.SNo].colorInfo[item.idx].metallicPower = value; this.chaCtrl.ChangeAccessoryColor(this.SNo); }); item.val.onSetDefaultValue = (Func <float>)(() => { if (Object.op_Equality((Object)null, (Object)this.chaCtrl.cmpAccessory[this.SNo])) { return(0.0f); } switch (item.idx) { case 0: return(this.chaCtrl.cmpAccessory[this.SNo].defMetallicPower01); case 1: return(this.chaCtrl.cmpAccessory[this.SNo].defMetallicPower02); case 2: return(this.chaCtrl.cmpAccessory[this.SNo].defMetallicPower03); case 3: return(this.chaCtrl.cmpAccessory[this.SNo].defMetallicPower04); default: return(0.0f); } }); })); if (Object.op_Inequality((Object)null, (Object)this.btnDefaultColor)) { ObservableExtensions.Subscribe <Unit>((IObservable <M0>)UnityUIComponentExtensions.OnClickAsObservable(this.btnDefaultColor), (Action <M0>)(_ => { this.SetDefaultColor(); this.chaCtrl.ChangeAccessoryColor(this.SNo); this.UpdateCustomUI(); })); } if (Object.op_Implicit((Object)this.csHairBaseColor)) { this.csHairBaseColor.actUpdateColor = (Action <Color>)(color => { this.nowAcs.parts[this.SNo].colorInfo[0].color = color; this.orgAcs.parts[this.SNo].colorInfo[0].color = color; this.chaCtrl.ChangeHairTypeAccessoryColor(this.SNo); }); } if (Object.op_Implicit((Object)this.csHairTopColor)) { this.csHairTopColor.actUpdateColor = (Action <Color>)(color => { this.nowAcs.parts[this.SNo].colorInfo[1].color = color; this.orgAcs.parts[this.SNo].colorInfo[1].color = color; this.chaCtrl.ChangeHairTypeAccessoryColor(this.SNo); }); } if (Object.op_Implicit((Object)this.csHairUnderColor)) { this.csHairUnderColor.actUpdateColor = (Action <Color>)(color => { this.nowAcs.parts[this.SNo].colorInfo[2].color = color; this.orgAcs.parts[this.SNo].colorInfo[2].color = color; this.chaCtrl.ChangeHairTypeAccessoryColor(this.SNo); }); } if (Object.op_Implicit((Object)this.csHairSpecular)) { this.csHairSpecular.actUpdateColor = (Action <Color>)(color => { this.nowAcs.parts[this.SNo].colorInfo[3].color = color; this.orgAcs.parts[this.SNo].colorInfo[3].color = color; this.chaCtrl.ChangeHairTypeAccessoryColor(this.SNo); }); } if (Object.op_Implicit((Object)this.ssHairMetallic)) { this.ssHairMetallic.onChange = (Action <float>)(value => { this.nowAcs.parts[this.SNo].colorInfo[0].metallicPower = value; this.orgAcs.parts[this.SNo].colorInfo[0].metallicPower = value; this.chaCtrl.ChangeHairTypeAccessoryColor(this.SNo); }); } if (Object.op_Implicit((Object)this.ssHairSmoothness)) { this.ssHairSmoothness.onChange = (Action <float>)(value => { this.nowAcs.parts[this.SNo].colorInfo[0].smoothnessPower = value; this.orgAcs.parts[this.SNo].colorInfo[0].smoothnessPower = value; this.chaCtrl.ChangeHairTypeAccessoryColor(this.SNo); }); } // ISSUE: object of a compiler-generated type is created ((IEnumerable <Button>) this.btnGetHairColor).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 => Object.op_Inequality((Object)item.val, (Object)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.ChangeHairTypeAccessoryColor(item.idx))))); if (((IEnumerable <Toggle>) this.tglParent).Any <Toggle>()) { // ISSUE: object of a compiler-generated type is created ((IEnumerable <Toggle>) this.tglParent).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>)(tgl => Object.op_Inequality((Object)tgl.val, (Object)null))).ToList <\u003C\u003E__AnonType15 <Toggle, int> >().ForEach((Action <\u003C\u003E__AnonType15 <Toggle, int> >)(tgl => ObservableExtensions.Subscribe <bool>(Observable.Where <bool>(UnityEventExtensions.AsObservable <bool>((UnityEvent <M0>)tgl.val.onValueChanged), (Func <M0, bool>)(isOn => isOn)), (Action <M0>)(isOn => this.ChangeAcsParent(tgl.idx))))); } if (Object.op_Inequality((Object)null, (Object)this.btnDefaultParent)) { ObservableExtensions.Subscribe <Unit>((IObservable <M0>)UnityUIComponentExtensions.OnClickAsObservable(this.btnDefaultParent), (Action <M0>)(_ => { this.chaCtrl.ChangeAccessoryParent(this.SNo, this.chaCtrl.GetAccessoryDefaultParentStr(this.SNo)); this.orgAcs.parts[this.SNo].parentKey = this.nowAcs.parts[this.SNo].parentKey; this.UpdateCustomUI(); })); } ObservableExtensions.Subscribe <bool>(UnityEventExtensions.AsObservable <bool>((UnityEvent <M0>) this.tglNoShake.onValueChanged), (Action <M0>)(isOn => { this.nowAcs.parts[this.SNo].noShake = isOn; this.orgAcs.parts[this.SNo].noShake = isOn; })); GameObject[] gameObjectArray = new GameObject[2] { this.customBase.objAcs01ControllerTop, this.customBase.objAcs02ControllerTop }; for (int _correctNo = 0; _correctNo < this.acCorrect.Length; ++_correctNo) { this.acCorrect[_correctNo].CreateGuid(gameObjectArray[_correctNo]); this.acCorrect[_correctNo].Initialize(this.SNo, _correctNo); } this.StartCoroutine(this.SetInputText()); this.backSNo = this.SNo; }
public ItemNodeUI ItemListAddNode(int index, StuffItem item) { ItemNodeUI node = this._viewer.itemListUI.AddItemNode(index, item); if (Object.op_Inequality((Object)node, (Object)null)) { DisposableExtensions.AddTo <IDisposable>((M0)ObservableExtensions.Subscribe <IList <double> >((IObservable <M0>)UnityEventExtensions.AsObservable((UnityEvent)node.OnClick).DoubleInterval <Unit>(250f, false), (Action <M0>)(_ => { if (this.ItemNodeOnDoubleClick == null) { return; } this.ItemNodeOnDoubleClick(index, node, this.sel); })), (Component)node); } return(node); }
public virtual ItemNodeUI ItemListAddNode(int index, StuffItem item) { ItemNodeUI node = this._viewer.itemListUI.AddItemNode(index, item); if (Object.op_Inequality((Object)node, (Object)null) && this.ItemNodeOnDoubleClick != null) { DisposableExtensions.AddTo <IDisposable>((M0)ObservableExtensions.Subscribe <IList <double> >((IObservable <M0>)UnityEventExtensions.AsObservable((UnityEvent)node.OnClick).DoubleInterval <Unit>(250f, false), (Action <M0>)(_ => { Action <InventoryFacadeViewer.DoubleClickData> nodeOnDoubleClick = this.ItemNodeOnDoubleClick; if (nodeOnDoubleClick == null) { return; } nodeOnDoubleClick(new InventoryFacadeViewer.DoubleClickData(index, node)); })), (Component)node); } return(node); }
private void Start() { this.customBase.actUpdateCvsHair += new Action(this.UpdateCustomUI); if (!((IEnumerable <Toggle>) this.tglShaderType).Any <Toggle>()) { return; } // ISSUE: object of a compiler-generated type is created ((IEnumerable <Toggle>) this.tglShaderType).Select <Toggle, \u003C\u003E__AnonType12 <Toggle, byte> >((Func <Toggle, int, \u003C\u003E__AnonType12 <Toggle, byte> >)((p, idx) => new \u003C\u003E__AnonType12 <Toggle, byte>(p, (byte)idx))).ToList <\u003C\u003E__AnonType12 <Toggle, byte> >().ForEach((Action <\u003C\u003E__AnonType12 <Toggle, byte> >)(p => ObservableExtensions.Subscribe <bool>(Observable.Where <bool>(UnityEventExtensions.AsObservable <bool>((UnityEvent <M0>)p.toggle.onValueChanged), (Func <M0, bool>)(isOn => isOn)), (Action <M0>)(isOn => { this.hair.shaderType = (int)p.index; this.chaCtrl.ChangeSettingHairShader(); this.chaCtrl.ChangeSettingHairTypeAccessoryShaderAll(); })))); }
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(); }
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(); }
protected override void Start() { base.Start(); this.customBase.actUpdateCvsType += new Action(((CvsBase)this).UpdateCustomUI); this.voiceCnt = new int[this.customBase.dictPersonality.Count]; this.tglType = new Toggle[this.customBase.dictPersonality.Keys.Count]; // ISSUE: object of a compiler-generated type is created foreach (\u003C\u003E__AnonType15 <KeyValuePair <int, string>, int> anonType15 in this.customBase.dictPersonality.Select <KeyValuePair <int, string>, \u003C\u003E__AnonType15 <KeyValuePair <int, string>, int> >((Func <KeyValuePair <int, string>, int, \u003C\u003E__AnonType15 <KeyValuePair <int, string>, int> >)((val, idx) => new \u003C\u003E__AnonType15 <KeyValuePair <int, string>, int>(val, idx)))) { GameObject self = (GameObject)Object.Instantiate <GameObject>((M0)this.objTemp); ((Object)self).set_name("tglRbSel_" + anonType15.idx.ToString("00")); this.tglType[anonType15.idx] = (Toggle)self.GetComponent <Toggle>(); ToggleGroup component1 = (ToggleGroup)this.objTop.GetComponent <ToggleGroup>(); this.tglType[anonType15.idx].set_group(component1); self.get_transform().SetParent(this.objTop.get_transform(), false); Transform transform = self.get_transform().Find("textRbSelect"); if (Object.op_Inequality((Object)null, (Object)transform)) { Text component2 = (Text)((Component)transform).GetComponent <Text>(); if (Object.op_Implicit((Object)component2)) { component2.set_text(anonType15.val.Value); } } self.SetActiveIfDifferent(true); } // ISSUE: object of a compiler-generated type is created ((IEnumerable <Toggle>) this.tglType).Select <Toggle, \u003C\u003E__AnonType12 <Toggle, byte> >((Func <Toggle, int, \u003C\u003E__AnonType12 <Toggle, byte> >)((p, idx) => new \u003C\u003E__AnonType12 <Toggle, byte>(p, (byte)idx))).ToList <\u003C\u003E__AnonType12 <Toggle, byte> >().ForEach((Action <\u003C\u003E__AnonType12 <Toggle, byte> >)(p => ObservableExtensions.Subscribe <bool>(UnityEventExtensions.AsObservable <bool>((UnityEvent <M0>)p.toggle.onValueChanged), (Action <M0>)(isOn => { if (this.customBase.updateCustomUI || !isOn) { return; } this.parameter.personality = this.customBase.dictPersonality.Keys.ToArray <int>()[(int)p.index]; this.PlayVoice(); })))); this.ssVoiceRate.onChange = (Action <float>)(value => { this.parameter.voiceRate = value; if (!Singleton <Manager.Sound> .Instance.IsPlay(Manager.Sound.Type.SystemSE, (string)null)) { return; } this.audioSource.set_pitch(this.parameter.voicePitch); }); this.ssVoiceRate.onPointerUp = (Action)(() => this.PlayVoice()); this.ssVoiceRate.onSetDefaultValue = (Func <float>)(() => 0.5f); this.StartCoroutine(this.SetInputText()); }
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; })); }
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 override void Start() { base.Start(); ObservableExtensions.Subscribe <float>(UnityEventExtensions.AsObservable <float>((UnityEvent <M0>) this.sliderR.get_onValueChanged()), (Action <M0>)(value => { if (this.isHSV) { this.inputR.set_text(this.ConvertTextFromValue(0, 360, value)); } else { this.inputR.set_text(this.ConvertTextFromValue(0, (int)byte.MaxValue, value)); } })); // ISSUE: method pointer ((UnityEvent <string>) this.inputR.get_onEndEdit()).AddListener(new UnityAction <string>((object)this, __methodptr(\u003CStart\u003Em__1))); ObservableExtensions.Subscribe <float>(UnityEventExtensions.AsObservable <float>((UnityEvent <M0>) this.sliderG.get_onValueChanged()), (Action <M0>)(value => { if (this.isHSV) { this.inputG.set_text(this.ConvertTextFromValue(0, 100, value)); } else { this.inputG.set_text(this.ConvertTextFromValue(0, (int)byte.MaxValue, value)); } })); // ISSUE: method pointer ((UnityEvent <string>) this.inputG.get_onEndEdit()).AddListener(new UnityAction <string>((object)this, __methodptr(\u003CStart\u003Em__3))); ObservableExtensions.Subscribe <float>(UnityEventExtensions.AsObservable <float>((UnityEvent <M0>) this.sliderB.get_onValueChanged()), (Action <M0>)(value => { if (this.isHSV) { this.inputB.set_text(this.ConvertTextFromValue(0, 100, value)); } else { this.inputB.set_text(this.ConvertTextFromValue(0, (int)byte.MaxValue, value)); } })); // ISSUE: method pointer ((UnityEvent <string>) this.inputB.get_onEndEdit()).AddListener(new UnityAction <string>((object)this, __methodptr(\u003CStart\u003Em__5))); ObservableExtensions.Subscribe <float>(UnityEventExtensions.AsObservable <float>((UnityEvent <M0>) this.sliderA.get_onValueChanged()), (Action <M0>)(value => { if (this.isHSV) { this.inputA.set_text(this.ConvertTextFromValue(0, 100, value)); } else { this.inputA.set_text(this.ConvertTextFromValue(0, 100, value)); } })); // ISSUE: method pointer ((UnityEvent <string>) this.inputA.get_onEndEdit()).AddListener(new UnityAction <string>((object)this, __methodptr(\u003CStart\u003Em__7))); ObservableExtensions.Subscribe <bool>(Observable.TakeUntilDestroy <bool>((IObservable <M0>) this._isHSV, (UnityEngine.Component) this), (Action <M0>)(isOn => { if (isOn) { this.textR.set_text("色合い"); this.textG.set_text("鮮やかさ"); this.textB.set_text("明るさ"); } else { this.textR.set_text("赤"); this.textG.set_text("緑"); this.textB.set_text("青"); this.inputR.set_text(this.ConvertTextFromValue(0, (int)byte.MaxValue, (float)this.color.r)); } })); }
protected void LinkTmpDropdown(TMP_Dropdown dropdown, Action <float> act) { ObservableExtensions.Subscribe <int>(UnityEventExtensions.AsObservable <int>((UnityEvent <M0>)dropdown.get_onValueChanged()), (Action <M0>)(value => act((float)value))); ObservableExtensions.Subscribe <PointerEventData>(Observable.Where <PointerEventData>((IObservable <M0>)ObservableTriggerExtensions.OnPointerDownAsObservable((UIBehaviour)dropdown), (Func <M0, bool>)(_ => Input.GetMouseButtonDown(0))), (Action <M0>)(_ => this.EnterSE())); }
private ItemNodeUI ItemListAddNode(StuffItem item, ShopViewer.ExtraPadding padding) { int index = this._itemListUI.SearchNotUsedIndex; ItemNodeUI node = this._itemListUI.AddItemNode(index, item); if (Object.op_Inequality((Object)node, (Object)null)) { node.extraData = (ItemNodeUI.ExtraData)padding; DisposableExtensions.AddTo <IDisposable>((M0)ObservableExtensions.Subscribe <IList <double> >((IObservable <M0>)UnityEventExtensions.AsObservable((UnityEvent)node.OnClick).DoubleInterval <Unit>(250f, false), (Action <M0>)(_ => { if (this.DoubleClick == null) { return; } this.DoubleClick(index, node); })), (Component)node); } return(node); }
protected virtual void Start() { ObservableExtensions.Subscribe <PickerRect.Mode>(Observable.TakeUntilDestroy <PickerRect.Mode>((IObservable <M0>) this._mode, (UnityEngine.Component) this), (Action <M0>)(_ => { this.CalcRectPointer(); this.CalcSliderValue(); this.ChangeRectColor(); this.ChangeSliderColor(); })); if (((IEnumerable <Toggle>) this.modeChangeToggles).Any <Toggle>()) { // ISSUE: object of a compiler-generated type is created ((IEnumerable <Toggle>) this.modeChangeToggles).Select <Toggle, \u003C\u003E__AnonType31 <Toggle, PickerRect.Mode> >((Func <Toggle, int, \u003C\u003E__AnonType31 <Toggle, PickerRect.Mode> >)((toggle, index) => new \u003C\u003E__AnonType31 <Toggle, PickerRect.Mode>(toggle, (PickerRect.Mode)index))).Where <\u003C\u003E__AnonType31 <Toggle, PickerRect.Mode> >((Func <\u003C\u003E__AnonType31 <Toggle, PickerRect.Mode>, bool>)(item => Object.op_Inequality((Object)item.toggle, (Object)null))).ToList <\u003C\u003E__AnonType31 <Toggle, PickerRect.Mode> >().ForEach((Action <\u003C\u003E__AnonType31 <Toggle, PickerRect.Mode> >)(item => ObservableExtensions.Subscribe <bool>(Observable.Where <bool>((IObservable <M0>)UnityUIComponentExtensions.OnValueChangedAsObservable(item.toggle), (Func <M0, bool>)(isOn => isOn)), (Action <M0>)(_ => this.mode = item.mode)))); } if (Object.op_Inequality((Object)this.slider, (Object)null)) { PickerRect.Control ctrl = PickerRect.Control.Slider; Action <Func <HsvColor, HsvColor> > hsv = (Action <Func <HsvColor, HsvColor> >)(func => this.SetColor(func(this.ColorHSV), ctrl)); Action <Func <Color, Color> > rgb = (Action <Func <Color, Color> >)(func => this.SetColor(func(this.ColorRGB), ctrl)); ObservableExtensions.Subscribe <float>(UnityEventExtensions.AsObservable <float>((UnityEvent <M0>) this.slider.get_onValueChanged()), (Action <M0>)(value => { switch (this.mode) { case PickerRect.Mode.Hue: hsv((Func <HsvColor, HsvColor>)(c => { c.H = value * 360f; return(c); })); break; case PickerRect.Mode.Saturation: hsv((Func <HsvColor, HsvColor>)(c => { c.S = value; return(c); })); break; case PickerRect.Mode.Value: hsv((Func <HsvColor, HsvColor>)(c => { c.V = value; return(c); })); break; case PickerRect.Mode.Red: rgb((Func <Color, Color>)(c => { c.r = (__Null)(double)value; return(c); })); break; case PickerRect.Mode.Green: rgb((Func <Color, Color>)(c => { c.g = (__Null)(double)value; return(c); })); break; case PickerRect.Mode.Blue: rgb((Func <Color, Color>)(c => { c.b = (__Null)(double)value; return(c); })); break; } })); } ObservableExtensions.Subscribe <Vector2>(Observable.DistinctUntilChanged <Vector2>((IObservable <M0>)Observable.Select <Unit, Vector2>(Observable.Where <Unit>(Observable.Where <Unit>(Observable.SkipWhile <Unit>((IObservable <M0>)ObservableTriggerExtensions.UpdateAsObservable((UnityEngine.Component) this), (Func <M0, bool>)(_ => Object.op_Equality((Object)this.info, (Object)null) || Object.op_Equality((Object)this.pointer, (Object)null))), (Func <M0, bool>)(_ => ((Behaviour)this).get_enabled())), (Func <M0, bool>)(_ => this.info.isOn)), (Func <M0, M1>)(_ => this.info.imagePos))), (Action <M0>)(pos => { this.pointer.set_anchoredPosition(pos); Vector2 imageRate = this.info.imageRate; PickerRect.Control ctrlType = PickerRect.Control.Rect; switch (this.mode) { case PickerRect.Mode.Hue: HsvColor colorHsv1 = this.ColorHSV; colorHsv1.S = (float)imageRate.x; colorHsv1.V = (float)imageRate.y; this.SetColor(colorHsv1, ctrlType); break; case PickerRect.Mode.Saturation: HsvColor colorHsv2 = this.ColorHSV; colorHsv2.H = (float)(imageRate.x * 360.0); colorHsv2.V = (float)imageRate.y; this.SetColor(colorHsv2, ctrlType); break; case PickerRect.Mode.Value: HsvColor colorHsv3 = this.ColorHSV; colorHsv3.H = (float)(imageRate.x * 360.0); colorHsv3.S = (float)imageRate.y; this.SetColor(colorHsv3, ctrlType); break; case PickerRect.Mode.Red: Color colorRgb1 = this.ColorRGB; colorRgb1.b = imageRate.x; colorRgb1.g = imageRate.y; this.SetColor(colorRgb1, ctrlType); break; case PickerRect.Mode.Green: Color colorRgb2 = this.ColorRGB; colorRgb2.b = imageRate.x; colorRgb2.r = imageRate.y; this.SetColor(colorRgb2, ctrlType); break; case PickerRect.Mode.Blue: Color colorRgb3 = this.ColorRGB; colorRgb3.r = imageRate.x; colorRgb3.g = imageRate.y; this.SetColor(colorRgb3, ctrlType); break; } })); }
private void Start() { ObservableExtensions.Subscribe <bool>(UnityEventExtensions.AsObservable <bool>((UnityEvent <M0>) this.tglOrder.onValueChanged), (System.Action <M0>)(_isOn => { ((Behaviour)this.imgOrder).set_enabled(!_isOn); if (this.tglSortDay.get_isOn()) { this.SortDate(_isOn); } else { this.SortName(_isOn); } this.charaSelectScrollView.Init(this.lstFileInfo); this.charaSelectScrollView.SetNowSelectToggle(); Singleton <Resources> .Instance.SoundPack.Play(SoundPack.SystemSE.OK_S); })); ((Behaviour)this.imgOrder).set_enabled(!this.tglOrder.get_isOn()); this.objOrderSelect.SetActiveIfDifferent(false); // ISSUE: method pointer this.actionOrderSelect.listActionEnter.Add(new UnityAction((object)this, __methodptr(\u003CStart\u003Em__1))); // ISSUE: method pointer this.actionOrderSelect.listActionExit.Add(new UnityAction((object)this, __methodptr(\u003CStart\u003Em__2))); ObservableExtensions.Subscribe <Unit>((IObservable <M0>)UnityUIComponentExtensions.OnClickAsObservable(this.btnSortWindowOpen), (System.Action <M0>)(_ => { this.objSortWindow.SetActiveIfDifferent(!this.objSortWindow.get_activeSelf()); if (this.objSortWindow.get_activeSelf()) { Singleton <Resources> .Instance.SoundPack.Play(SoundPack.SystemSE.OK_S); } else { Singleton <Resources> .Instance.SoundPack.Play(SoundPack.SystemSE.Cancel); } })); ObservableExtensions.Subscribe <PointerEventData>((IObservable <M0>)ObservableTriggerExtensions.OnPointerEnterAsObservable((UIBehaviour)this.btnSortWindowOpen), (System.Action <M0>)(_ => Singleton <Resources> .Instance.SoundPack.Play(SoundPack.SystemSE.Select))); this.charaSelectScrollView.onSelect = (System.Action <GameCharaFileInfo>)(_data => { Singleton <Resources> .Instance.SoundPack.Play(SoundPack.SystemSE.OK_S); if (this.onChangeItemFunc != null) { this.onChangeItemFunc(_data); } if (this.onChangeItem != null) { this.onChangeItem(true); } this.SetParameter(_data); }); this.charaSelectScrollView.onDeSelect = (System.Action)(() => { if (this.onChangeItem != null) { this.onChangeItem(false); } this.objPlayerParameterWindow.SetActiveIfDifferent(false); this.objFemaleParameterWindow.SetActiveIfDifferent(false); }); this.objPlayerParameterWindow.SetActiveIfDifferent(false); this.txtPlayerCharaName.set_text("NoName"); this.riPlayerCard.set_texture((Texture)null); this.txtPlayerSex.set_text(string.Empty); this.objFemaleParameterWindow.SetActiveIfDifferent(false); this.txtFemaleCharaName.set_text("NoName"); this.riFemaleCard.set_texture((Texture)null); for (int index = 0; index < this.sccStateOfProgress.Length; ++index) { this.sccStateOfProgress[index].OnChangeValue(index != 0 ? 0 : 1); } for (int index = 0; index < this.tglFemaleStateSelects.Length; ++index) { // ISSUE: object of a compiler-generated type is created // ISSUE: variable of a compiler-generated type GameLoadCharaListCtrl.\u003CStart\u003Ec__AnonStorey0 startCAnonStorey0 = new GameLoadCharaListCtrl.\u003CStart\u003Ec__AnonStorey0(); // ISSUE: reference to a compiler-generated field startCAnonStorey0.\u0024this = this; // ISSUE: reference to a compiler-generated field startCAnonStorey0.sel = index; // ISSUE: reference to a compiler-generated method // ISSUE: reference to a compiler-generated method ObservableExtensions.Subscribe <bool>(Observable.Where <bool>(UnityEventExtensions.AsObservable <bool>((UnityEvent <M0>) this.tglFemaleStateSelects[index].onValueChanged), (Func <M0, bool>) new Func <bool, bool>(startCAnonStorey0.\u003C\u003Em__0)), (System.Action <M0>) new System.Action <bool>(startCAnonStorey0.\u003C\u003Em__1)); } for (int index = 0; index < this.actionStateSelects.Length; ++index) { // ISSUE: object of a compiler-generated type is created // ISSUE: variable of a compiler-generated type GameLoadCharaListCtrl.\u003CStart\u003Ec__AnonStorey1 startCAnonStorey1 = new GameLoadCharaListCtrl.\u003CStart\u003Ec__AnonStorey1(); // ISSUE: reference to a compiler-generated field startCAnonStorey1.\u0024this = this; // ISSUE: reference to a compiler-generated field startCAnonStorey1.sel = index; // ISSUE: method pointer this.actionStateSelects[index].listActionEnter.Add(new UnityAction((object)startCAnonStorey1, __methodptr(\u003C\u003Em__0))); // ISSUE: method pointer this.actionStateSelects[index].listActionExit.Add(new UnityAction((object)startCAnonStorey1, __methodptr(\u003C\u003Em__1))); } for (int index = 0; index < this.objFemaleStateSelectSels.Length; ++index) { this.objFemaleStateSelectSels[index].SetActiveIfDifferent(false); } this.txtLifeStyle.set_text(string.Empty); this.txtGirlPower.set_text("0"); this.txtTrust.set_text("0"); this.txtHumanNature.set_text("0"); this.txtInstinct.set_text("0"); this.txtHentai.set_text("0"); this.txtVigilance.set_text("0"); this.txtSocial.set_text("0"); this.txtDarkness.set_text("0"); for (int index = 0; index < this.txtNormalSkillSlots.Length; ++index) { this.txtNormalSkillSlots[index].set_text("--------------------"); } for (int index = 0; index < this.txtHSkillSlots.Length; ++index) { this.txtHSkillSlots[index].set_text("--------------------"); } this.objSortWindow.SetActiveIfDifferent(false); ObservableExtensions.Subscribe <Unit>((IObservable <M0>)UnityUIComponentExtensions.OnClickAsObservable(this.btnSortWindowClose), (System.Action <M0>)(_ => { Singleton <Resources> .Instance.SoundPack.Play(SoundPack.SystemSE.Cancel); this.objSortWindow.SetActiveIfDifferent(false); })); ObservableExtensions.Subscribe <PointerEventData>((IObservable <M0>)ObservableTriggerExtensions.OnPointerEnterAsObservable((UIBehaviour)this.btnSortWindowClose), (System.Action <M0>)(_ => Singleton <Resources> .Instance.SoundPack.Play(SoundPack.SystemSE.Select))); // ISSUE: method pointer this.actionSortDay.listActionEnter.Add(new UnityAction((object)this, __methodptr(\u003CStart\u003Em__9))); // ISSUE: method pointer this.actionSortDay.listActionExit.Add(new UnityAction((object)this, __methodptr(\u003CStart\u003Em__A))); // ISSUE: method pointer this.actionSortName.listActionEnter.Add(new UnityAction((object)this, __methodptr(\u003CStart\u003Em__B))); // ISSUE: method pointer this.actionSortName.listActionExit.Add(new UnityAction((object)this, __methodptr(\u003CStart\u003Em__C))); this.objSortDaySelect.SetActiveIfDifferent(false); this.objSortNameSelect.SetActiveIfDifferent(false); if (Object.op_Implicit((Object)this.tglSortDay)) { ObservableExtensions.Subscribe <bool>(Observable.Where <bool>(UnityEventExtensions.AsObservable <bool>((UnityEvent <M0>) this.tglSortDay.onValueChanged), (Func <M0, bool>)(_ => this.sortSelectNum != 0)), (System.Action <M0>)(_isOn => { if (!_isOn) { return; } this.sortSelectNum = 0; Singleton <Resources> .Instance.SoundPack.Play(SoundPack.SystemSE.OK_S); this.SortDate(this.tglOrder.get_isOn()); this.charaSelectScrollView.Init(this.lstFileInfo); this.charaSelectScrollView.SetNowSelectToggle(); })); } if (Object.op_Implicit((Object)this.tglSortName)) { ObservableExtensions.Subscribe <bool>(Observable.Where <bool>(UnityEventExtensions.AsObservable <bool>((UnityEvent <M0>) this.tglSortName.onValueChanged), (Func <M0, bool>)(_ => this.sortSelectNum != 1)), (System.Action <M0>)(_isOn => { if (!_isOn) { return; } this.sortSelectNum = 1; Singleton <Resources> .Instance.SoundPack.Play(SoundPack.SystemSE.OK_S); this.SortName(this.tglOrder.get_isOn()); this.charaSelectScrollView.Init(this.lstFileInfo); this.charaSelectScrollView.SetNowSelectToggle(); })); } this.LoadSkillList(); this.LoadHSkillList(); }
private void Start() { this.customBase.actUpdateCvsFutanari += new Action(this.UpdateCustomUI); ObservableExtensions.Subscribe <bool>(UnityEventExtensions.AsObservable <bool>((UnityEvent <M0>) this.tglFutanari.onValueChanged), (Action <M0>)(isOn => this.parameter.futanari = isOn)); }
protected override void OnBeforeStart() { ObservableExtensions.Subscribe <bool>(UnityEventExtensions.AsObservable <bool>((UnityEvent <M0>) this._toggleOrder.onValueChanged), (Action <M0>)(isOn => { ((Behaviour)this._imageOrder).set_enabled(!isOn); if (this._toggleSortDay.get_isOn()) { this.SortDate(isOn); } else { this.SortFileName(isOn); } this._scrollData.Init(this._listFileInfo); this._scrollData.SetNowSelectToggle(); Singleton <Resources> .Instance.SoundPack.Play(SoundPack.SystemSE.OK_S); })); ((Behaviour)this._imageOrder).set_enabled(!this._toggleOrder.get_isOn()); this._objOrderSelect.SetActiveIfDifferent(false); // ISSUE: method pointer this._actionOrderSelect.listActionEnter.Add(new UnityAction((object)this, __methodptr(\u003COnBeforeStart\u003Em__2))); // ISSUE: method pointer this._actionOrderSelect.listActionExit.Add(new UnityAction((object)this, __methodptr(\u003COnBeforeStart\u003Em__3))); ObservableExtensions.Subscribe <Unit>((IObservable <M0>)UnityUIComponentExtensions.OnClickAsObservable(this._buttonSortWindowOpen), (Action <M0>)(_ => { ((ReactiveProperty <bool>) this._isActiveSortWindow).set_Value(true); Singleton <Resources> .Instance.SoundPack.Play(SoundPack.SystemSE.OK_S); })); ObservableExtensions.Subscribe <PointerEventData>((IObservable <M0>)ObservableTriggerExtensions.OnPointerEnterAsObservable((UIBehaviour)this._buttonSortWindowOpen), (Action <M0>)(_ => Singleton <Resources> .Instance.SoundPack.Play(SoundPack.SystemSE.Select))); this._scrollData.OnSelect = (Action <GameCoordinateFileInfo>)(data => { Singleton <Resources> .Instance.SoundPack.Play(SoundPack.SystemSE.OK_S); CoordinateListUI.ChangeItemFunc onChangeItemFunc = this.OnChangeItemFunc; if (onChangeItemFunc != null) { onChangeItemFunc(data); } Action <bool> onChangeItem = this.OnChangeItem; if (onChangeItem == null) { return; } onChangeItem(true); }); this._scrollData.OnDeselect = (Action)(() => { Action <bool> onChangeItem = this.OnChangeItem; if (onChangeItem == null) { return; } onChangeItem(false); }); this._objSortWindow.SetActiveIfDifferent(false); ObservableExtensions.Subscribe <Unit>((IObservable <M0>)UnityUIComponentExtensions.OnClickAsObservable(this._buttonSortWindowClose), (Action <M0>)(_ => { ((ReactiveProperty <bool>) this._isActiveSortWindow).set_Value(false); Singleton <Resources> .Instance.SoundPack.Play(SoundPack.SystemSE.Cancel); })); ObservableExtensions.Subscribe <PointerEventData>((IObservable <M0>)ObservableTriggerExtensions.OnPointerEnterAsObservable((UIBehaviour)this._buttonSortWindowClose), (Action <M0>)(_ => Singleton <Resources> .Instance.SoundPack.Play(SoundPack.SystemSE.Select))); // ISSUE: method pointer this._actionSortDay.listActionEnter.Add(new UnityAction((object)this, __methodptr(\u003COnBeforeStart\u003Em__A))); // ISSUE: method pointer this._actionSortDay.listActionExit.Add(new UnityAction((object)this, __methodptr(\u003COnBeforeStart\u003Em__B))); // ISSUE: method pointer this._actionSortName.listActionEnter.Add(new UnityAction((object)this, __methodptr(\u003COnBeforeStart\u003Em__C))); // ISSUE: method pointer this._actionSortName.listActionExit.Add(new UnityAction((object)this, __methodptr(\u003COnBeforeStart\u003Em__D))); this._objSortDaySelect.SetActiveIfDifferent(false); this._objSortNameSelect.SetActiveIfDifferent(false); if (Object.op_Implicit((Object)this._toggleSortDay)) { ObservableExtensions.Subscribe <bool>(Observable.Where <bool>(UnityEventExtensions.AsObservable <bool>((UnityEvent <M0>) this._toggleSortDay.onValueChanged), (Func <M0, bool>)(_ => this._sortSelectNum != 0)), (Action <M0>)(isOn => { if (!isOn) { return; } this._sortSelectNum = 0; Singleton <Resources> .Instance.SoundPack.Play(SoundPack.SystemSE.OK_S); this.SortDate(this._toggleOrder.get_isOn()); this._scrollData.Init(this._listFileInfo); this._scrollData.SetNowSelectToggle(); })); } if (Object.op_Implicit((Object)this._toggleSortName)) { ObservableExtensions.Subscribe <bool>(Observable.Where <bool>(UnityEventExtensions.AsObservable <bool>((UnityEvent <M0>) this._toggleSortName.onValueChanged), (Func <M0, bool>)(_ => this._sortSelectNum != 1)), (Action <M0>)(isOn => { if (!isOn) { return; } this._sortSelectNum = 1; Singleton <Resources> .Instance.SoundPack.Play(SoundPack.SystemSE.OK_S); this.SortFileName(this._toggleOrder.get_isOn()); this._scrollData.Init(this._listFileInfo); this._scrollData.SetNowSelectToggle(); })); } ObservableExtensions.Subscribe <bool>((IObservable <M0>) this.OnActiveSortWindowChangedAsObservable(), (Action <M0>)(active => this.SetActiveSortWindow(active))); }
protected override void Start() { base.Start(); ObservableExtensions.Subscribe <float>(UnityEventExtensions.AsObservable <float>((UnityEvent <M0>) this.sliderR.get_onValueChanged()), (Action <M0>)(value => { if (this.isHSV) { this.inputR.set_text(this.ConvertTextFromValue(0, 360, value)); } else { this.inputR.set_text(this.ConvertTextFromValue(0, (int)byte.MaxValue, value)); } })); // ISSUE: method pointer ((UnityEvent <string>) this.inputR.get_onEndEdit()).AddListener(new UnityAction <string>((object)this, __methodptr(\u003CStart\u003Em__1))); ObservableExtensions.Subscribe <float>(UnityEventExtensions.AsObservable <float>((UnityEvent <M0>) this.sliderG.get_onValueChanged()), (Action <M0>)(value => { if (this.isHSV) { this.inputG.set_text(this.ConvertTextFromValue(0, 100, value)); } else { this.inputG.set_text(this.ConvertTextFromValue(0, (int)byte.MaxValue, value)); } })); // ISSUE: method pointer ((UnityEvent <string>) this.inputG.get_onEndEdit()).AddListener(new UnityAction <string>((object)this, __methodptr(\u003CStart\u003Em__3))); ObservableExtensions.Subscribe <float>(UnityEventExtensions.AsObservable <float>((UnityEvent <M0>) this.sliderB.get_onValueChanged()), (Action <M0>)(value => { if (this.isHSV) { this.inputB.set_text(this.ConvertTextFromValue(0, 100, value)); } else { this.inputB.set_text(this.ConvertTextFromValue(0, (int)byte.MaxValue, value)); } })); // ISSUE: method pointer ((UnityEvent <string>) this.inputB.get_onEndEdit()).AddListener(new UnityAction <string>((object)this, __methodptr(\u003CStart\u003Em__5))); ObservableExtensions.Subscribe <float>(UnityEventExtensions.AsObservable <float>((UnityEvent <M0>) this.sliderA.get_onValueChanged()), (Action <M0>)(value => { if (this.isHSV) { this.inputA.set_text(this.ConvertTextFromValue(0, 100, value)); } else { this.inputA.set_text(this.ConvertTextFromValue(0, 100, value)); } })); // ISSUE: method pointer ((UnityEvent <string>) this.inputA.get_onEndEdit()).AddListener(new UnityAction <string>((object)this, __methodptr(\u003CStart\u003Em__7))); ObservableExtensions.Subscribe <bool>(Observable.TakeUntilDestroy <bool>((IObservable <M0>) this._isHSV, (UnityEngine.Component) this), (Action <M0>)(isOn => { float[] numArray1 = new float[3] { this.sliderR.get_value(), this.sliderG.get_value(), this.sliderB.get_value() }; int num1 = 0; int num2; if (isOn) { ((TMP_Text)this.textR).set_text("色合い"); ((TMP_Text)this.textG).set_text("鮮やかさ"); ((TMP_Text)this.textB).set_text("明るさ"); TMP_InputField inputR = this.inputR; float[] numArray2 = numArray1; int index1 = num1; int num3 = index1 + 1; string str1 = this.ConvertTextFromValue(0, 360, numArray2[index1]); inputR.set_text(str1); TMP_InputField inputG = this.inputG; float[] numArray3 = numArray1; int index2 = num3; int num4 = index2 + 1; string str2 = this.ConvertTextFromValue(0, 100, numArray3[index2]); inputG.set_text(str2); TMP_InputField inputB = this.inputB; float[] numArray4 = numArray1; int index3 = num4; num2 = index3 + 1; string str3 = this.ConvertTextFromValue(0, 100, numArray4[index3]); inputB.set_text(str3); } else { ((TMP_Text)this.textR).set_text("赤"); ((TMP_Text)this.textG).set_text("緑"); ((TMP_Text)this.textB).set_text("青"); TMP_InputField inputR = this.inputR; float[] numArray2 = numArray1; int index1 = num1; int num3 = index1 + 1; string str1 = this.ConvertTextFromValue(0, (int)byte.MaxValue, numArray2[index1]); inputR.set_text(str1); TMP_InputField inputG = this.inputG; float[] numArray3 = numArray1; int index2 = num3; int num4 = index2 + 1; string str2 = this.ConvertTextFromValue(0, (int)byte.MaxValue, numArray3[index2]); inputG.set_text(str2); TMP_InputField inputB = this.inputB; float[] numArray4 = numArray1; int index3 = num4; num2 = index3 + 1; string str3 = this.ConvertTextFromValue(0, (int)byte.MaxValue, numArray4[index3]); inputB.set_text(str3); } })); }
protected override void Start() { base.Start(); this.customBase.actUpdateCvsStatus += new Action(((CvsBase)this).UpdateCustomUI); if (!((IEnumerable <UI_ToggleEx>) this.tglWish).Any <UI_ToggleEx>()) { return; } // ISSUE: object of a compiler-generated type is created ((IEnumerable <UI_ToggleEx>) this.tglWish).Select <UI_ToggleEx, \u003C\u003E__AnonType15 <UI_ToggleEx, int> >((Func <UI_ToggleEx, int, \u003C\u003E__AnonType15 <UI_ToggleEx, int> >)((val, idx) => new \u003C\u003E__AnonType15 <UI_ToggleEx, int>(val, idx))).Where <\u003C\u003E__AnonType15 <UI_ToggleEx, int> >((Func <\u003C\u003E__AnonType15 <UI_ToggleEx, int>, bool>)(tgl => Object.op_Inequality((Object)tgl.val, (Object)null))).ToList <\u003C\u003E__AnonType15 <UI_ToggleEx, int> >().ForEach((Action <\u003C\u003E__AnonType15 <UI_ToggleEx, int> >)(tgl => ObservableExtensions.Subscribe <bool>(UnityEventExtensions.AsObservable <bool>((UnityEvent <M0>)tgl.val.onValueChanged), (Action <M0>)(isOn => { if (isOn) { this.parameter.hsWish.Add(tgl.idx); } else { this.parameter.hsWish.Remove(tgl.idx); } this.ChangeRestrictWishSelect(); })))); }
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 UISetting() { this.Release(); if (this._noneData == null) { this._noneData = this.GetElement(); this._noneData.text.set_text(this._noneData.fileName = this._noneStr); this._noneData.filePath = string.Empty; } ((Component)this._playButton).SetActiveSelf(true); ((Component)this._pauseButton).SetActiveSelf(false); this._filePathList.Clear(); if (!((IReadOnlyList <string>) this._extensionList).IsNullOrEmpty <string>()) { foreach (string extension in this._extensionList) { if (!extension.IsNullOrEmpty()) { string[] files = System.IO.Directory.GetFiles(SoundPlayer.Directory.AudioFile, string.Format("*.{0}", (object)extension)); if (!((IReadOnlyList <string>)files).IsNullOrEmpty <string>()) { this._filePathList.AddRange((IEnumerable <string>)files); } } } } if (!((IReadOnlyList <string>) this._filePathList).IsNullOrEmpty <string>()) { foreach (string filePath in this._filePathList) { if (!filePath.IsNullOrEmpty()) { JukeBoxAudioListUI.AudioData element = this.GetElement(); element.filePath = filePath; element.fileName = Path.GetFileName(filePath); element.text.set_text(Path.GetFileNameWithoutExtension(filePath)); element.dateTime = File.GetLastWriteTime(filePath); this._elementList.Add(element); } } } this._elementList.Insert(0, this._noneData); this.ListSort(); foreach (JukeBoxAudioListUI.AudioData element in this._elementList) { // ISSUE: object of a compiler-generated type is created // ISSUE: variable of a compiler-generated type JukeBoxAudioListUI.\u003CUISetting\u003Ec__AnonStorey5 settingCAnonStorey5 = new JukeBoxAudioListUI.\u003CUISetting\u003Ec__AnonStorey5(); // ISSUE: reference to a compiler-generated field settingCAnonStorey5.elm = element; // ISSUE: reference to a compiler-generated field settingCAnonStorey5.\u0024this = this; // ISSUE: reference to a compiler-generated field ((Component)settingCAnonStorey5.elm.button).SetActiveSelf(true); // ISSUE: reference to a compiler-generated field // ISSUE: reference to a compiler-generated method settingCAnonStorey5.elm.ClickAction = new Action <JukeBoxAudioListUI.AudioData>(settingCAnonStorey5.\u003C\u003Em__0); // ISSUE: reference to a compiler-generated field // ISSUE: method pointer ((UnityEvent)settingCAnonStorey5.elm.button.get_onClick()).AddListener(new UnityAction((object)settingCAnonStorey5, __methodptr(\u003C\u003Em__1))); // ISSUE: reference to a compiler-generated field settingCAnonStorey5.elm.doubleClickDisposable?.Dispose(); // ISSUE: reference to a compiler-generated field // ISSUE: reference to a compiler-generated field // ISSUE: reference to a compiler-generated method // ISSUE: reference to a compiler-generated field settingCAnonStorey5.elm.doubleClickDisposable = (IDisposable)DisposableExtensions.AddTo <IDisposable>((M0)ObservableExtensions.Subscribe <IList <double> >((IObservable <M0>)UnityEventExtensions.AsObservable((UnityEvent)settingCAnonStorey5.elm.button.get_onClick()).DoubleInterval <Unit>(250f, false), (Action <M0>) new Action <IList <double> >(settingCAnonStorey5.\u003C\u003Em__2)), (Component)settingCAnonStorey5.elm.button); } }