コード例 #1
0
        public override void Init()
        {
            GameConfigSystem data = Manager.Config.GameData;

            this.LinkToggleArray(this.readSkipToggles, (Action <int>)(i => data.ReadSkip           = i == 0));
            this.LinkToggleArray(this.nextVoiceStopToggles, (Action <int>)(i => data.NextVoiceStop = i == 0));
            this.LinkToggleArray(this.choiceSkipToggles, (Action <int>)(i => data.ChoicesSkip      = i == 0));
            this.LinkToggleArray(this.choiceAutoToggles, (Action <int>)(i => data.ChoicesAuto      = i == 0));
            this.LinkToggleArray(this.optionToggles, (Action <int>)(i => data.TextWindowOption     = i == 0));
            this.LinkToggleArray(this.guidToggles, (Action <int>)(i => data.ActionGuide            = i == 0));
            this.LinkToggleArray(this.helpToggles, (Action <int>)(i => data.StoryHelp        = i == 0));
            this.LinkToggleArray(this.minimapToggles, (Action <int>)(i => data.MiniMap       = i == 0));
            this.LinkToggleArray(this.pointerToggles, (Action <int>)(i => data.CenterPointer = i == 0));
            this.LinkToggleArray(this.lockToggles, (Action <int>)(i => data.ParameterLock    = i == 0));
            this.LinkSlider(this.fontSpeedSlider, (Action <float>)(value => data.FontSpeed   = (int)value));
            ObservableExtensions.Subscribe <int>((IObservable <M0>)Observable.Select <float, int>((IObservable <M0>)UnityUIComponentExtensions.OnValueChangedAsObservable(this.fontSpeedSlider), (Func <M0, M1>)(value => (int)value)), (Action <M0>)(value =>
            {
                foreach (TypefaceAnimatorEx typefaceAnimatorEx in this.ta)
                {
                    typefaceAnimatorEx.isNoWait = value == 100;
                    if (!typefaceAnimatorEx.isNoWait)
                    {
                        typefaceAnimatorEx.timeMode = TypefaceAnimatorEx.TimeMode.Speed;
                        typefaceAnimatorEx.speed    = (float)value;
                    }
                }
            }));
            this.LinkSlider(this.autoWaitTimeSlider, (Action <float>)(value => data.AutoWaitTime = value));
            ObservableExtensions.Subscribe <float>((IObservable <M0>)UnityUIComponentExtensions.OnValueChangedAsObservable(this.autoWaitTimeSlider), (Action <M0>)(value =>
            {
                if (this.cancel != null)
                {
                    this.cancel.Dispose();
                }
                foreach (TypefaceAnimatorEx typefaceAnimatorEx in this.ta)
                {
                    typefaceAnimatorEx.Play();
                }
            }));
            ObservableExtensions.Subscribe <bool>(Observable.Where <bool>(Observable.DistinctUntilChanged <bool>((IObservable <M0>)Observable.Select <Unit, bool>((IObservable <M0>)ObservableTriggerExtensions.UpdateAsObservable((Component)this), (Func <M0, M1>)(_ => this.ta[0].isPlaying))), (Func <M0, bool>)(isPlaying => !isPlaying)), (Action <M0>)(_ =>
            {
                if (this.cancel != null)
                {
                    this.cancel.Dispose();
                }
                float autoWaitTimer = 0.0f;
                this.cancel         = ObservableExtensions.Subscribe <Unit>((IObservable <M0>)Observable.FromCoroutine((Func <CancellationToken, IEnumerator>)(__ => (IEnumerator) new WaitWhile((Func <bool>)(() =>
                {
                    float autoWaitTime = data.AutoWaitTime;
                    autoWaitTimer      = Mathf.Min(autoWaitTimer + Time.get_unscaledDeltaTime(), autoWaitTime);
                    return((double)autoWaitTimer < (double)autoWaitTime);
                }))), false), (Action <M0>)(__ =>
                {
                    foreach (TypefaceAnimatorEx typefaceAnimatorEx in this.ta)
                    {
                        typefaceAnimatorEx.Play();
                    }
                }));
            }));
        }
コード例 #2
0
 protected override void OnBeforeStart()
 {
     base.OnBeforeStart();
     ObservableExtensions.Subscribe <bool>(Observable.TakeUntilDestroy <bool>((IObservable <M0>) this.OnActiveChangedAsObservable(), (Component)this), (Action <M0>)(x => this.SetActiveControl(x)));
     ObservableExtensions.Subscribe <Unit>(Observable.Where <Unit>(Observable.Where <Unit>((IObservable <M0>)UnityUIComponentExtensions.OnClickAsObservable(this._closeButton), (Func <M0, bool>)(_ => this.InputEnabled)), (Func <M0, bool>)(_ => this.IsActiveControl)), (Action <M0>)(_ => this.DoClose()));
     ObservableExtensions.Subscribe <Unit>(Observable.Where <Unit>((IObservable <M0>)UnityUIComponentExtensions.OnClickAsObservable(this._sortButton), (Func <M0, bool>)(_ => this.InputEnabled)), (Action <M0>)(_ => this._sortUI.IsActiveControl = !this._sortUI.IsActiveControl));
     ObservableExtensions.Subscribe <Unit>(Observable.Where <Unit>((IObservable <M0>)UnityUIComponentExtensions.OnClickAsObservable(this._setButton), (Func <M0, bool>)(_ => this.InputEnabled)), (Action <M0>)(_ => this.DoSetAudio()));
     ObservableExtensions.Subscribe <Unit>(Observable.Where <Unit>((IObservable <M0>)UnityUIComponentExtensions.OnClickAsObservable(this._rightButton), (Func <M0, bool>)(_ => this.InputEnabled)), (Action <M0>)(_ => this.DoMove(1)));
     ObservableExtensions.Subscribe <Unit>(Observable.Where <Unit>((IObservable <M0>)UnityUIComponentExtensions.OnClickAsObservable(this._leftButton), (Func <M0, bool>)(_ => this.InputEnabled)), (Action <M0>)(_ => this.DoMove(-1)));
     ObservableExtensions.Subscribe <Unit>(Observable.Where <Unit>((IObservable <M0>)UnityUIComponentExtensions.OnClickAsObservable(this._playButton), (Func <M0, bool>)(_ => this.InputEnabled)), (Action <M0>)(_ => this.DoPlay()));
     ObservableExtensions.Subscribe <Unit>(Observable.Where <Unit>((IObservable <M0>)UnityUIComponentExtensions.OnClickAsObservable(this._pauseButton), (Func <M0, bool>)(_ => this.InputEnabled)), (Action <M0>)(_ => this.AudioStop()));
     ObservableExtensions.Subscribe <bool>(Observable.Where <bool>((IObservable <M0>)UnityUIComponentExtensions.OnValueChangedAsObservable(this._sortToggle), (Func <M0, bool>)(_ => this.InputEnabled)), (Action <M0>)(_ => this.ListSort()));
     if (Object.op_Inequality((Object)((Selectable)this._sortToggle).get_targetGraphic(), (Object)null))
     {
         ObservableExtensions.Subscribe <bool>((IObservable <M0>)UnityUIComponentExtensions.OnValueChangedAsObservable(this._sortToggle), (Action <M0>)(isOn => ((Behaviour)((Selectable)this._sortToggle).get_targetGraphic()).set_enabled(!isOn)));
     }
     this._sortUI.ToggleIndexChanged = (Action <int>)(x => this.ListSort());
     if (!Object.op_Inequality((Object)this._sortSelectedImage, (Object)null))
     {
         return;
     }
     ((Behaviour)this._sortSelectedImage).set_enabled(false);
     ObservableExtensions.Subscribe <PointerEventData>((IObservable <M0>)ObservableTriggerExtensions.OnPointerEnterAsObservable((UIBehaviour)this._sortToggle), (Action <M0>)(_ => ((Behaviour)this._sortSelectedImage).set_enabled(true)));
     ObservableExtensions.Subscribe <PointerEventData>((IObservable <M0>)ObservableTriggerExtensions.OnPointerExitAsObservable((UIBehaviour)this._sortToggle), (Action <M0>)(_ => ((Behaviour)this._sortSelectedImage).set_enabled(false)));
 }
コード例 #3
0
 protected virtual void Start()
 {
     base.Start();
     ObservableExtensions.Subscribe <bool>((IObservable <M0>)UnityUIComponentExtensions.OnValueChangedAsObservable((Toggle)this), (Action <M0>)(isOn =>
     {
         if (this.text == null)
         {
             return;
         }
         foreach (Text text in this.text)
         {
             Color color;
             if (isOn)
             {
                 color = this.selectedColor;
             }
             else
             {
                 ColorBlock colors = ((Selectable)this).get_colors();
                 color             = ((ColorBlock) ref colors).get_normalColor();
             }
             ((Graphic)text).set_color(color);
         }
     }));
     if (!Object.op_Inequality((Object)null, (Object)this.overImage))
     {
         return;
     }
     ((Behaviour)this.overImage).set_enabled(false);
 }
