예제 #1
0
 protected override void Start()
 {
   base.Start();
   this.UpdateBirthDayDD();
   this.customBase.lstInputField.Add(this.inpName);
   this.customBase.actUpdateCvsChara += new Action(((CvsBase) this).UpdateCustomUI);
   if (Object.op_Implicit((Object) this.inpName))
     this.inpName.ActivateInputField();
   if (Object.op_Implicit((Object) this.inpName))
     ObservableExtensions.Subscribe<string>((IObservable<M0>) UnityUIComponentExtensions.OnEndEditAsObservable(this.inpName), (Action<M0>) (str =>
     {
       this.parameter.fullname = str;
       this.customBase.changeCharaName = true;
     }));
   this.randomName.Initialize();
   if (Object.op_Implicit((Object) this.btnRandom))
     ObservableExtensions.Subscribe<Unit>((IObservable<M0>) UnityUIComponentExtensions.OnClickAsObservable(this.btnRandom), (Action<M0>) (_ =>
     {
       this.inpName.set_text(this.randomName.GetRandName(this.chaCtrl.sex));
       this.parameter.fullname = this.inpName.get_text();
       this.customBase.changeCharaName = true;
     }));
   // ISSUE: method pointer
   ((UnityEvent<int>) this.ddBirthMonth.get_onValueChanged()).AddListener(new UnityAction<int>((object) this, __methodptr(\u003CStart\u003Em__2)));
   // ISSUE: method pointer
   ((UnityEvent<int>) this.ddBirthDay.get_onValueChanged()).AddListener(new UnityAction<int>((object) this, __methodptr(\u003CStart\u003Em__3)));
 }
 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);
 }
예제 #3
0
 private void Start()
 {
     if (Object.op_Implicit((Object)this.btnClose))
     {
         ObservableExtensions.Subscribe <Unit>((IObservable <M0>)UnityUIComponentExtensions.OnClickAsObservable(this.btnClose), (Action <M0>)(_ =>
         {
             this.SetActiveCanvas(false);
             if (this.onClose == null)
             {
                 return;
             }
             this.onClose();
         }));
     }
     ObservableExtensions.Subscribe <Unit>((IObservable <M0>)ObservableTriggerExtensions.UpdateAsObservable((Component)this), (Action <M0>)(_ =>
     {
         if (Object.op_Equality((Object)null, (Object)this.rtfScroll) || Object.op_Equality((Object)null, (Object)this.rtfContent) || (Object.op_Equality((Object)null, (Object)this.textLog) || this.sbAdd.Length == 0))
         {
             return;
         }
         UnityEngine.UI.Text text = (UnityEngine.UI.Text)Object.Instantiate <UnityEngine.UI.Text>((M0)this.textLog);
         ((Component)text).get_transform().SetParent(((Component)this.rtfContent).get_transform(), false);
         text.set_text(this.sbAdd.ToString().TrimEnd('\r', '\n'));
         ((Graphic)text).get_rectTransform().set_sizeDelta(new Vector2((float)((Graphic)text).get_rectTransform().get_sizeDelta().x, text.get_preferredHeight()));
         ((Component)text).get_gameObject().SetActive(true);
         this.sbAdd.Length = 0;
     }));
 }
예제 #4
0
        public override void Init()
        {
            ActionSystem actData = Manager.Config.ActData;

            this.LinkToggleArray(this.lookToggles, (Action <int>)(i => actData.Look = i == 0));
            this.LinkSlider(this.tpsSensitivityXSlider, (Action <float>)(value => actData.TPSSensitivityY = (int)value));
            this.LinkSlider(this.tpsSensitivityYSlider, (Action <float>)(value => actData.TPSSensitivityX = (int)value));
            this.LinkSlider(this.fpsSensitivityXSlider, (Action <float>)(value => actData.FPSSensitivityY = (int)value));
            this.LinkSlider(this.fpsSensitivityYSlider, (Action <float>)(value => actData.FPSSensitivityX = (int)value));
            this.LinkToggleArray(this.invertMoveXToggles, (Action <int>)(i => actData.InvertMoveY         = i == 1));
            this.LinkToggleArray(this.invertMoveYToggles, (Action <int>)(i => actData.InvertMoveX         = i == 1));
            ObservableExtensions.Subscribe <Unit>((IObservable <M0>)UnityUIComponentExtensions.OnClickAsObservable(this.tpsSensitivityXResetButton), (Action <M0>)(_ => this.tpsSensitivityXSlider.set_value(0.0f)));
            ObservableExtensions.Subscribe <Unit>((IObservable <M0>)UnityUIComponentExtensions.OnClickAsObservable(this.tpsSensitivityYResetButton), (Action <M0>)(_ => this.tpsSensitivityYSlider.set_value(0.0f)));
            ObservableExtensions.Subscribe <Unit>((IObservable <M0>)UnityUIComponentExtensions.OnClickAsObservable(this.fpsSensitivityXResetButton), (Action <M0>)(_ => this.fpsSensitivityXSlider.set_value(0.0f)));
            ObservableExtensions.Subscribe <Unit>((IObservable <M0>)UnityUIComponentExtensions.OnClickAsObservable(this.fpsSensitivityYResetButton), (Action <M0>)(_ => this.fpsSensitivityYSlider.set_value(0.0f)));
            ObservableExtensions.Subscribe <Unit>(Observable.Merge <Unit>((IObservable <M0>[]) new IObservable <Unit>[4]
            {
                UnityUIComponentExtensions.OnClickAsObservable(this.tpsSensitivityXResetButton),
                UnityUIComponentExtensions.OnClickAsObservable(this.tpsSensitivityYResetButton),
                UnityUIComponentExtensions.OnClickAsObservable(this.fpsSensitivityXResetButton),
                UnityUIComponentExtensions.OnClickAsObservable(this.fpsSensitivityYResetButton)
            }), (Action <M0>)(_ => this.EnterSE()));
            ObservableExtensions.Subscribe <PointerEventData>(Observable.Merge <PointerEventData>((IObservable <M0>[]) new IObservable <PointerEventData>[4]
            {
                ObservableTriggerExtensions.OnPointerEnterAsObservable((UIBehaviour)this.tpsSensitivityXResetButton),
                ObservableTriggerExtensions.OnPointerEnterAsObservable((UIBehaviour)this.tpsSensitivityYResetButton),
                ObservableTriggerExtensions.OnPointerEnterAsObservable((UIBehaviour)this.fpsSensitivityXResetButton),
                ObservableTriggerExtensions.OnPointerEnterAsObservable((UIBehaviour)this.fpsSensitivityYResetButton)
            }), (Action <M0>)(_ => Singleton <Resources> .Instance.SoundPack.Play(SoundPack.SystemSE.Select)));
        }