コード例 #4
0
 public void Start()
 {
     ObservableExtensions.Subscribe <Unit>((IObservable <M0>)UnityUIComponentExtensions.OnClickAsObservable(this.btnShowWinSort), (Action <M0>)(_ => this.winSort.objWinSort.SetActiveIfDifferent(!this.winSort.objWinSort.get_activeSelf())));
     ObservableExtensions.Subscribe <Unit>((IObservable <M0>)UnityUIComponentExtensions.OnClickAsObservable(this.winSort.btnCloseWinSort), (Action <M0>)(_ => this.winSort.objWinSort.SetActiveIfDifferent(false)));
     if (((IEnumerable <Toggle>) this.winSort.tglSort).Any <Toggle>())
     {
         // ISSUE: object of a compiler-generated type is created
         ((IEnumerable <Toggle>) this.winSort.tglSort).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>((IObservable <M0>)UnityUIComponentExtensions.OnValueChangedAsObservable(tgl.val), (Func <M0, bool>)(isOn => isOn)), (Action <M0>)(isOn => this.sortType = tgl.idx))));
     }
     ObservableExtensions.Subscribe <bool>((IObservable <M0>)UnityUIComponentExtensions.OnValueChangedAsObservable(this.tglSortOrder), (Action <M0>)(isOn => this.sortOrder = !isOn ? 1 : 0));
     ObservableExtensions.Subscribe <int>((IObservable <M0>) this._sortType, (Action <M0>)(_ => this.Sort()));
     ObservableExtensions.Subscribe <int>((IObservable <M0>) this._sortOrder, (Action <M0>)(_ => this.Sort()));
     if (this.button == null || this.button.Length != 3)
     {
         return;
     }
     if (Object.op_Implicit((Object)this.button[0]))
     {
         ObservableExtensions.Subscribe <Unit>((IObservable <M0>)UnityUIComponentExtensions.OnClickAsObservable(this.button[0]), (Action <M0>)(_ =>
         {
             if (this.onClick01 == null)
             {
                 return;
             }
             this.onClick01(this.cscClothes.selectInfo?.info);
         }));
         ObservableExtensions.Subscribe <Unit>((IObservable <M0>)ObservableTriggerExtensions.UpdateAsObservable((Component)this.button[0]), (Action <M0>)(_ => ((Selectable)this.button[0]).set_interactable((!this.btnDisableNotSelect01 ? 0 : (null == this.cscClothes.selectInfo ? 1 : 0)) == 0)));
     }
     if (Object.op_Implicit((Object)this.button[1]))
     {
         ObservableExtensions.Subscribe <Unit>((IObservable <M0>)UnityUIComponentExtensions.OnClickAsObservable(this.button[1]), (Action <M0>)(_ =>
         {
             if (this.onClick02 == null)
             {
                 return;
             }
             this.onClick02(this.cscClothes.selectInfo?.info);
         }));
         ObservableExtensions.Subscribe <Unit>((IObservable <M0>)ObservableTriggerExtensions.UpdateAsObservable((Component)this.button[1]), (Action <M0>)(_ => ((Selectable)this.button[1]).set_interactable((!this.btnDisableNotSelect02 ? 0 : (null == this.cscClothes.selectInfo ? 1 : 0)) == 0)));
     }
     if (!Object.op_Implicit((Object)this.button[2]))
     {
         return;
     }
     ObservableExtensions.Subscribe <Unit>((IObservable <M0>)UnityUIComponentExtensions.OnClickAsObservable(this.button[2]), (Action <M0>)(_ =>
     {
         if (this.onClick03 == null)
         {
             return;
         }
         this.onClick03(this.cscClothes.selectInfo?.info);
     }));
     ObservableExtensions.Subscribe <Unit>((IObservable <M0>)ObservableTriggerExtensions.UpdateAsObservable((Component)this.button[2]), (Action <M0>)(_ => ((Selectable)this.button[2]).set_interactable((!this.btnDisableNotSelect03 ? 0 : (null == this.cscClothes.selectInfo ? 1 : 0)) == 0)));
 }
コード例 #5
0
 public override void Init(Sprite[] _sprite)
 {
     base.Init(_sprite);
     for (int index = 0; index < this.buttons.Length; ++index)
     {
         // ISSUE: object of a compiler-generated type is created
         // ISSUE: method pointer
         ((UnityEvent)this.buttons[index].get_onClick()).AddListener(new UnityAction((object)new OptionCtrl.CharaFKColor.\u003CInit\u003Ec__AnonStorey0()
         {
             \u0024this = this,
             no         = index
         }, __methodptr(\u003C\u003Em__0)));
     }
     ObservableExtensions.Subscribe <bool>((IObservable <M0>)UnityUIComponentExtensions.OnValueChangedAsObservable(this.toggleLine), (Action <M0>)(_b => Studio.Studio.optionSystem.lineFK = _b));
 }
コード例 #6
0
        protected override void OnBeforeStart()
        {
            base.OnBeforeStart();
            ObservableExtensions.Subscribe <bool>((IObservable <M0>) this.OnActiveChangedAsObservable(), (Action <M0>)(x => this.SetActiveControl(x)));
            this._lerpStream = (IObservable <TimeInterval <float> >)Observable.TakeUntilDestroy <TimeInterval <float> >((IObservable <M0>)Observable.FrameTimeInterval <float>((IObservable <M0>)ObservableEasing.Linear(this._alphaAccelerationTime, true), true), (Component)this);
            if (this._closeButton != null)
            {
                // ISSUE: method pointer
                ((UnityEvent)this._closeButton.get_onClick()).AddListener(new UnityAction((object)this, __methodptr(\u003COnBeforeStart\u003Em__1)));
            }
            ActionIDDownCommand actionIdDownCommand = new ActionIDDownCommand()
            {
                ActionID = ActionID.Cancel
            };

            // ISSUE: method pointer
            actionIdDownCommand.TriggerEvent.AddListener(new UnityAction((object)this, __methodptr(\u003COnBeforeStart\u003Em__2)));
            this._actionCommands.Add(actionIdDownCommand);
            KeyCodeDownCommand keyCodeDownCommand = new KeyCodeDownCommand()
            {
                KeyCode = (KeyCode)324
            };

            // ISSUE: method pointer
            keyCodeDownCommand.TriggerEvent.AddListener(new UnityAction((object)this, __methodptr(\u003COnBeforeStart\u003Em__3)));
            this._keyCommands.Add(keyCodeDownCommand);
            if (this._escapeButton != null)
            {
                // ISSUE: method pointer
                ((UnityEvent)this._escapeButton.get_onClick()).AddListener(new UnityAction((object)this, __methodptr(\u003COnBeforeStart\u003Em__4)));
            }
            ObservableExtensions.Subscribe <bool>((IObservable <M0>)UnityUIComponentExtensions.OnValueChangedAsObservable(this._chaseToggle), (Action <M0>)(x => this.ChangeChaseActor(x)));
            if (this._nameChangeButton != null)
            {
                // ISSUE: method pointer
                ((UnityEvent)this._nameChangeButton.get_onClick()).AddListener(new UnityAction((object)this, __methodptr(\u003COnBeforeStart\u003Em__6)));
            }
            this._nameChangeUI.SubmitAction += (Action <string>)(str => this.NameChanged(str));
            ((MonoBehaviour)this).StartCoroutine(this.UISettingCoroutine());
        }
コード例 #7
0
 protected virtual void Start()
 {
     base.Start();
     ObservableExtensions.Subscribe <bool>((IObservable <M0>)UnityUIComponentExtensions.OnValueChangedAsObservable((Toggle)this), (Action <M0>)(isOn =>
     {
         if (Object.op_Inequality((Object)null, (Object)this.imgOn))
         {
             ((Component)this.imgOn).get_gameObject().SetActiveIfDifferent(isOn);
         }
         if (Object.op_Inequality((Object)null, (Object)this.imgOnOver))
         {
             ((Component)this.imgOnOver).get_gameObject().SetActiveIfDifferent(isOn);
         }
         if (Object.op_Inequality((Object)null, (Object)this.imgOff))
         {
             ((Component)this.imgOff).get_gameObject().SetActiveIfDifferent(!isOn);
         }
         if (!Object.op_Inequality((Object)null, (Object)this.imgOffOver))
         {
             return;
         }
         ((Component)this.imgOffOver).get_gameObject().SetActiveIfDifferent(!isOn);
     }));
 }
コード例 #8
0
 public void Init()
 {
     foreach (KeyValuePair <int, Manager.Housing.AreaSizeInfo> keyValuePair in Singleton <Manager.Housing> .Instance.dicAreaSizeInfo)
     {
         GameObject gameObject = (GameObject)Object.Instantiate <GameObject>((M0)this.tabOriginal, this.tabRoot);
         gameObject.SetActive(true);
         SizeTab component = (SizeTab)gameObject.GetComponent <SizeTab>();
         int     type      = keyValuePair.Value.no;
         component.Text = string.Format("{0}X{1}X{2}", (object)((Vector3Int) ref keyValuePair.Value.limitSize).get_x(), (object)((Vector3Int) ref keyValuePair.Value.limitSize).get_y(), (object)((Vector3Int) ref keyValuePair.Value.limitSize).get_z());
         ObservableExtensions.Subscribe <bool>(Observable.Where <bool>((IObservable <M0>)UnityUIComponentExtensions.OnValueChangedAsObservable(component.toggle), (Func <M0, bool>)(_b => _b)), (Action <M0>)(_ => this.SelectTab(type, false)));
         this.dicTabInfo[type] = new HousingLoadWindow.TabInfo()
         {
             gameObject = gameObject,
             sizeTab    = component
         };
     }
     for (int index = 0; index < this.buttonsThumbnail.Length; ++index)
     {
         int idx = index;
         ObservableExtensions.Subscribe <Unit>((IObservable <M0>)UnityUIComponentExtensions.OnClickAsObservable(this.buttonsThumbnail[index]), (Action <M0>)(_ =>
         {
             int num     = this.thumbnailLimit * this.page + idx;
             this.select = this.backSelect == num ? -1 : num;
             this.UpdateSelectImage();
             if (this.onSelect != null)
             {
                 this.onSelect(this.select);
             }
             this.backSelect = this.select;
         }));
     }
     this.dicTabInfo[0].IsOn = true;
     this.SelectTab(0, false);
 }
コード例 #9
0
 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;
     }));
 }
コード例 #10
0
        protected override void OnBeforeStart()
        {
            DisposableExtensions.AddTo <IDisposable>((M0)ObservableExtensions.Subscribe <bool>((IObservable <M0>) this.OnActiveChangedAsObservable(), (Action <M0>)(x => this.SetActiveControl(x))), (Component)this);
            DisposableExtensions.AddTo <IDisposable>((M0)ObservableExtensions.Subscribe <string>((IObservable <M0>)UnityUIComponentExtensions.OnValueChangedAsObservable(this._numInputField), (Action <M0>)(str => this.OnInputFieldValueChanged(str))), (Component)this);
            for (int index = 0; index < this._numChangeValues.Length; ++index)
            {
                Button element = this._numChangeButtons.GetElement <Button>(index);
                if (!Object.op_Equality((Object)element, (Object)null))
                {
                    int changeValue = this._numChangeValues[index];
                    DisposableExtensions.AddTo <IDisposable>((M0)ObservableExtensions.Subscribe <Unit>((IObservable <M0>)UnityUIComponentExtensions.OnClickAsObservable(element), (Action <M0>)(_ => this.OnNumChangeClick(changeValue))), (Component)this);
                    DisposableExtensions.AddTo <IDisposable>((M0)ObservableExtensions.Subscribe <Unit>((IObservable <M0>)UnityUIComponentExtensions.OnClickAsObservable(element), (Action <M0>)(_ => this._recyclingUI.PlaySE(SoundPack.SystemSE.OK_S))), (Component)this);
                }
            }
            if (!this._buttons.IsNullOrEmpty <Button>())
            {
                foreach (Button button in this._buttons)
                {
                    if (!Object.op_Equality((Object)button, (Object)null))
                    {
                        DisposableExtensions.AddTo <IDisposable>((M0)ObservableExtensions.Subscribe <Unit>((IObservable <M0>)UnityUIComponentExtensions.OnClickAsObservable(button), (Action <M0>)(_ => this._recyclingUI.PlaySE(SoundPack.SystemSE.OK_S))), (Component)this);
                    }
                }
            }
            DisposableExtensions.AddTo <IDisposable>((M0)ObservableExtensions.Subscribe <Unit>((IObservable <M0>) this.ClickDelete, (Action <M0>)(_ => this.OnClickDeleteButton())), (Component)this);
            DisposableExtensions.AddTo <IDisposable>((M0)ObservableExtensions.Subscribe <RecyclingInventoryFacadeViewer>(Observable.Where <RecyclingInventoryFacadeViewer>(Observable.Where <RecyclingInventoryFacadeViewer>((IObservable <M0>) this._recyclingUI.OnInventoryChanged, (Func <M0, bool>)(_ => this.ItemInfo.Item5 == 1)), (Func <M0, bool>)(_ => this.ItemInfo.Item2 != null)), (Action <M0>)(receiver => this.ItemInfo.Item2 = (__Null)receiver.ListController)), (Component)this);
            IObservable <Unit> observable1 = (IObservable <Unit>)Observable.Select <RecyclingInventoryFacadeViewer, Unit>((IObservable <M0>) this._recyclingUI.OnInventoryChanged, (Func <M0, M1>)(_ => Unit.get_Default()));
            IObservable <Unit> observable2 = (IObservable <Unit>)Observable.Select <StuffItem, Unit>(Observable.Where <StuffItem>(Observable.Where <StuffItem>(Observable.Where <StuffItem>(Observable.Where <StuffItem>(Observable.Where <StuffItem>((IObservable <M0>) this._recyclingUI.DecidedItemSlotUI.DeleteEvent, (Func <M0, bool>)(_ => this.ItemInfo.Item5 == 1)), (Func <M0, bool>)(_ => Object.op_Inequality((Object)this.ItemInfo.Item3, (Object)null))), (Func <M0, bool>)(item => item != null)), (Func <M0, bool>)(item => ((ItemNodeUI)this.ItemInfo.Item3).Item == item)), (Func <M0, bool>)(item => 0 < item.Count)), (Func <M0, M1>)(_ => Unit.get_Default()));
            IObservable <Unit> observable3 = (IObservable <Unit>)Observable.Select <StuffItem, Unit>(Observable.Where <StuffItem>(Observable.Where <StuffItem>((IObservable <M0>) this._recyclingUI.DecidedItemSlotUI.DeleteEvent, (Func <M0, bool>)(_ => this.ItemInfo.Item5 == 0)), (Func <M0, bool>)(_ => Object.op_Inequality((Object)this.ItemInfo.Item3, (Object)null))), (Func <M0, M1>)(_ => Unit.get_Default()));
            IObservable <Unit> observable4 = (IObservable <Unit>)Observable.DelayFrame <Unit>((IObservable <M0>)Observable.Select <PanelType, Unit>(Observable.Where <PanelType>((IObservable <M0>) this._recyclingUI.OnDoubleClicked, (Func <M0, bool>)(_ => Object.op_Inequality((Object)this.ItemInfo.Item3, (Object)null))), (Func <M0, M1>)(_ => Unit.get_Default())), 1, (FrameCountType)0);
            IObservable <Unit> observable5 = (IObservable <Unit>)Observable.Select <StuffItem, Unit>(Observable.Where <StuffItem>(Observable.Where <StuffItem>(Observable.Where <StuffItem>((IObservable <M0>) this._recyclingUI.CreateItemStockUI.OnAddCreateItem, (Func <M0, bool>)(item => item != null)), (Func <M0, bool>)(_ => this.ItemInfo.Item5 == 2)), (Func <M0, bool>)(_ => Object.op_Inequality((Object)this.ItemInfo.Item3, (Object)null))), (Func <M0, M1>)(_ => Unit.get_Default()));
            IObservable <Unit> observable6 = (IObservable <Unit>)Observable.DelayFrame <Unit>((IObservable <M0>) this._recyclingUI.CreateItemStockUI.OnClickDeleteSubmit, 1, (FrameCountType)0);

            DisposableExtensions.AddTo <IDisposable>((M0)ObservableExtensions.Subscribe <Unit>(Observable.Where <Unit>(Observable.Merge <Unit>((IObservable <M0>[]) new IObservable <Unit>[9]
            {
                (IObservable <Unit>)Observable.DelayFrame <Unit>((IObservable <M0>) this.ClickDecide, 1, (FrameCountType)0),
                (IObservable <Unit>)Observable.DelayFrame <Unit>((IObservable <M0>) this.ClickReturn, 1, (FrameCountType)0),
                (IObservable <Unit>)Observable.DelayFrame <Unit>((IObservable <M0>) this.ClickDelete, 1, (FrameCountType)0),
                observable1,
                observable3,
                observable2,
                observable4,
                observable5,
                observable6
            }), (Func <M0, bool>)(_ => Object.op_Inequality((Object)this.ItemInfo.Item3, (Object)null))), (Action <M0>)(_ => this.RefreshUI())), (Component)this);
            DisposableExtensions.AddTo <IDisposable>((M0)ObservableExtensions.Subscribe <StuffItem>(Observable.Where <StuffItem>(Observable.Where <StuffItem>(Observable.Where <StuffItem>(Observable.Where <StuffItem>(Observable.Where <StuffItem>(Observable.Where <StuffItem>(Observable.Where <StuffItem>((IObservable <M0>) this._recyclingUI.DecidedItemSlotUI.DeleteEvent, (Func <M0, bool>)(_ => ((Behaviour)this).get_isActiveAndEnabled())), (Func <M0, bool>)(_ => this.IsActiveControl)), (Func <M0, bool>)(_ => this.ItemInfo.Item5 == 1)), (Func <M0, bool>)(item => item != null)), (Func <M0, bool>)(_ => Object.op_Inequality((Object)this.ItemInfo.Item3, (Object)null))), (Func <M0, bool>)(item => ((ItemNodeUI)this.ItemInfo.Item3).Item == item)), (Func <M0, bool>)(item => item.Count <= 0)), (Action <M0>)(_ => this.DetachItem())), (Component)this);
        }
コード例 #11
0
        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;
                }
            }));
        }