예제 #5
0
 private void Start()
 {
   if (Object.op_Implicit((Object) this.btnFusion))
     ObservableExtensions.Subscribe<Unit>((IObservable<M0>) UnityUIComponentExtensions.OnClickAsObservable(this.btnFusion), (Action<M0>) (_ =>
     {
       this.coFusion.UpdateCharasList();
       this.customBase.customCtrl.showFusionCvs = true;
     }));
   if (Object.op_Implicit((Object) this.btnConfig))
     ObservableExtensions.Subscribe<Unit>((IObservable<M0>) UnityUIComponentExtensions.OnClickAsObservable(this.btnConfig), (Action<M0>) (_ =>
     {
       if (Object.op_Equality((Object) null, (Object) Singleton<Game>.Instance.Config))
         Singleton<Game>.Instance.LoadConfig();
       Singleton<Resources>.Instance.SoundPack.Play(SoundPack.SystemSE.OK_S);
     }));
   if (Object.op_Implicit((Object) this.btnDrawMenu))
     ObservableExtensions.Subscribe<Unit>((IObservable<M0>) UnityUIComponentExtensions.OnClickAsObservable(this.btnDrawMenu), (Action<M0>) (_ => this.customBase.customCtrl.showDrawMenu = true));
   if (Object.op_Implicit((Object) this.btnDefaultLayout))
     ObservableExtensions.Subscribe<Unit>((IObservable<M0>) UnityUIComponentExtensions.OnClickAsObservable(this.btnDefaultLayout), (Action<M0>) (_ =>
     {
       this.customBase.customSettingSave.ResetWinLayout();
       if (this.customUIDrags == null)
         return;
       for (int index = 0; index < this.customUIDrags.Length; ++index)
         this.customUIDrags[index].UpdatePosition();
     }));
   if (!Object.op_Implicit((Object) this.btnUpdatePng))
     return;
   ObservableExtensions.Subscribe<Unit>((IObservable<M0>) UnityUIComponentExtensions.OnClickAsObservable(this.btnUpdatePng), (Action<M0>) (_ =>
   {
     Singleton<Resources>.Instance.SoundPack.Play(SoundPack.SystemSE.OK_S);
     this.customBase.customCtrl.updatePng = true;
   }));
 }
예제 #6
0
 private void StartNewGame()
 {
     ObservableExtensions.Subscribe <string>((IObservable <M0>)UnityUIComponentExtensions.OnEndEditAsObservable(this.worldNameInput.input), (Action <M0>)(str =>
     {
         if (str.IsNullOrEmpty())
         {
             str = this.initWorldName;
             this.worldNameInput.input.set_text(str);
         }
         this.worldNameInput.textDummy.set_text(str);
         this.selectWorldData.Name = str;
     }));
     ObservableExtensions.Subscribe <Unit>((IObservable <M0>)UnityUIComponentExtensions.OnClickAsObservable(this.btnNewGameBack), (Action <M0>)(_ => this.BackToLoad()));
     ObservableExtensions.Subscribe <PointerEventData>((IObservable <M0>)ObservableTriggerExtensions.OnPointerEnterAsObservable((UIBehaviour)this.btnNewGameBack), (Action <M0>)(_ => Singleton <Resources> .Instance.SoundPack.Play(SoundPack.SystemSE.Select)));
     ObservableExtensions.Subscribe <Unit>(Observable.Where <Unit>((IObservable <M0>)UnityUIComponentExtensions.OnClickAsObservable(this.btnNewGameEntry), (Func <M0, bool>)(_ => !Singleton <Scene> .Instance.IsFadeNow)), (Action <M0>)(_ =>
     {
         Debug.Log((object)this.selectWorldData.Name);
         this.objNewGameRoot.SetActiveIfDifferent(false);
         ((UnityEngine.Component) this.lcwFemale).get_gameObject().SetActiveIfDifferent(true);
         this.lcwFemale.ReCreateList(true, true);
         Singleton <Resources> .Instance.SoundPack.Play(SoundPack.SystemSE.OK_L);
     }));
     ObservableExtensions.Subscribe <PointerEventData>((IObservable <M0>)ObservableTriggerExtensions.OnPointerEnterAsObservable((UIBehaviour)this.btnNewGameEntry), (Action <M0>)(_ => Singleton <Resources> .Instance.SoundPack.Play(SoundPack.SystemSE.Select)));
     ObservableExtensions.Subscribe <Unit>(Observable.Where <Unit>((IObservable <M0>)ObservableTriggerExtensions.UpdateAsObservable((UnityEngine.Component) this), (Func <M0, bool>)(_ => this.objNewGameRoot.get_activeSelf())), (Action <M0>)(_ =>
     {
         bool isFocused = this.worldNameInput.input.get_isFocused();
         this.worldNameInput.objDummy.SetActiveIfDifferent(!isFocused);
         ((Behaviour)this.worldNameInput.inputText).set_enabled(isFocused);
     }));
 }
예제 #7
0
 private void Start()
 {
     if (this.btnClose == null)
     {
         return;
     }
     ObservableExtensions.Subscribe <Unit>((IObservable <M0>)UnityUIComponentExtensions.OnClickAsObservable((Button)this.btnClose), (Action <M0>)(_ => this.Close()));
 }
예제 #8
0
 private void Start()
 {
     if (!Object.op_Implicit((Object)this.btnClose))
     {
         return;
     }
     ObservableExtensions.Subscribe <Unit>((IObservable <M0>)UnityUIComponentExtensions.OnClickAsObservable(this.btnClose), (Action <M0>)(_ => this.Close()));
 }