コード例 #12
0
        public override void Init(UICtrl _uiCtrl, bool _tutorial)
        {
            base.Init(_uiCtrl, _tutorial);
            ObservableExtensions.Subscribe <Unit>((IObservable <M0>)UnityUIComponentExtensions.OnClickAsObservable((Button)this.buttonClose), (Action <M0>)(_ => this.Close()));
            foreach (KeyValuePair <int, Manager.Housing.AreaSizeInfo> keyValuePair in Singleton <Manager.Housing> .Instance.dicAreaSizeInfo)
            {
                GameObject gameObject = (GameObject)Object.Instantiate <GameObject>((M0)this.tabOriginal, this.tabRoot);
                gameObject.SetActive(true);
                SizeTab component = (SizeTab)gameObject.GetComponent <SizeTab>();
                int     type      = keyValuePair.Value.no;
                component.Text = string.Format("{0}X{1}X{2}", (object)((Vector3Int) ref keyValuePair.Value.limitSize).get_x(), (object)((Vector3Int) ref keyValuePair.Value.limitSize).get_y(), (object)((Vector3Int) ref keyValuePair.Value.limitSize).get_z());
                ObservableExtensions.Subscribe <bool>(Observable.Where <bool>((IObservable <M0>)UnityUIComponentExtensions.OnValueChangedAsObservable(component.toggle), (Func <M0, bool>)(_b => _b)), (Action <M0>)(_ => this.SelectTab(type, false)));
                this.dicTabInfo[type] = new SaveLoadUICtrl.TabInfo()
                {
                    gameObject = gameObject,
                    sizeTab    = component
                };
            }
            for (int index = 0; index < this.buttonsThumbnail.Length; ++index)
            {
                int idx = index;
                ObservableExtensions.Subscribe <Unit>((IObservable <M0>)UnityUIComponentExtensions.OnClickAsObservable(this.buttonsThumbnail[index]), (Action <M0>)(_ =>
                {
                    this.infoLoad.Setup(this.rawsThumbnail[idx].get_texture());
                    this.select = this.thumbnailLimit * this.page + idx;
                }));
            }
            ObservableExtensions.Subscribe <Unit>((IObservable <M0>)UnityUIComponentExtensions.OnClickAsObservable((Button)this.infoLoad.buttonClose), (Action <M0>)(_ => this.infoLoad.Visible = false));
            ObservableExtensions.Subscribe <Unit>((IObservable <M0>)UnityUIComponentExtensions.OnClickAsObservable((Button)this.infoLoad.buttonDelete), (Action <M0>)(_ =>
            {
                ConfirmScene.Sentence     = "データを消去しますか?";
                ConfirmScene.OnClickedYes = (Action)(() =>
                {
                    File.Delete(this.listPath[this.select]);
                    this.InitInfo(this.tab);
                    this.SetPage(this.page, true);
                    this.infoLoad.Visible = false;
                });
                ConfirmScene.OnClickedNo = (Action)(() => {});
                Singleton <Game> .Instance.LoadDialog();
            }));
            ObservableExtensions.Subscribe <Unit>((IObservable <M0>)UnityUIComponentExtensions.OnClickAsObservable((Button)this.infoLoad.buttonLoad), (Action <M0>)(_ =>
            {
                ConfirmScene.Sentence     = "データを読込みますか?\n" + "セットされたアイテムは削除されます。".Coloring("#DE4529FF").Size(24);
                ConfirmScene.OnClickedYes = (Action)(() =>
                {
                    Singleton <Selection> .Instance.SetSelectObjects((ObjectCtrl[])null);
                    this.UICtrl.ListUICtrl.ClearList();
                    Singleton <UndoRedoManager> .Instance.Clear();
                    this.Visible = false;
                    Singleton <CraftScene> .Instance.WorkingUICtrl.Visible = true;
                    Singleton <Manager.Housing> .Instance.LoadAsync(this.listPath[this.select], (Action <bool>)(_b =>
                    {
                        this.UICtrl.ListUICtrl.UpdateUI();
                        Singleton <CraftScene> .Instance.WorkingUICtrl.Visible = false;
                        this.Close();
                    }));
                });
                ConfirmScene.OnClickedNo = (Action)(() => {});
                Singleton <Game> .Instance.LoadDialog();
            }));
            ObservableExtensions.Subscribe <bool>((IObservable <M0>) this.visibleReactive, (Action <M0>)(_b =>
            {
                this.canvasGroup.Enable(_b, false);
                if (!_b)
                {
                    return;
                }
                this.buttonClose.ClearState();
                this.infoLoad.Visible = false;
            }));
            int housingId = Singleton <CraftScene> .Instance.HousingID;

            Manager.Housing.AreaInfo areaInfo = (Manager.Housing.AreaInfo)null;
            if (Singleton <Manager.Housing> .Instance.dicAreaInfo.TryGetValue(housingId, out areaInfo))
            {
                Manager.Housing.AreaSizeInfo areaSizeInfo = (Manager.Housing.AreaSizeInfo)null;
                if (Singleton <Manager.Housing> .Instance.dicAreaSizeInfo.TryGetValue(areaInfo.size, out areaSizeInfo))
                {
                    foreach (KeyValuePair <int, SaveLoadUICtrl.TabInfo> keyValuePair in this.dicTabInfo)
                    {
                        keyValuePair.Value.Interactable = areaSizeInfo.compatibility.Contains(keyValuePair.Key);
                    }
                }
            }
            this.Visible = false;
        }
コード例 #13
0
 public override void Init(UICtrl _uiCtrl, bool _tutorial)
 {
     base.Init(_uiCtrl, _tutorial);
     foreach (KeyValuePair <int, Manager.Housing.CategoryInfo> keyValuePair in Singleton <Manager.Housing> .Instance.dicCategoryInfo)
     {
         GameObject gameObject = (GameObject)Object.Instantiate <GameObject>((M0)this.objCategory, this.togglesRoot);
         gameObject.SetActive(true);
         TabUI tab = (TabUI)gameObject.GetComponent <TabUI>();
         tab.rawImage.set_texture((Texture)keyValuePair.Value.Thumbnail);
         Toggle toggleSelect = tab.toggleSelect;
         toggleSelect.set_isOn(false);
         int c = keyValuePair.Key;
         ObservableExtensions.Subscribe <bool>(Observable.Where <bool>((IObservable <M0>)UnityUIComponentExtensions.OnValueChangedAsObservable(toggleSelect), (Func <M0, bool>)(_b => _b)), (Action <M0>)(_ => this.Category = c));
         DisposableExtensions.AddTo <IDisposable>((M0)ObservableExtensions.Subscribe <PointerEventData>(Observable.TakeUntilDestroy <PointerEventData>((IObservable <M0>)ObservableTriggerExtensions.OnPointerEnterAsObservable((UIBehaviour)toggleSelect), (Component)tab.imageCursor), (Action <M0>)(_ => ((Behaviour)tab.imageCursor).set_enabled(true))), gameObject);
         DisposableExtensions.AddTo <IDisposable>((M0)ObservableExtensions.Subscribe <PointerEventData>(Observable.TakeUntilDestroy <PointerEventData>((IObservable <M0>)ObservableTriggerExtensions.OnPointerExitAsObservable((UIBehaviour)toggleSelect), (Component)tab.imageCursor), (Action <M0>)(_ => ((Behaviour)tab.imageCursor).set_enabled(false))), gameObject);
     }
     ObservableExtensions.Subscribe <Unit>((IObservable <M0>)UnityUIComponentExtensions.OnClickAsObservable((Button)this.buttonClose), (Action <M0>)(_ => this.Active = false));
     ObservableExtensions.Subscribe <Unit>((IObservable <M0>)UnityUIComponentExtensions.OnClickAsObservable(this.buttonAdd), (Action <M0>)(_ =>
     {
         AddUICtrl.FileInfo fileInfo = this.fileInfos.SafeGet <AddUICtrl.FileInfo>(this.Select);
         if (fileInfo != null)
         {
             Singleton <UndoRedoManager> .Instance.Do((ICommand) new AddItemCommand(fileInfo.no));
             Singleton <Resources> .Instance.SoundPack.Play(SoundPack.SystemSE.OK_L);
         }
         this.Active = false;
     }));
     ObservableExtensions.Subscribe <Unit>((IObservable <M0>)UnityUIComponentExtensions.OnClickAsObservable(this.buttonActivate), (Action <M0>)(_ =>
     {
         ConfirmScene.Sentence     = "作成しますか";
         ConfirmScene.OnClickedYes = (Action)(() =>
         {
             AddUICtrl.FileInfo fileInfo = this.fileInfos.SafeGet <AddUICtrl.FileInfo>(this.Select);
             if (fileInfo == null)
             {
                 return;
             }
             fileInfo.SetUnlock();
             this.Visible = true;
             ((ReactiveProperty <int>) this.selectReactive).SetValueAndForceNotify(this.Select);
             this.view.RefreshAllShownItem();
             Singleton <Resources> .Instance.SoundPack.Play(SoundPack.SystemSE.Craft);
         });
         ConfirmScene.OnClickedNo = (Action)(() => this.Visible = true);
         Singleton <Game> .Instance.LoadDialog();
         this.Visible = false;
     }));
     ObservableExtensions.Subscribe <bool>((IObservable <M0>) this.activeReactive, (Action <M0>)(_b =>
     {
         this.Visible = _b;
         if (!_b)
         {
             return;
         }
         this.isForceUpdate = true;
         ((ReactiveProperty <int>) this.selectReactive).SetValueAndForceNotify(-1);
         this.buttonClose.ClearState();
     }));
     ObservableExtensions.Subscribe <int>((IObservable <M0>) this.categoryReactive, (Action <M0>)(_i =>
     {
         this.CreateList(_i);
         Manager.Housing.CategoryInfo categoryInfo = (Manager.Housing.CategoryInfo)null;
         if (Singleton <Manager.Housing> .Instance.dicCategoryInfo.TryGetValue(_i, out categoryInfo))
         {
             this.textCategory.set_text(categoryInfo.name);
             this.imageCategory.set_texture((Texture)categoryInfo.Thumbnail);
         }
         else
         {
             Debug.LogErrorFormat("存在しないカテゴリー[{0}]", new object[1]
             {
                 (object)_i
             });
         }
     }));
     ObservableExtensions.Subscribe <int>((IObservable <M0>) this.selectReactive, (Action <M0>)(_i =>
     {
         AddUICtrl.FileInfo fileInfo = this.fileInfos.SafeGet <AddUICtrl.FileInfo>(_i);
         if (fileInfo != null)
         {
             if (fileInfo.Unlock)
             {
                 this.cgCraft.Enable(false, false);
                 bool flag            = !Singleton <Manager.Housing> .Instance.CheckLimitNum(fileInfo.no);
                 this.ButtonAddEnable = !flag;
                 ((Behaviour)this.textItemLimit).set_enabled(flag);
             }
             else
             {
                 this.cgCraft.Enable(true, false);
                 ((Selectable)this.buttonActivate).set_interactable(this.materialUI.UpdateUI(fileInfo.loadInfo));
                 this.ButtonAddEnable = false;
                 ((Behaviour)this.textItemLimit).set_enabled(false);
             }
             this.textName.set_text(fileInfo.loadInfo.name);
             this.textText.set_text(fileInfo.loadInfo.text);
             ((Behaviour)this.imagesInfo[0]).set_enabled(fileInfo.loadInfo.isAccess);
             ((Behaviour)this.imagesInfo[1]).set_enabled(fileInfo.loadInfo.isAction);
             ((Behaviour)this.imagesInfo[2]).set_enabled(fileInfo.loadInfo.isHPoint);
             this.cgInfo.Enable(true, false);
         }
         else
         {
             this.cgInfo.Enable(false, false);
             this.cgCraft.Enable(false, false);
             this.ButtonAddEnable = false;
             ((Behaviour)this.textItemLimit).set_enabled(false);
             if (!this.isForceUpdate)
             {
                 return;
             }
             this.view.RefreshAllShownItem();
             this.isForceUpdate = false;
         }
     }));
     ((ReactiveProperty <int>) this.categoryReactive).SetValueAndForceNotify(-1);
 }