예제 #9
0
 private void Start()
 {
     this.sscPattern.CreateList(CvsBase.CreateSelectList(ChaListDefine.CategoryNo.st_pattern, ChaListDefine.KeyType.Unknown));
     if (!Object.op_Implicit((Object)this.btnClose))
     {
         return;
     }
     ObservableExtensions.Subscribe <Unit>((IObservable <M0>)UnityUIComponentExtensions.OnClickAsObservable(this.btnClose), (Action <M0>)(_ => this.customBase.customCtrl.showPattern = false));
 }
예제 #10
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;
         }
예제 #11
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)));
 }
예제 #12
0
 public void Start()
 {
     if (!Object.op_Implicit((Object)this.btnClose))
     {
         return;
     }
     ObservableExtensions.Subscribe <Unit>((IObservable <M0>)UnityUIComponentExtensions.OnClickAsObservable(this.btnClose), (Action <M0>)(push =>
     {
         Singleton <Resources> .Instance.SoundPack.Play(SoundPack.SystemSE.Cancel);
         this.ShowSelectHNWindow(false);
     }));
 }
 public bool SetButtonListener(UnityAction <int> action)
 {
     if (!this.categorize.Any <KeyValuePair <int, ItemFilterCategoryUI.LabelAndButton> >())
     {
         return(false);
     }
     foreach (KeyValuePair <int, ItemFilterCategoryUI.LabelAndButton> keyValuePair in this.categorize)
     {
         KeyValuePair <int, ItemFilterCategoryUI.LabelAndButton> item = keyValuePair;
         ObservableExtensions.Subscribe <Unit>((IObservable <M0>)UnityUIComponentExtensions.OnClickAsObservable(item.Value.button), (Action <M0>)(_ => action.Invoke(item.Key)));
     }
     return(true);
 }
 private void Start()
 {
     this.customBase.lstInputField.Add(this.inpName);
     if (!Object.op_Inequality((Object)null, (Object)this.inpName))
     {
         return;
     }
     ObservableExtensions.Subscribe <string>((IObservable <M0>)UnityUIComponentExtensions.OnEndEditAsObservable(this.inpName), (Action <M0>)(buf =>
     {
         if (!Object.op_Inequality((Object)null, (Object)this.textNameDummy))
         {
             return;
         }
         this.textNameDummy.set_text(this.inpName.get_text());
     }));
     if (Object.op_Inequality((Object)null, (Object)this.objNameDummy))
     {
         ObservableExtensions.Subscribe <Unit>((IObservable <M0>)ObservableTriggerExtensions.UpdateAsObservable(this.objNameDummy), (Action <M0>)(_ =>
         {
             bool isFocused = this.inpName.get_isFocused();
             if (this.objNameDummy.get_activeSelf() != isFocused)
             {
                 return;
             }
             this.objNameDummy.SetActiveIfDifferent(!isFocused);
         }));
     }
     if (Object.op_Inequality((Object)null, (Object)this.btnBack))
     {
         ObservableExtensions.Subscribe <Unit>((IObservable <M0>)UnityUIComponentExtensions.OnClickAsObservable(this.btnBack), (Action <M0>)(_ =>
         {
             Singleton <Resources> .Instance.SoundPack.Play(SoundPack.SystemSE.Cancel);
             this.customBase.customCtrl.showInputCoordinate = false;
         }));
     }
     if (!Object.op_Inequality((Object)null, (Object)this.btnEntry))
     {
         return;
     }
     ObservableExtensions.Subscribe <Unit>((IObservable <M0>)ObservableTriggerExtensions.UpdateAsObservable((Component)this.btnEntry), (Action <M0>)(_ => ((Selectable)this.btnEntry).set_interactable(!this.inpName.get_text().IsNullOrEmpty())));
     ObservableExtensions.Subscribe <Unit>((IObservable <M0>)UnityUIComponentExtensions.OnClickAsObservable(this.btnEntry), (Action <M0>)(_ =>
     {
         Singleton <Resources> .Instance.SoundPack.Play(SoundPack.SystemSE.Save);
         this.customBase.customCtrl.showInputCoordinate = false;
         if (this.actEntry == null)
         {
             return;
         }
         this.actEntry(this.inpName.get_text());
     }));
 }
예제 #15
0
 private void Start()
 {
     if (!Object.op_Inequality((Object)null, (Object)this.btnLike))
     {
         return;
     }
     ObservableExtensions.Subscribe <Unit>((IObservable <M0>)UnityUIComponentExtensions.OnClickAsObservable((Button)this.btnLike), (Action <M0>)(_ =>
     {
         if (this.actApplause == null)
         {
             return;
         }
         this.actApplause();
     }));
 }
예제 #16
0
 public void Start()
 {
     if (!Object.op_Implicit((Object)this.button))
     {
         return;
     }
     ObservableExtensions.Subscribe <Unit>((IObservable <M0>)UnityUIComponentExtensions.OnClickAsObservable(this.button), (Action <M0>)(_ => this.customBase.customColorCtrl.Setup(this, ((Graphic)this.image).get_color(), (Action <Color>)(color =>
     {
         ((Graphic)this.image).set_color(color);
         if (this.actUpdateColor == null)
         {
             return;
         }
         this.actUpdateColor(color);
     }), this.useAlpha)));
 }