コード例 #14
0
 public void Initialize(int _parts, int _idx, int titleNo)
 {
     this.parts = _parts;
     this.idx   = _idx;
     if (this.parts == -1 || this.idx == -1)
     {
         return;
     }
     ChaFileHair.PartsInfo.BundleInfo bi;
     if (this.hair.parts[this.parts].dictBundle.TryGetValue(this.idx, out bi))
     {
         this.ssMove[0].SetInputTextValue(CustomBase.ConvertTextFromRate(0, 100, (float)bi.moveRate.x));
         this.ssMove[1].SetInputTextValue(CustomBase.ConvertTextFromRate(0, 100, (float)bi.moveRate.y));
         this.ssMove[2].SetInputTextValue(CustomBase.ConvertTextFromRate(0, 100, (float)bi.moveRate.z));
         this.ssRot[0].SetInputTextValue(CustomBase.ConvertTextFromRate(0, 100, (float)bi.rotRate.x));
         this.ssRot[1].SetInputTextValue(CustomBase.ConvertTextFromRate(0, 100, (float)bi.rotRate.y));
         this.ssRot[2].SetInputTextValue(CustomBase.ConvertTextFromRate(0, 100, (float)bi.rotRate.z));
         Vector3 vDefPosRate;
         this.chaCtrl.GetDefaultHairCorrectPosRate(this.parts, this.idx, out vDefPosRate);
         Vector3 vDefRotRate;
         this.chaCtrl.GetDefaultHairCorrectRotRate(this.parts, this.idx, out vDefRotRate);
         this.ssMove[0].onChange = (Action <float>)(value =>
         {
             Vector3 vector3;
             ((Vector3) ref vector3).\u002Ector(value, (float)bi.moveRate.y, (float)bi.moveRate.z);
             if (this.ctrlTogether && !this.reset && !this.cvsH_Hair.allReset)
             {
                 foreach (KeyValuePair <int, ChaFileHair.PartsInfo.BundleInfo> keyValuePair in this.hair.parts[this.parts].dictBundle)
                 {
                     keyValuePair.Value.moveRate = vector3;
                 }
                 this.chaCtrl.ChangeSettingHairCorrectPosAll(this.parts);
                 this.cvsH_Hair.UpdateAllBundleUI(this.idx);
             }
             else
             {
                 bi.moveRate = vector3;
                 this.chaCtrl.ChangeSettingHairCorrectPos(this.parts, this.idx);
             }
         });
         this.ssMove[0].onSetDefaultValue = (Func <float>)(() =>
         {
             this.reset = true;
             return((float)vDefPosRate.x);
         });
         this.ssMove[0].onEndSetDefaultValue = (Action)(() => this.reset = false);
         this.ssMove[1].onChange             = (Action <float>)(value =>
         {
             Vector3 vector3;
             ((Vector3) ref vector3).\u002Ector((float)bi.moveRate.x, value, (float)bi.moveRate.z);
             if (this.ctrlTogether && !this.reset && !this.cvsH_Hair.allReset)
             {
                 foreach (KeyValuePair <int, ChaFileHair.PartsInfo.BundleInfo> keyValuePair in this.hair.parts[this.parts].dictBundle)
                 {
                     keyValuePair.Value.moveRate = vector3;
                 }
                 this.chaCtrl.ChangeSettingHairCorrectPosAll(this.parts);
                 this.cvsH_Hair.UpdateAllBundleUI(this.idx);
             }
             else
             {
                 bi.moveRate = vector3;
                 this.chaCtrl.ChangeSettingHairCorrectPos(this.parts, this.idx);
             }
         });
         this.ssMove[1].onSetDefaultValue = (Func <float>)(() =>
         {
             this.reset = true;
             return((float)vDefPosRate.y);
         });
         this.ssMove[1].onEndSetDefaultValue = (Action)(() => this.reset = false);
         this.ssMove[2].onChange             = (Action <float>)(value =>
         {
             Vector3 vector3;
             ((Vector3) ref vector3).\u002Ector((float)bi.moveRate.x, (float)bi.moveRate.y, value);
             if (this.ctrlTogether && !this.reset && !this.cvsH_Hair.allReset)
             {
                 foreach (KeyValuePair <int, ChaFileHair.PartsInfo.BundleInfo> keyValuePair in this.hair.parts[this.parts].dictBundle)
                 {
                     keyValuePair.Value.moveRate = vector3;
                 }
                 this.chaCtrl.ChangeSettingHairCorrectPosAll(this.parts);
                 this.cvsH_Hair.UpdateAllBundleUI(this.idx);
             }
             else
             {
                 bi.moveRate = vector3;
                 this.chaCtrl.ChangeSettingHairCorrectPos(this.parts, this.idx);
             }
         });
         this.ssMove[2].onSetDefaultValue = (Func <float>)(() =>
         {
             this.reset = true;
             return((float)vDefPosRate.z);
         });
         this.ssMove[2].onEndSetDefaultValue = (Action)(() => this.reset = false);
         this.ssRot[0].onChange = (Action <float>)(value =>
         {
             Vector3 vector3;
             ((Vector3) ref vector3).\u002Ector(value, (float)bi.rotRate.y, (float)bi.rotRate.z);
             if (this.ctrlTogether && !this.reset && !this.cvsH_Hair.allReset)
             {
                 foreach (KeyValuePair <int, ChaFileHair.PartsInfo.BundleInfo> keyValuePair in this.hair.parts[this.parts].dictBundle)
                 {
                     keyValuePair.Value.rotRate = vector3;
                 }
                 this.chaCtrl.ChangeSettingHairCorrectRotAll(this.parts);
                 this.cvsH_Hair.UpdateAllBundleUI(this.idx);
             }
             else
             {
                 bi.rotRate = vector3;
                 this.chaCtrl.ChangeSettingHairCorrectRot(this.parts, this.idx);
             }
         });
         this.ssRot[0].onSetDefaultValue = (Func <float>)(() =>
         {
             this.reset = true;
             return((float)vDefRotRate.x);
         });
         this.ssRot[0].onEndSetDefaultValue = (Action)(() => this.reset = false);
         this.ssRot[1].onChange             = (Action <float>)(value =>
         {
             Vector3 vector3;
             ((Vector3) ref vector3).\u002Ector((float)bi.rotRate.x, value, (float)bi.rotRate.z);
             if (this.ctrlTogether && !this.reset && !this.cvsH_Hair.allReset)
             {
                 foreach (KeyValuePair <int, ChaFileHair.PartsInfo.BundleInfo> keyValuePair in this.hair.parts[this.parts].dictBundle)
                 {
                     keyValuePair.Value.rotRate = vector3;
                 }
                 this.chaCtrl.ChangeSettingHairCorrectRotAll(this.parts);
                 this.cvsH_Hair.UpdateAllBundleUI(this.idx);
             }
             else
             {
                 bi.rotRate = vector3;
                 this.chaCtrl.ChangeSettingHairCorrectRot(this.parts, this.idx);
             }
         });
         this.ssRot[1].onSetDefaultValue = (Func <float>)(() =>
         {
             this.reset = true;
             return((float)vDefRotRate.y);
         });
         this.ssRot[1].onEndSetDefaultValue = (Action)(() => this.reset = false);
         this.ssRot[2].onChange             = (Action <float>)(value =>
         {
             Vector3 vector3;
             ((Vector3) ref vector3).\u002Ector((float)bi.rotRate.x, (float)bi.rotRate.y, value);
             if (this.ctrlTogether && !this.reset && !this.cvsH_Hair.allReset)
             {
                 foreach (KeyValuePair <int, ChaFileHair.PartsInfo.BundleInfo> keyValuePair in this.hair.parts[this.parts].dictBundle)
                 {
                     keyValuePair.Value.rotRate = vector3;
                 }
                 this.chaCtrl.ChangeSettingHairCorrectRotAll(this.parts);
                 this.cvsH_Hair.UpdateAllBundleUI(this.idx);
             }
             else
             {
                 bi.rotRate = vector3;
                 this.chaCtrl.ChangeSettingHairCorrectRot(this.parts, this.idx);
             }
         });
         this.ssRot[2].onSetDefaultValue = (Func <float>)(() =>
         {
             this.reset = true;
             return((float)vDefRotRate.z);
         });
         this.ssRot[2].onEndSetDefaultValue = (Action)(() => this.reset = false);
         if (Object.op_Implicit((Object)this.tglNoShake))
         {
             this.tglNoShake.SetIsOnWithoutCallback(bi.noShake);
             ObservableExtensions.Subscribe <bool>((IObservable <M0>)UnityUIComponentExtensions.OnValueChangedAsObservable(this.tglNoShake), (Action <M0>)(isOn =>
             {
                 if (bi.noShake == isOn)
                 {
                     return;
                 }
                 bi.noShake = isOn;
             }));
         }
         if (Object.op_Implicit((Object)this.tglGuidDraw))
         {
             this.tglGuidDraw.SetIsOnWithoutCallback(true);
             ObservableExtensions.Subscribe <bool>((IObservable <M0>)UnityUIComponentExtensions.OnValueChangedAsObservable(this.tglGuidDraw), (Action <M0>)(isOn =>
             {
                 if (!Object.op_Inequality((Object)null, (Object)this.cmpGuid))
                 {
                     return;
                 }
                 ((Component)this.cmpGuid).get_gameObject().SetActiveIfDifferent(isOn);
             }));
         }
     }
     if (Object.op_Implicit((Object)this.title))
     {
         this.title.set_text("調整" + titleNo.ToString("00"));
     }
     this.UpdateCustomUI();
 }