예제 #17
0
        protected override void Start()
        {
            ObservableExtensions.Subscribe <bool>((IObservable <M0>) this.OnActiveChangedAsObservable(), (Action <M0>)(x => this.SetActiveControl(x)));
            if (Object.op_Inequality((Object)this._enterButton, (Object)null))
            {
                ObservableExtensions.Subscribe <Unit>((IObservable <M0>)UnityUIComponentExtensions.OnClickAsObservable(this._enterButton), (Action <M0>)(_ => this.OnInputSubmit()));
            }
            if (Object.op_Inequality((Object)this._closeButton, (Object)null))
            {
                ObservableExtensions.Subscribe <Unit>((IObservable <M0>)UnityUIComponentExtensions.OnClickAsObservable(this._closeButton), (Action <M0>)(_ => this.OnInputCancel()));
            }
            ActionIDDownCommand actionIdDownCommand1 = new ActionIDDownCommand()
            {
                ActionID = ActionID.Cancel
            };

            // ISSUE: method pointer
            actionIdDownCommand1.TriggerEvent.AddListener(new UnityAction((object)this, __methodptr(\u003CStart\u003Em__3)));
            this._actionCommands.Add(actionIdDownCommand1);
            ActionIDDownCommand actionIdDownCommand2 = new ActionIDDownCommand()
            {
                ActionID = ActionID.MouseRight
            };

            // ISSUE: method pointer
            actionIdDownCommand2.TriggerEvent.AddListener(new UnityAction((object)this, __methodptr(\u003CStart\u003Em__4)));
            this._actionCommands.Add(actionIdDownCommand2);
            ActionIDDownCommand actionIdDownCommand3 = new ActionIDDownCommand()
            {
                ActionID = ActionID.SquareX
            };

            // ISSUE: method pointer
            actionIdDownCommand3.TriggerEvent.AddListener(new UnityAction((object)this, __methodptr(\u003CStart\u003Em__5)));
            this._actionCommands.Add(actionIdDownCommand3);
            ActionIDDownCommand actionIdDownCommand4 = new ActionIDDownCommand()
            {
                ActionID = ActionID.Submit
            };

            // ISSUE: method pointer
            actionIdDownCommand4.TriggerEvent.AddListener(new UnityAction((object)this, __methodptr(\u003CStart\u003Em__6)));
            this._actionCommands.Add(actionIdDownCommand4);
            base.Start();
        }
예제 #18
0
 public override void Init(UICtrl _uiCtrl, bool _tutorial)
 {
     base.Init(_uiCtrl, _tutorial);
     this.graphics = new Graphic[2]
     {
         (Graphic)((Selectable)this.buttonRotL).get_image(),
         (Graphic)((Selectable)this.buttonRotR).get_image()
     };
     ObservableExtensions.Subscribe <Unit>((IObservable <M0>)UnityUIComponentExtensions.OnClickAsObservable(this.buttonRotL), (Action <M0>)(_ => this.Rotation(90f)));
     ObservableExtensions.Subscribe <Unit>((IObservable <M0>)UnityUIComponentExtensions.OnClickAsObservable(this.buttonRotR), (Action <M0>)(_ => this.Rotation(-90f)));
     ObservableExtensions.Subscribe <bool>((IObservable <M0>) this.visibleReactive, (Action <M0>)(_b =>
     {
         this.canvasGroup.Enable(_b, false);
         foreach (Graphic graphic in this.graphics)
         {
             graphic.set_raycastTarget(_b);
         }
     }));
 }
예제 #19
0
 private void Start()
 {
     this.saveDir = UserData.Path + "Custom/";
     this.LoadPresets();
     for (int index = 0; index < this.tglFile.Length; ++index)
     {
         this.tglFile[index].set_isOn(false);
     }
     if (!this.tglFile.SafeProc <UI_ToggleEx>(this.colorInfo.select, (Action <UI_ToggleEx>)(_t => _t.set_isOn(true))))
     {
         this.colorInfo.select = Mathf.Clamp(this.colorInfo.select, 0, this.tglFile.Length - 1);
         this.tglFile[this.colorInfo.select].set_isOn(true);
     }
     this.SetPreset(false);
     if (Object.op_Inequality((Object)null, (Object)this.objNew))
     {
         this.trfParent = this.objNew.get_transform().get_parent();
         Button component = (Button)this.objNew.GetComponent <Button>();
         if (Object.op_Inequality((Object)null, (Object)component))
         {
             ObservableExtensions.Subscribe <Unit>((IObservable <M0>)UnityUIComponentExtensions.OnClickAsObservable(component), (Action <M0>)(_ =>
             {
                 this.AddNewPreset(this.color, false);
                 this.SavePresets();
             }));
         }
         this.objNew.SetActiveIfDifferent(3 != this.colorInfo.select);
         if (77 <= this.lstInfo.Count)
         {
             this.objNew.SetActiveIfDifferent(false);
         }
     }
     for (int index = 0; index < this.tglFile.Length; ++index)
     {
         // ISSUE: object of a compiler-generated type is created
         // ISSUE: method pointer
         ((UnityEvent <bool>) this.tglFile[index].onValueChanged).AddListener(new UnityAction <bool>((object)new UI_ColorPresets.\u003CStart\u003Ec__AnonStorey0()
         {
             \u0024this = this,
             no         = index
         }, __methodptr(\u003C\u003Em__0)));
     }
 }
예제 #20
0
 protected override void Start()
 {
     base.Start();
     this.customBase.actUpdateCvsFusion += new Action(((CvsBase)this).UpdateCustomUI);
     this.UpdateCharasList();
     if (Object.op_Inequality((Object)null, (Object)this.btnFusion))
     {
         ObservableExtensions.Subscribe <Unit>((IObservable <M0>)UnityUIComponentExtensions.OnClickAsObservable(this.btnFusion), (Action <M0>)(_ =>
         {
             this.FusionProc(this.charaLoadWinA.GetSelectInfo().info.FileName, this.charaLoadWinB.GetSelectInfo().info.FileName);
             this.isFusion = true;
         }));
         ObservableExtensions.Subscribe <Unit>((IObservable <M0>)ObservableTriggerExtensions.UpdateAsObservable((Component)this.btnFusion), (Action <M0>)(_ =>
         {
             CustomCharaScrollController.ScrollData selectInfo1 = this.charaLoadWinA.GetSelectInfo();
             CustomCharaScrollController.ScrollData selectInfo2 = this.charaLoadWinB.GetSelectInfo();
             ((Selectable)this.btnFusion).set_interactable(selectInfo1 != null && null != selectInfo2);
         }));
     }
     if (!Object.op_Inequality((Object)null, (Object)this.btnExit))
     {
         return;
     }
     ObservableExtensions.Subscribe <Unit>((IObservable <M0>)UnityUIComponentExtensions.OnClickAsObservable(this.btnExit), (Action <M0>)(_ =>
     {
         this.customBase.customCtrl.showFusionCvs = false;
         this.customBase.customCtrl.showMainCvs   = true;
         this.charaLoadWinA.SelectInfoClear();
         this.charaLoadWinB.SelectInfoClear();
         if (this.isFusion)
         {
             this.customBase.updateCustomUI = true;
             for (int slotNo = 0; slotNo < 20; ++slotNo)
             {
                 this.customBase.ChangeAcsSlotName(slotNo);
             }
             this.customBase.SetUpdateToggleSetting();
             this.customBase.forceUpdateAcsList = true;
         }
         this.isFusion = false;
     }));
 }
예제 #21
0
        protected override void Start()
        {
            ObservableExtensions.Subscribe <bool>((IObservable <M0>) this.OnActiveChangedAsObservable(), (Action <M0>)(x => this.SetActiveControl(x)));
            this._updateDisposable = ObservableExtensions.Subscribe <long>(Observable.Where <long>(Observable.Where <long>(Observable.Where <long>(Observable.TakeUntilDestroy <long>((IObservable <M0>)Observable.EveryUpdate(), ((Component)this).get_gameObject()), (Func <M0, bool>)(_ => this.isOpen)), (Func <M0, bool>)(_ => Object.op_Inequality((Object)this._icon, (Object)null))), (Func <M0, bool>)(_ => !((ReactiveProperty <bool>) this._finished).get_Value())), (Action <M0>)(_ => this.OnUpdate()));
            if (Object.op_Inequality((Object)this._cancelButton, (Object)null))
            {
                ObservableExtensions.Subscribe <Unit>((IObservable <M0>)UnityUIComponentExtensions.OnClickAsObservable(this._cancelButton), (Action <M0>)(_ => this.OnInputSubmit()));
            }
            ActionIDDownCommand actionIdDownCommand1 = new ActionIDDownCommand()
            {
                ActionID = ActionID.Cancel
            };

            // ISSUE: method pointer
            actionIdDownCommand1.TriggerEvent.AddListener(new UnityAction((object)this, __methodptr(\u003CStart\u003Em__7)));
            this._actionCommands.Add(actionIdDownCommand1);
            ActionIDDownCommand actionIdDownCommand2 = new ActionIDDownCommand()
            {
                ActionID = ActionID.MouseRight
            };

            // ISSUE: method pointer
            actionIdDownCommand2.TriggerEvent.AddListener(new UnityAction((object)this, __methodptr(\u003CStart\u003Em__8)));
            this._actionCommands.Add(actionIdDownCommand2);
            ActionIDDownCommand actionIdDownCommand3 = new ActionIDDownCommand()
            {
                ActionID = ActionID.SquareX
            };

            // ISSUE: method pointer
            actionIdDownCommand3.TriggerEvent.AddListener(new UnityAction((object)this, __methodptr(\u003CStart\u003Em__9)));
            this._actionCommands.Add(actionIdDownCommand3);
            ActionIDDownCommand actionIdDownCommand4 = new ActionIDDownCommand()
            {
                ActionID = ActionID.Submit
            };

            // ISSUE: method pointer
            actionIdDownCommand4.TriggerEvent.AddListener(new UnityAction((object)this, __methodptr(\u003CStart\u003Em__A)));
            this._actionCommands.Add(actionIdDownCommand4);
            base.Start();
        }
예제 #22
0
 private void StartStrongNewGameSelect()
 {
     ObservableExtensions.Subscribe <Unit>((IObservable <M0>)UnityUIComponentExtensions.OnClickAsObservable(this.lstSelectUI[0].button), (Action <M0>)(_ =>
     {
         this.selectWorldData.FreeMode = false;
         this.objModeSelectRoot.SetActiveIfDifferent(false);
         this.objNewGameRoot.SetActiveIfDifferent(true);
         Singleton <Resources> .Instance.SoundPack.Play(SoundPack.SystemSE.OK_L);
     }));
     // ISSUE: method pointer
     this.lstSelectUI[0].action.listAction.Add(new UnityAction((object)this, __methodptr(\u003CStartStrongNewGameSelect\u003Em__F)));
     ObservableExtensions.Subscribe <Unit>((IObservable <M0>)UnityUIComponentExtensions.OnClickAsObservable(this.lstSelectUI[1].button), (Action <M0>)(_ =>
     {
         this.selectWorldData.FreeMode = true;
         this.objModeSelectRoot.SetActiveIfDifferent(false);
         this.objNewGameRoot.SetActiveIfDifferent(true);
         Singleton <Resources> .Instance.SoundPack.Play(SoundPack.SystemSE.OK_L);
     }));
     // ISSUE: method pointer
     this.lstSelectUI[1].action.listAction.Add(new UnityAction((object)this, __methodptr(\u003CStartStrongNewGameSelect\u003Em__11)));
 }
예제 #23
0
 public override void Init(UICtrl _uiCtrl, bool _tutorial)
 {
     base.Init(_uiCtrl, _tutorial);
     this.virtualizingTreeView.ItemDataBinding  += new EventHandler <VirtualizingTreeViewItemDataBindingArgs>(this.OnItemDataBinding);
     this.virtualizingTreeView.SelectionChanged += new EventHandler <SelectionChangedArgs>(this.OnSelectionChanged);
     this.virtualizingTreeView.ItemsRemoving    += new EventHandler <ItemsCancelArgs>(this.OnItemsRemoving);
     this.virtualizingTreeView.ItemsRemoved     += new EventHandler <ItemsRemovedArgs>(this.OnItemsRemoved);
     this.virtualizingTreeView.ItemExpanding    += new EventHandler <VirtualizingItemExpandingArgs>(this.OnItemExpanding);
     this.virtualizingTreeView.ItemCollapsed    += new EventHandler <VirtualizingItemCollapsedArgs>(this.OnItemCollapsed);
     this.virtualizingTreeView.ItemBeginDrag    += new EventHandler <ItemArgs>(this.OnItemBeginDrag);
     this.virtualizingTreeView.ItemDrop         += new EventHandler <ItemDropArgs>(this.OnItemDrop);
     this.virtualizingTreeView.ItemBeginDrop    += new EventHandler <ItemDropCancelArgs>(this.OnItemBeginDrop);
     this.virtualizingTreeView.ItemEndDrag      += new EventHandler <ItemArgs>(this.OnItemEndDrag);
     this.virtualizingTreeView.AutoExpand        = true;
     ObservableExtensions.Subscribe <Unit>((IObservable <M0>)UnityUIComponentExtensions.OnClickAsObservable(this.buttonDelete), (Action <M0>)(_ => this.virtualizingTreeView.RemoveSelectedItems()));
     ObservableExtensions.Subscribe <Unit>((IObservable <M0>)UnityUIComponentExtensions.OnClickAsObservable(this.buttonDuplicate), (Action <M0>)(_ => this.Duplicate()));
     ObservableExtensions.Subscribe <Unit>((IObservable <M0>)UnityUIComponentExtensions.OnClickAsObservable(this.buttonFolder), (Action <M0>)(_ => Singleton <UndoRedoManager> .Instance.Do((ICommand) new AddFolderCommand())));
     Singleton <Selection> .Instance.onSelectFunc += new Action <ObjectCtrl[]>(this.OnSelectFunc);
     ((Selectable)this.buttonDelete).set_interactable(false);
     ((Selectable)this.buttonDuplicate).set_interactable(false);
 }