コード例 #15
0
 protected override void Start()
 {
     base.Start();
     this.customBase.actUpdateCvsAcsCopy += new Action(((CvsBase)this).UpdateCustomUI);
     this.tglDst[this.selDst].set_isOn(true);
     this.tglSrc[this.selSrc].set_isOn(true);
     // ISSUE: object of a compiler-generated type is created
     ((IEnumerable <UI_ToggleEx>) this.tglSrc).Select <UI_ToggleEx, \u003C\u003E__AnonType9 <UI_ToggleEx, int> >((Func <UI_ToggleEx, int, \u003C\u003E__AnonType9 <UI_ToggleEx, int> >)((p, index) => new \u003C\u003E__AnonType9 <UI_ToggleEx, int>(p, index))).ToList <\u003C\u003E__AnonType9 <UI_ToggleEx, int> >().ForEach((Action <\u003C\u003E__AnonType9 <UI_ToggleEx, int> >)(p => ObservableExtensions.Subscribe <bool>(Observable.Where <bool>((IObservable <M0>)UnityUIComponentExtensions.OnValueChangedAsObservable((Toggle)p.tgl), (Func <M0, bool>)(isOn => isOn)), (Action <M0>)(isOn => this.selSrc = p.index))));
     // ISSUE: object of a compiler-generated type is created
     ((IEnumerable <UI_ToggleEx>) this.tglDst).Select <UI_ToggleEx, \u003C\u003E__AnonType9 <UI_ToggleEx, int> >((Func <UI_ToggleEx, int, \u003C\u003E__AnonType9 <UI_ToggleEx, int> >)((p, index) => new \u003C\u003E__AnonType9 <UI_ToggleEx, int>(p, index))).ToList <\u003C\u003E__AnonType9 <UI_ToggleEx, int> >().ForEach((Action <\u003C\u003E__AnonType9 <UI_ToggleEx, int> >)(p => ObservableExtensions.Subscribe <bool>(Observable.Where <bool>((IObservable <M0>)UnityUIComponentExtensions.OnValueChangedAsObservable((Toggle)p.tgl), (Func <M0, bool>)(isOn => isOn)), (Action <M0>)(isOn => this.selDst = p.index))));
     ObservableExtensions.Subscribe <Unit>((IObservable <M0>)UnityUIComponentExtensions.OnClickAsObservable(this.btnCopySlot), (Action <M0>)(_ =>
     {
         this.CopyAccessory();
         Singleton <Resources> .Instance.SoundPack.Play(SoundPack.SystemSE.OK_S);
     }));
     ObservableExtensions.Subscribe <Unit>((IObservable <M0>)ObservableTriggerExtensions.UpdateAsObservable((Component)this.btnCopySlot), (Action <M0>)(_ => ((Selectable)this.btnCopySlot).set_interactable(this.selSrc != this.selDst)));
     ObservableExtensions.Subscribe <Unit>((IObservable <M0>)UnityUIComponentExtensions.OnClickAsObservable(this.btnCopy01), (Action <M0>)(_ =>
     {
         for (int index = 0; index < 3; ++index)
         {
             this.nowAcs.parts[this.selDst].addMove[0, index] = this.orgAcs.parts[this.selDst].addMove[0, index] = this.nowAcs.parts[this.selSrc].addMove[0, index];
         }
         this.chaCtrl.UpdateAccessoryMoveFromInfo(this.selDst);
         this.customBase.updateCvsAccessory = true;
         Singleton <Resources> .Instance.SoundPack.Play(SoundPack.SystemSE.OK_S);
     }));
     ObservableExtensions.Subscribe <Unit>((IObservable <M0>)ObservableTriggerExtensions.UpdateAsObservable((Component)this.btnCopy01), (Action <M0>)(_ => ((Selectable)this.btnCopy01).set_interactable(((((true ? 1 : 0) & (!Object.op_Inequality((Object)null, (Object)this.chaCtrl.cmpAccessory[this.selDst]) ? 0 : (Object.op_Inequality((Object)null, (Object)this.chaCtrl.cmpAccessory[this.selDst].trfMove01) ? 1 : 0))) != 0 ? 1 : 0) & (!Object.op_Inequality((Object)null, (Object)this.chaCtrl.cmpAccessory[this.selSrc]) ? 0 : (Object.op_Inequality((Object)null, (Object)this.chaCtrl.cmpAccessory[this.selSrc].trfMove01) ? 1 : 0))) != 0 & this.selSrc != this.selDst)));
     ObservableExtensions.Subscribe <Unit>((IObservable <M0>)UnityUIComponentExtensions.OnClickAsObservable(this.btnCopy02), (Action <M0>)(_ =>
     {
         for (int index = 0; index < 3; ++index)
         {
             this.nowAcs.parts[this.selDst].addMove[1, index] = this.orgAcs.parts[this.selDst].addMove[1, index] = this.nowAcs.parts[this.selSrc].addMove[1, index];
         }
         this.chaCtrl.UpdateAccessoryMoveFromInfo(this.selDst);
         this.customBase.updateCvsAccessory = true;
         Singleton <Resources> .Instance.SoundPack.Play(SoundPack.SystemSE.OK_S);
     }));
     ObservableExtensions.Subscribe <Unit>((IObservable <M0>)ObservableTriggerExtensions.UpdateAsObservable((Component)this.btnCopy02), (Action <M0>)(_ => ((Selectable)this.btnCopy02).set_interactable(((((true ? 1 : 0) & (!Object.op_Inequality((Object)null, (Object)this.chaCtrl.cmpAccessory[this.selDst]) ? 0 : (Object.op_Inequality((Object)null, (Object)this.chaCtrl.cmpAccessory[this.selDst].trfMove02) ? 1 : 0))) != 0 ? 1 : 0) & (!Object.op_Inequality((Object)null, (Object)this.chaCtrl.cmpAccessory[this.selSrc]) ? 0 : (Object.op_Inequality((Object)null, (Object)this.chaCtrl.cmpAccessory[this.selSrc].trfMove02) ? 1 : 0))) != 0 & this.selSrc != this.selDst)));
     ObservableExtensions.Subscribe <Unit>((IObservable <M0>)UnityUIComponentExtensions.OnClickAsObservable(this.btnRevLR01), (Action <M0>)(_ =>
     {
         for (int index = 0; index < 3; ++index)
         {
             Vector3 vector3 = this.nowAcs.parts[this.selSrc].addMove[0, index];
             if (index == 1)
             {
                 ref Vector3 local1 = ref vector3;
                 local1.y           = (__Null)(local1.y + 180.0);
                 if (vector3.y >= 360.0)
                 {
                     ref Vector3 local2 = ref vector3;
                     local2.y           = (__Null)(local2.y - 360.0);
                 }
             }
             this.nowAcs.parts[this.selDst].addMove[0, index] = this.orgAcs.parts[this.selDst].addMove[0, index] = vector3;
         }
コード例 #16
0
        private void Start()
        {
            if (Object.op_Equality((Object)this._toggle, (Object)null))
            {
                this._toggle = (Toggle)((Component)this).GetComponent <Toggle>();
                if (Object.op_Equality((Object)this._toggle, (Object)null))
                {
                    Debug.LogError((object)"Toggle none", (Object)this);
                    Object.Destroy((Object)this);
                    return;
                }
            }
            if (Object.op_Equality((Object)this._tmpText, (Object)null) && Object.op_Equality((Object)this._unityText, (Object)null))
            {
                if (Object.op_Equality((Object)this._tmpText, (Object)null))
                {
                    this._tmpText = (TextMeshProUGUI)((Component)this).GetComponentInChildren <TextMeshProUGUI>();
                }
                if (Object.op_Equality((Object)this._unityText, (Object)null))
                {
                    this._unityText = (Text)((Component)this).GetComponentInChildren <Text>();
                }
                if (Object.op_Equality((Object)this._tmpText, (Object)null) && Object.op_Equality((Object)this._unityText, (Object)null))
                {
                    Debug.LogError((object)"Component Text none", (Object)this);
                    Object.Destroy((Object)this);
                    return;
                }
            }
            ColorBlock colors = ((Selectable)this._toggle).get_colors();
            ReactiveProperty <bool> isOnUI    = new ReactiveProperty <bool>(false);
            ReactiveProperty <bool> isPressUI = new ReactiveProperty <bool>(false);

            ObservableExtensions.Subscribe <bool>(Observable.Where <bool>((IObservable <M0>)isOnUI, (Func <M0, bool>)(_ => !this._toggle.get_isOn())), (Action <M0>)(isOn =>
            {
                if (isOn)
                {
                    if (isPressUI.get_Value())
                    {
                        return;
                    }
                    this.SetColor(((ColorBlock) ref colors).get_highlightedColor());
                }
                else
                {
                    if (!isPressUI.get_Value())
                    {
                        return;
                    }
                    this.SetColor(((ColorBlock) ref colors).get_highlightedColor());
                }
            }));
            ObservableExtensions.Subscribe <bool>(Observable.Where <bool>((IObservable <M0>)isPressUI, (Func <M0, bool>)(_ => !this._toggle.get_isOn())), (Action <M0>)(isOn =>
            {
                if (isOn || !isOnUI.get_Value())
                {
                    return;
                }
                this.SetColor(((ColorBlock) ref colors).get_highlightedColor());
            }));
            ObservableExtensions.Subscribe <bool>(Observable.Where <bool>((IObservable <M0>)Observable.CombineLatest <bool, bool, bool>((IObservable <M0>)isPressUI, (IObservable <M1>)isOnUI, (Func <M0, M1, M2>)((x, y) => x && y)), (Func <M0, bool>)(isOn => isOn)), (Action <M0>)(_ =>
            {
                if (this._toggle.get_isOn())
                {
                    return;
                }
                this.SetColor(((ColorBlock) ref colors).get_pressedColor());
            }));
            ObservableExtensions.Subscribe <bool>(Observable.Where <bool>((IObservable <M0>)Observable.CombineLatest <bool, bool, bool>((IObservable <M0>)isPressUI, (IObservable <M1>)isOnUI, (Func <M0, M1, M2>)((x, y) => !x && !y)), (Func <M0, bool>)(isOut => isOut)), (Action <M0>)(_ =>
            {
                if (this._toggle.get_isOn())
                {
                    this.SetColor(((ColorBlock) ref colors).get_pressedColor());
                }
                else
                {
                    this.SetColor(((ColorBlock) ref colors).get_normalColor());
                }
            }));
            ObservableExtensions.Subscribe <PointerEventData>((IObservable <M0>)ObservableTriggerExtensions.OnPointerDownAsObservable((UIBehaviour)this._toggle), (Action <M0>)(_ => isPressUI.set_Value(true)));
            ObservableExtensions.Subscribe <PointerEventData>((IObservable <M0>)ObservableTriggerExtensions.OnPointerUpAsObservable((UIBehaviour)this._toggle), (Action <M0>)(_ => isPressUI.set_Value(false)));
            ObservableExtensions.Subscribe <PointerEventData>((IObservable <M0>)ObservableTriggerExtensions.OnPointerEnterAsObservable((UIBehaviour)this._toggle), (Action <M0>)(_ => isOnUI.set_Value(true)));
            ObservableExtensions.Subscribe <PointerEventData>((IObservable <M0>)ObservableTriggerExtensions.OnPointerExitAsObservable((UIBehaviour)this._toggle), (Action <M0>)(_ => isOnUI.set_Value(false)));
            ObservableExtensions.Subscribe <bool>((IObservable <M0>)UnityUIComponentExtensions.OnValueChangedAsObservable(this._toggle), (Action <M0>)(isOn =>
            {
                if (isOn)
                {
                    this.SetColor(((ColorBlock) ref colors).get_pressedColor());
                }
                else
                {
                    this.SetColor(((ColorBlock) ref colors).get_normalColor());
                }
            }));
        }
コード例 #17
0
        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();
        }
コード例 #18
0
 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()));
 }