예제 #24
0
 private void Start()
 {
     if (Object.op_Implicit((Object)this.btnYes))
     {
         ObservableExtensions.Subscribe <Unit>((IObservable <M0>)UnityUIComponentExtensions.OnClickAsObservable(this.btnYes), (Action <M0>)(_ =>
         {
             Singleton <Resources> .Instance.SoundPack.Play(SoundPack.SystemSE.OK_L);
             if (this.actYes != null)
             {
                 this.actYes();
             }
             this.canvasGroup.Enable(false, false);
         }));
     }
     if (Object.op_Implicit((Object)this.btnYes2))
     {
         ObservableExtensions.Subscribe <Unit>((IObservable <M0>)UnityUIComponentExtensions.OnClickAsObservable(this.btnYes2), (Action <M0>)(_ =>
         {
             Singleton <Resources> .Instance.SoundPack.Play(SoundPack.SystemSE.OK_L);
             if (this.actYes2 != null)
             {
                 this.actYes2();
             }
             this.canvasGroup.Enable(false, false);
         }));
     }
     if (!Object.op_Implicit((Object)this.btnNo))
     {
         return;
     }
     ObservableExtensions.Subscribe <Unit>((IObservable <M0>)UnityUIComponentExtensions.OnClickAsObservable(this.btnNo), (Action <M0>)(_ =>
     {
         Singleton <Resources> .Instance.SoundPack.Play(SoundPack.SystemSE.Cancel);
         if (this.actNo != null)
         {
             this.actNo();
         }
         this.canvasGroup.Enable(false, false);
     }));
 }
 protected virtual void Start()
 {
     base.Start();
     this.ListController.RefreshEvent += (Action)(() => this.RefreshUI());
     if (this._updateDisposable != null)
     {
         this._updateDisposable.Clear();
     }
     this._updateDisposable = new CompositeDisposable();
     if (Singleton <Resources> .IsInstance())
     {
         DefinePack.RecyclingSetting recycling = Singleton <Resources> .Instance.DefinePack.Recycling;
         this.CountLimit            = recycling.ItemCreateTime;
         this.SlotMaxNum            = recycling.DecidedItemCapacity;
         this.CreatedItemSlotMaxNum = recycling.CreateItemCapacity;
         this.NeedNumber            = recycling.NeedNumber;
     }
     else
     {
         this.CountLimit            = 0.0f;
         this.SlotMaxNum            = 0;
         this.CreatedItemSlotMaxNum = 0;
         this.NeedNumber            = 0;
     }
     DisposableExtensions.AddTo <IDisposable>((M0)ObservableExtensions.Subscribe <long>(Observable.TakeUntilDestroy <long>((IObservable <M0>)Observable.EveryUpdate(), ((Component)this).get_gameObject()), (Action <M0>)(_ => this.OnRecyclingDataUpdate())), (ICollection <IDisposable>) this._updateDisposable);
     DisposableExtensions.AddTo <IDisposable>((M0)ObservableExtensions.Subscribe <Unit>(Observable.Merge <Unit>((IObservable <M0>[]) new IObservable <Unit>[2]
     {
         (IObservable <Unit>)Observable.Do <Unit>((IObservable <M0>)UnityUIComponentExtensions.OnClickAsObservable(this._createButton), (Action <M0>)(_ => this.OnStartClick())),
         (IObservable <Unit>)Observable.Do <Unit>((IObservable <M0>)UnityUIComponentExtensions.OnClickAsObservable(this._cancelButton), (Action <M0>)(_ => this.OnCancelClick()))
     }), (Action <M0>)(_ => this._recyclingUI.PlaySE(SoundPack.SystemSE.OK_S))), (Component)this);
     this._recyclingUI.CreateItemStockUI.ChangeCreateableEvent += (Action <bool>)(flag => ((Selectable)this._createButton).set_interactable(flag));
     DisposableExtensions.AddTo <IDisposable>((M0)ObservableExtensions.Subscribe <bool>((IObservable <M0>) this.IsCreate, (Action <M0>)(flag =>
     {
         this.SetActive((Component)this._cancelButton, flag);
         this.SetActive((Component)this._createButton, !flag);
         this.SetActive((Component)this._playNowText, flag);
     })), (ICollection <IDisposable>) this._updateDisposable);
 }
예제 #26
0
 protected override void Awake()
 {
     ObservableExtensions.Subscribe <bool>((IObservable <M0>) this._visible, (Action <M0>)(b =>
     {
         if (Object.op_Implicit((Object)this.cgWindow))
         {
             this.cgWindow.Enable(b && this._outsideVisible, false);
         }
         if (!b)
         {
             this.Close();
         }
         if (!this.isOpen)
         {
             return;
         }
         SortCanvas.select = this.canvas;
     }));
     if (Object.op_Implicit((Object)this.btnClose))
     {
         ObservableExtensions.Subscribe <Unit>((IObservable <M0>)UnityUIComponentExtensions.OnClickAsObservable(this.btnClose), (Action <M0>)(_ => this.Close()));
     }
     this.Close();
 }