コード例 #19
0
ファイル: CvsBase.cs プロジェクト: request-time-out/A-Scripts
 protected virtual void Start()
 {
     if (!((IEnumerable <CvsBase.ItemInfo>) this.items).Any <CvsBase.ItemInfo>())
     {
         return;
     }
     // ISSUE: object of a compiler-generated type is created
     ((IEnumerable <CvsBase.ItemInfo>) this.items).Select <CvsBase.ItemInfo, \u003C\u003E__AnonType15 <CvsBase.ItemInfo, int> >((Func <CvsBase.ItemInfo, int, \u003C\u003E__AnonType15 <CvsBase.ItemInfo, int> >)((val, idx) => new \u003C\u003E__AnonType15 <CvsBase.ItemInfo, int>(val, idx))).Where <\u003C\u003E__AnonType15 <CvsBase.ItemInfo, int> >((Func <\u003C\u003E__AnonType15 <CvsBase.ItemInfo, int>, bool>)(item => item.val != null && Object.op_Inequality((Object)item.val.tglItem, (Object)null))).ToList <\u003C\u003E__AnonType15 <CvsBase.ItemInfo, int> >().ForEach((Action <\u003C\u003E__AnonType15 <CvsBase.ItemInfo, int> >)(item => ObservableExtensions.Subscribe <bool>(Observable.Where <bool>((IObservable <M0>)UnityUIComponentExtensions.OnValueChangedAsObservable((Toggle)item.val.tglItem), (Func <M0, bool>)(isOn => isOn)), (Action <M0>)(_ =>
     {
         // ISSUE: object of a compiler-generated type is created
         foreach (\u003C\u003E__AnonType5 <CvsBase.ItemInfo, int> anonType5 in ((IEnumerable <CvsBase.ItemInfo>) this.items).Select <CvsBase.ItemInfo, \u003C\u003E__AnonType5 <CvsBase.ItemInfo, int> >((Func <CvsBase.ItemInfo, int, \u003C\u003E__AnonType5 <CvsBase.ItemInfo, int> >)((v, i) => new \u003C\u003E__AnonType5 <CvsBase.ItemInfo, int>(v, i))))
         {
             if (anonType5.i != item.idx && anonType5.v != null)
             {
                 CanvasGroup cgItem = anonType5.v.cgItem;
                 if (Object.op_Implicit((Object)cgItem))
                 {
                     cgItem.Enable(false, false);
                 }
             }
         }
         if (Object.op_Implicit((Object)item.val.cgItem))
         {
             item.val.cgItem.Enable(true, false);
         }
         this.customBase.customCtrl.showColorCvs = false;
         this.customBase.customCtrl.showPattern  = false;
     }))));
 }
コード例 #20
0
 protected override void Start()
 {
     base.Start();
     this.customBase.actUpdateCvsClothes += new Action(((CvsBase)this).UpdateCustomUI);
     this.customBase.RestrictSubMenu();
     this.UpdateClothesList();
     this.sscClothesType.SetToggleID(this.nowClothes.parts[this.SNo].id);
     this.sscClothesType.onSelect = (Action <CustomSelectInfo>)(info =>
     {
         if (info == null || this.nowClothes.parts[this.SNo].id == info.id)
         {
             return;
         }
         this.chaCtrl.ChangeClothes(this.SNo, info.id, false);
         this.orgClothes.parts[this.SNo].id = this.nowClothes.parts[this.SNo].id;
         for (int index = 0; index < 3; ++index)
         {
             this.orgClothes.parts[this.SNo].colorInfo[index].baseColor = this.nowClothes.parts[this.SNo].colorInfo[index].baseColor;
             this.ccsColorSet[index].UpdateCustomUI();
         }
         if (this.SNo == 0 || this.SNo == 2)
         {
             this.customBase.RestrictSubMenu();
         }
         this.RestrictClothesMenu();
     });
     if (Object.op_Implicit((Object)this.btnColorAllReset))
     {
         ObservableExtensions.Subscribe <Unit>((IObservable <M0>)UnityUIComponentExtensions.OnClickAsObservable(this.btnColorAllReset), (Action <M0>)(_ =>
         {
             this.chaCtrl.SetClothesDefaultSetting(this.SNo);
             for (int index = 0; index < 3; ++index)
             {
                 byte[] numArray = MessagePackSerializer.Serialize <ChaFileClothes.PartsInfo.ColorInfo>((M0)this.nowClothes.parts[this.SNo].colorInfo[index]);
                 this.orgClothes.parts[this.SNo].colorInfo[index] = (ChaFileClothes.PartsInfo.ColorInfo)MessagePackSerializer.Deserialize <ChaFileClothes.PartsInfo.ColorInfo>(numArray);
             }
             this.chaCtrl.ChangeCustomClothes(this.SNo, true, true, true, true);
             for (int index = 0; index < this.ccsColorSet.Length; ++index)
             {
                 this.ccsColorSet[index].UpdateCustomUI();
             }
         }));
     }
     this.ccsColorSet[0].Initialize(this.SNo, 0);
     this.ccsColorSet[1].Initialize(this.SNo, 1);
     this.ccsColorSet[2].Initialize(this.SNo, 2);
     this.ssBreak.onChange = (Action <float>)(value =>
     {
         this.nowClothes.parts[this.SNo].breakRate = value;
         this.orgClothes.parts[this.SNo].breakRate = value;
         this.chaCtrl.ChangeBreakClothes(this.SNo);
     });
     this.ssBreak.onSetDefaultValue = (Func <float>)(() => 0.0f);
     if (Object.op_Implicit((Object)this.tglOption01))
     {
         ObservableExtensions.Subscribe <bool>((IObservable <M0>)UnityUIComponentExtensions.OnValueChangedAsObservable(this.tglOption01), (Action <M0>)(isOn =>
         {
             this.nowClothes.parts[this.SNo].hideOpt[0] = !isOn;
             this.orgClothes.parts[this.SNo].hideOpt[0] = !isOn;
         }));
     }
     if (Object.op_Implicit((Object)this.tglOption02))
     {
         ObservableExtensions.Subscribe <bool>((IObservable <M0>)UnityUIComponentExtensions.OnValueChangedAsObservable(this.tglOption02), (Action <M0>)(isOn =>
         {
             this.nowClothes.parts[this.SNo].hideOpt[1] = !isOn;
             this.orgClothes.parts[this.SNo].hideOpt[1] = !isOn;
         }));
     }
     this.StartCoroutine(this.SetInputText());
     this.backSNo = this.SNo;
 }
コード例 #21
0
 public override void Init(UICtrl _uiCtrl, bool _tutorial)
 {
     base.Init(_uiCtrl, _tutorial);
     ObservableExtensions.Subscribe <Unit>((IObservable <M0>)UnityUIComponentExtensions.OnClickAsObservable(this.itemUI.color1.buttonColor), (Action <M0>)(_ =>
     {
         if (this.itemUI.colorPanel.isOpen && this.itemUI.color1.IsOpen)
         {
             this.itemUI.Close(true);
         }
         else
         {
             this.itemUI.SetOpen(0);
             this.itemUI.colorPanel.Setup(this.OIItem.Color1, (Action <Color>)(_c =>
             {
                 this.itemUI.color1.Color = _c;
                 this.OCItem.Color1       = _c;
             }), false);
         }
     }));
     ObservableExtensions.Subscribe <Unit>((IObservable <M0>)UnityUIComponentExtensions.OnClickAsObservable(this.itemUI.color2.buttonColor), (Action <M0>)(_ =>
     {
         if (this.itemUI.colorPanel.isOpen && this.itemUI.color2.IsOpen)
         {
             this.itemUI.Close(true);
         }
         else
         {
             this.itemUI.SetOpen(1);
             this.itemUI.colorPanel.Setup(this.OIItem.Color2, (Action <Color>)(_c =>
             {
                 this.itemUI.color2.Color = _c;
                 this.OCItem.Color2       = _c;
             }), false);
         }
     }));
     ObservableExtensions.Subscribe <Unit>((IObservable <M0>)UnityUIComponentExtensions.OnClickAsObservable(this.itemUI.color3.buttonColor), (Action <M0>)(_ =>
     {
         if (this.itemUI.colorPanel.isOpen && this.itemUI.color3.IsOpen)
         {
             this.itemUI.Close(true);
         }
         else
         {
             this.itemUI.SetOpen(2);
             this.itemUI.colorPanel.Setup(this.OIItem.Color3, (Action <Color>)(_c =>
             {
                 this.itemUI.color3.Color = _c;
                 this.OCItem.Color3       = _c;
             }), false);
         }
     }));
     ObservableExtensions.Subscribe <Unit>((IObservable <M0>)UnityUIComponentExtensions.OnClickAsObservable(this.itemUI.emissionColor.buttonColor), (Action <M0>)(_ =>
     {
         if (this.itemUI.colorPanel.isOpen && this.itemUI.emissionColor.IsOpen)
         {
             this.itemUI.Close(true);
         }
         else
         {
             float exposure = 0.0f;
             Color32 baseLinearColor;
             SettingUICtrl.DecomposeHdrColor(this.OIItem.EmissionColor, out baseLinearColor, out exposure);
             baseLinearColor.a = (__Null)(int)byte.MaxValue;
             this.itemUI.SetOpen(3);
             this.itemUI.colorPanel.Setup(Color32.op_Implicit(baseLinearColor), (Action <Color>)(_c =>
             {
                 _c = Color.op_Multiply(_c, Mathf.Pow(2f, exposure));
                 this.itemUI.emissionColor.Color = _c;
                 this.OCItem.EmissionColor       = _c;
             }), false);
         }
     }));
     ObservableExtensions.Subscribe <bool>((IObservable <M0>)UnityUIComponentExtensions.OnValueChangedAsObservable(this.itemUI.option.toggle), (Action <M0>)(_b =>
     {
         if (this.OCItem == null)
         {
             return;
         }
         this.OCItem.VisibleOption = _b;
     }));
     ObservableExtensions.Subscribe <Unit>((IObservable <M0>)UnityUIComponentExtensions.OnClickAsObservable(this.itemUI.init.buttonInit), (Action <M0>)(_ =>
     {
         if (this.OCItem == null)
         {
             return;
         }
         this.OCItem.ResetColor();
         this.itemUI.Close(true);
         this.itemUI.color1.Color        = this.OCItem.Color1;
         this.itemUI.color2.Color        = this.OCItem.Color2;
         this.itemUI.color3.Color        = this.OCItem.Color3;
         this.itemUI.emissionColor.Color = this.OCItem.EmissionColor;
     }));
     this.itemUI.colorPanel.onClose += (Action)(() => this.itemUI.Close(false));
     ObservableExtensions.Subscribe <string>((IObservable <M0>)UnityUIComponentExtensions.OnEndEditAsObservable(this.folderUI.inputName), (Action <M0>)(_s =>
     {
         this.OIFolder.Name = _s;
         this.UICtrl.ListUICtrl.RefreshList();
     }));
     Singleton <Selection> .Instance.onSelectFunc += new Action <ObjectCtrl[]>(this.OnSelect);
 }
コード例 #22
0
 public override void Start()
 {
     base.Start();
     if (!((IEnumerable <UI_ToggleGroupCtrl.ItemInfo>) this.items).Any <UI_ToggleGroupCtrl.ItemInfo>())
     {
         return;
     }
     // ISSUE: object of a compiler-generated type is created
     ((IEnumerable <UI_ToggleGroupCtrl.ItemInfo>) this.items).Select <UI_ToggleGroupCtrl.ItemInfo, \u003C\u003E__AnonType15 <UI_ToggleGroupCtrl.ItemInfo, int> >((Func <UI_ToggleGroupCtrl.ItemInfo, int, \u003C\u003E__AnonType15 <UI_ToggleGroupCtrl.ItemInfo, int> >)((val, idx) => new \u003C\u003E__AnonType15 <UI_ToggleGroupCtrl.ItemInfo, int>(val, idx))).Where <\u003C\u003E__AnonType15 <UI_ToggleGroupCtrl.ItemInfo, int> >((Func <\u003C\u003E__AnonType15 <UI_ToggleGroupCtrl.ItemInfo, int>, bool>)(item => item.val != null && Object.op_Inequality((Object)item.val.tglItem, (Object)null))).ToList <\u003C\u003E__AnonType15 <UI_ToggleGroupCtrl.ItemInfo, int> >().ForEach((Action <\u003C\u003E__AnonType15 <UI_ToggleGroupCtrl.ItemInfo, int> >)(item => ObservableExtensions.Subscribe <bool>(Observable.Where <bool>(Observable.Skip <bool>((IObservable <M0>)UnityUIComponentExtensions.OnValueChangedAsObservable(item.val.tglItem), 1), (Func <M0, bool>)(isOn => isOn)), (Action <M0>)(_ =>
     {
         Singleton <Resources> .Instance.SoundPack.Play(SoundPack.SystemSE.OK_S);
         this.ChangeWindowSetting(item.idx);
     }))));
 }
コード例 #23
0
        protected override void Start()
        {
            DisposableExtensions.AddTo <IDisposable>((M0)ObservableExtensions.Subscribe <bool>((IObservable <M0>) this.OnActiveChangedAsObservable(), (Action <M0>)(x => this.SetActiveControl(x))), (Component)this);
            DisposableExtensions.AddTo <IDisposable>((M0)ObservableExtensions.Subscribe <Unit>((IObservable <M0>)UnityUIComponentExtensions.OnClickAsObservable(this._closeButton), (Action <M0>)(_ => this.DoClose())), (Component)this);
            ActionIDDownCommand actionIdDownCommand = new ActionIDDownCommand()
            {
                ActionID = ActionID.Cancel
            };

            // ISSUE: method pointer
            actionIdDownCommand.TriggerEvent.AddListener(new UnityAction((object)this, __methodptr(\u003CStart\u003Em__3)));
            this._actionCommands.Add(actionIdDownCommand);
            KeyCodeDownCommand keyCodeDownCommand = new KeyCodeDownCommand()
            {
                KeyCode = (KeyCode)324
            };

            // ISSUE: method pointer
            keyCodeDownCommand.TriggerEvent.AddListener(new UnityAction((object)this, __methodptr(\u003CStart\u003Em__4)));
            this._keyCommands.Add(keyCodeDownCommand);
            if (!this._toggleElements.IsNullOrEmpty <ToggleElement>())
            {
                for (int index = 0; index < this._toggleElements.Count; ++index)
                {
                    ToggleElement element = this._toggleElements.GetElement <ToggleElement>(index);
                    Toggle        toggle  = element == null ? (Toggle)null : element.Toggle;
                    if (!Object.op_Equality((Object)toggle, (Object)null))
                    {
                        element.Index = index;
                        element.Start();
                        DisposableExtensions.AddTo <IDisposable>((M0)ObservableExtensions.Subscribe <bool>(Observable.Where <bool>(Observable.DistinctUntilChanged <bool>((IObservable <M0>)UnityUIComponentExtensions.OnValueChangedAsObservable(toggle)), (Func <M0, bool>)(flag => flag)), (Action <M0>)(_ =>
                        {
                            this.ChangedSelecteInventory(element.Index);
                            this.PlaySE(SoundPack.SystemSE.OK_S);
                        })), (Component)toggle);
                    }
                }
            }
            DisposableExtensions.AddTo <IDisposable>((M0)ObservableExtensions.Subscribe <StuffItem>(Observable.Where <StuffItem>((IObservable <M0>) this._decidedItemSlotUI.CreateEvent, (Func <M0, bool>)(item => item != null)), (Action <M0>)(item => this._createItemStockUI.AddItem(item))), (Component)this);
            base.Start();
            this.CanvasAlpha = 0.0f;
            bool flag1 = false;

            this.Interactable = flag1;
            this.BlockRaycast = flag1;
            this.SetEnabledInputAll(false);
        }
コード例 #24
0
 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()));
     }
 }
コード例 #25
0
        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();
        }
コード例 #26
0
 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;
 }
コード例 #27
0
 protected override void OnBeforeStart()
 {
     base.OnBeforeStart();
     ObservableExtensions.Subscribe <bool>(Observable.TakeUntilDestroy <bool>((IObservable <M0>) this.OnActiveChangedAsObservable(), (Component)this), (Action <M0>)(x => this.SetActiveControl(x)));
     ObservableExtensions.Subscribe <Unit>(Observable.Where <Unit>((IObservable <M0>)UnityUIComponentExtensions.OnClickAsObservable(this._closeButton), (Func <M0, bool>)(_ => this.InputEnabled)), (Action <M0>)(_ => this.DoClose()));
     this._toggles = this._toggleGroup != null ? (Toggle[])((Component)this._toggleGroup).GetComponentsInChildren <Toggle>(true) : (Toggle[])null;
     if (((IReadOnlyList <Toggle>) this._toggles).IsNullOrEmpty <Toggle>())
     {
         return;
     }
     for (int i = 0; i < this._toggles.Length; ++i)
     {
         ObservableExtensions.Subscribe <bool>(Observable.Where <bool>(Observable.Where <bool>((IObservable <M0>)UnityUIComponentExtensions.OnValueChangedAsObservable(this._toggles[i]), (Func <M0, bool>)(flag => flag)), (Func <M0, bool>)(_ => this.InputEnabled)), (Action <M0>)(_ => this.ChangeIndex(i)));
     }
 }