예제 #27
0
 private void Start()
 {
     if (!Object.op_Implicit((Object)this.btnExit))
     {
         return;
     }
     ObservableExtensions.Subscribe <Unit>((IObservable <M0>)UnityUIComponentExtensions.OnClickAsObservable(this.btnExit), (Action <M0>)(_ =>
     {
         Singleton <Resources> .Instance.SoundPack.Play(SoundPack.SystemSE.OK_S);
         if (this.customBase.modeNew)
         {
             Singleton <Resources> .Instance.SoundPack.Play(SoundPack.SystemSE.OK_S);
             this.popupEndNew.actYes = (Action)(() => this.ExitScene(false));
             this.popupEndNew.SetupWindow(string.Empty, string.Empty, string.Empty, string.Empty);
         }
         else
         {
             Singleton <Resources> .Instance.SoundPack.Play(SoundPack.SystemSE.OK_S);
             this.popupEndEdit.actYes  = (Action)(() => this.ExitScene(true));
             this.popupEndEdit.actYes2 = (Action)(() => this.ExitScene(false));
             this.popupEndEdit.SetupWindow(string.Empty, string.Empty, string.Empty, string.Empty);
         }
     }));
 }
예제 #28
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;
 }
예제 #29
0
        private void StartLoad()
        {
            // ISSUE: object of a compiler-generated type is created
            // ISSUE: variable of a compiler-generated type
            TitleLoadScene.\u003CStartLoad\u003Ec__AnonStorey1 loadCAnonStorey1 = new TitleLoadScene.\u003CStartLoad\u003Ec__AnonStorey1();
            // ISSUE: reference to a compiler-generated field
            loadCAnonStorey1.\u0024this = this;
            // ISSUE: reference to a compiler-generated field
            loadCAnonStorey1.isAutoFileExists = Singleton <Game> .Instance.Data.AutoData != null;
            // ISSUE: reference to a compiler-generated field
            this.infoAutoItem.objSave.SetActiveIfDifferent(loadCAnonStorey1.isAutoFileExists);
            // ISSUE: reference to a compiler-generated field
            this.infoAutoItem.objInitialize.SetActiveIfDifferent(!loadCAnonStorey1.isAutoFileExists);
            // ISSUE: reference to a compiler-generated field
            if (loadCAnonStorey1.isAutoFileExists)
            {
                this.infoAutoItem.txtTitle.set_text(Singleton <Game> .Instance.Data.AutoData.Name);
                this.infoAutoItem.txtDay.set_text(Singleton <Game> .Instance.Data.AutoData.SaveTime.ToShortDateString());
                this.infoAutoItem.txtTime.set_text(Singleton <Game> .Instance.Data.AutoData.SaveTime.ToLongTimeString());
            }
            // ISSUE: reference to a compiler-generated field
            ((Selectable)this.infoAutoItem.btnEntry).set_interactable(loadCAnonStorey1.isAutoFileExists);
            // ISSUE: reference to a compiler-generated field
            this.infoAutoItem.isData = loadCAnonStorey1.isAutoFileExists;
            this.infoAutoItem.num    = 0;
            // ISSUE: method pointer
            this.infoAutoItem.action.listActionEnter.Add(new UnityAction((object)loadCAnonStorey1, __methodptr(\u003C\u003Em__0)));
            // ISSUE: method pointer
            this.infoAutoItem.action.listActionExit.Add(new UnityAction((object)loadCAnonStorey1, __methodptr(\u003C\u003Em__1)));
            // ISSUE: reference to a compiler-generated method
            ObservableExtensions.Subscribe <Unit>((IObservable <M0>)UnityUIComponentExtensions.OnClickAsObservable(this.infoAutoItem.btnEntry), (Action <M0>) new Action <Unit>(loadCAnonStorey1.\u003C\u003Em__2));
            // ISSUE: reference to a compiler-generated method
            UnityUIComponentExtensions.SubscribeToInteractable((IObservable <bool>)ObserveExtensions.ObserveEveryValueChanged <TitleLoadScene, bool>((M0)this, (Func <M0, M1>) new Func <TitleLoadScene, bool>(loadCAnonStorey1.\u003C\u003Em__3), (FrameCountType)0, false), (Selectable)this.infoAutoItem.btnEntry);
            this.lstSaveInfo.Clear();
            this.lstSaveInfo.Add(this.infoAutoItem);
            List <Transform> transformList = new List <Transform>();

            for (int index = 0; index < this.objSaveContentParent.get_transform().get_childCount(); ++index)
            {
                transformList.Add(this.objSaveContentParent.get_transform().GetChild(index));
            }
            this.objSaveContentParent.get_transform().DetachChildren();
            using (List <Transform> .Enumerator enumerator = transformList.GetEnumerator())
            {
                while (enumerator.MoveNext())
                {
                    Object.Destroy((Object)enumerator.Current);
                }
            }
            for (int key = 0; key < this.drawFileNum; ++key)
            {
                // ISSUE: object of a compiler-generated type is created
                // ISSUE: variable of a compiler-generated type
                TitleLoadScene.\u003CStartLoad\u003Ec__AnonStorey2 loadCAnonStorey2 = new TitleLoadScene.\u003CStartLoad\u003Ec__AnonStorey2();
                // ISSUE: reference to a compiler-generated field
                loadCAnonStorey2.\u003C\u003Ef__ref\u00241 = loadCAnonStorey1;
                GameObject gameObject = (GameObject)Object.Instantiate <GameObject>((M0)this.nodeSaveButton);
                gameObject.get_transform().SetParent(this.objSaveContentParent.get_transform(), false);
                // ISSUE: reference to a compiler-generated field
                loadCAnonStorey2.info = (TitleSaveItemInfo)gameObject.GetComponent <TitleSaveItemInfo>();
                // ISSUE: reference to a compiler-generated field
                if (!Object.op_Implicit((Object)loadCAnonStorey2.info))
                {
                    Object.Destroy((Object)gameObject);
                }
                else
                {
                    // ISSUE: reference to a compiler-generated field
                    loadCAnonStorey2.isFileExists = Singleton <Game> .Instance.Data.WorldList.ContainsKey(key);

                    // ISSUE: reference to a compiler-generated field
                    // ISSUE: reference to a compiler-generated field
                    loadCAnonStorey2.info.objSave.SetActiveIfDifferent(loadCAnonStorey2.isFileExists);
                    // ISSUE: reference to a compiler-generated field
                    // ISSUE: reference to a compiler-generated field
                    loadCAnonStorey2.info.objInitialize.SetActiveIfDifferent(!loadCAnonStorey2.isFileExists);
                    // ISSUE: reference to a compiler-generated field
                    // ISSUE: reference to a compiler-generated field
                    loadCAnonStorey2.info.isData = loadCAnonStorey2.isFileExists;
                    // ISSUE: reference to a compiler-generated field
                    loadCAnonStorey2.info.num = key + 1;
                    // ISSUE: reference to a compiler-generated field
                    if (loadCAnonStorey2.isFileExists)
                    {
                        WorldData world = Singleton <Game> .Instance.Data.WorldList[key];
                        // ISSUE: reference to a compiler-generated field
                        loadCAnonStorey2.info.txtTitle.set_text(world.Name);
                        // ISSUE: reference to a compiler-generated field
                        loadCAnonStorey2.info.txtDay.set_text(world.SaveTime.ToShortDateString());
                        // ISSUE: reference to a compiler-generated field
                        loadCAnonStorey2.info.txtTime.set_text(world.SaveTime.ToLongTimeString());
                    }
                    // ISSUE: reference to a compiler-generated field
                    // ISSUE: method pointer
                    loadCAnonStorey2.info.action.listActionEnter.Add(new UnityAction((object)loadCAnonStorey2, __methodptr(\u003C\u003Em__0)));
                    // ISSUE: reference to a compiler-generated field
                    // ISSUE: method pointer
                    loadCAnonStorey2.info.action.listActionExit.Add(new UnityAction((object)loadCAnonStorey2, __methodptr(\u003C\u003Em__1)));
                    // ISSUE: reference to a compiler-generated field
                    // ISSUE: reference to a compiler-generated method
                    ObservableExtensions.Subscribe <Unit>((IObservable <M0>)UnityUIComponentExtensions.OnClickAsObservable(loadCAnonStorey2.info.btnEntry), (Action <M0>) new Action <Unit>(loadCAnonStorey2.\u003C\u003Em__2));
                    // ISSUE: reference to a compiler-generated field
                    UnityUIComponentExtensions.SubscribeToInteractable((IObservable <bool>)ObserveExtensions.ObserveEveryValueChanged <TitleLoadScene, bool>((M0)this, (Func <M0, M1>)(_ => !Singleton <Scene> .Instance.IsNowLoadingFade), (FrameCountType)0, false), (Selectable)loadCAnonStorey2.info.btnEntry);
                    // ISSUE: reference to a compiler-generated field
                    this.lstSaveInfo.Add(loadCAnonStorey2.info);
                }
            }
            // ISSUE: reference to a compiler-generated method
            ObservableExtensions.Subscribe <Unit>((IObservable <M0>)UnityUIComponentExtensions.OnClickAsObservable(this.btnLoadUIClose), (Action <M0>) new Action <Unit>(loadCAnonStorey1.\u003C\u003Em__4));
            ObservableExtensions.Subscribe <PointerEventData>((IObservable <M0>)ObservableTriggerExtensions.OnPointerEnterAsObservable((UIBehaviour)this.btnLoadUIClose), (Action <M0>)(_ => Singleton <Resources> .Instance.SoundPack.Play(SoundPack.SystemSE.Select)));
            IObservable <Unit> observable1 = (IObservable <Unit>)Observable.Where <Unit>(Observable.Where <Unit>((IObservable <M0>)ObservableTriggerExtensions.UpdateAsObservable((UnityEngine.Component) this), (Func <M0, bool>)(_ => Object.op_Equality((Object)Singleton <Game> .Instance.ExitScene, (Object)null) && Object.op_Equality((Object)Singleton <Game> .Instance.Config, (Object)null))), (Func <M0, bool>)(_ => !Singleton <Scene> .Instance.IsNowLoadingFade));
            IObservable <Unit> observable2 = (IObservable <Unit>)Observable.Where <Unit>((IObservable <M0>)observable1, (Func <M0, bool>)(_ => Input.GetMouseButtonDown(1)));

            // ISSUE: reference to a compiler-generated method
            // ISSUE: reference to a compiler-generated method
            // ISSUE: reference to a compiler-generated method
            ObservableExtensions.Subscribe <Unit>(Observable.Where <Unit>(Observable.Where <Unit>((IObservable <M0>)observable2, (Func <M0, bool>) new Func <Unit, bool>(loadCAnonStorey1.\u003C\u003Em__5)), (Func <M0, bool>) new Func <Unit, bool>(loadCAnonStorey1.\u003C\u003Em__6)), (Action <M0>) new Action <Unit>(loadCAnonStorey1.\u003C\u003Em__7));
            // ISSUE: reference to a compiler-generated method
            // ISSUE: reference to a compiler-generated method
            ObservableExtensions.Subscribe <Unit>(Observable.Where <Unit>((IObservable <M0>)observable2, (Func <M0, bool>) new Func <Unit, bool>(loadCAnonStorey1.\u003C\u003Em__8)), (Action <M0>) new Action <Unit>(loadCAnonStorey1.\u003C\u003Em__9));
            // ISSUE: reference to a compiler-generated method
            // ISSUE: reference to a compiler-generated method
            ObservableExtensions.Subscribe <Unit>(Observable.Where <Unit>((IObservable <M0>)observable2, (Func <M0, bool>) new Func <Unit, bool>(loadCAnonStorey1.\u003C\u003Em__A)), (Action <M0>) new Action <Unit>(loadCAnonStorey1.\u003C\u003Em__B));
            // ISSUE: reference to a compiler-generated method
            // ISSUE: reference to a compiler-generated method
            ObservableExtensions.Subscribe <Unit>(Observable.Where <Unit>(Observable.Where <Unit>((IObservable <M0>)observable1, (Func <M0, bool>) new Func <Unit, bool>(loadCAnonStorey1.\u003C\u003Em__C)), (Func <M0, bool>)(_ => Input.GetKeyDown((KeyCode)(int)sbyte.MaxValue))), (Action <M0>) new Action <Unit>(loadCAnonStorey1.\u003C\u003Em__D));
        }
예제 #30
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);
        }