Exemplo n.º 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();
                    }
                }));
            }));
        }
        private void Start()
        {
            List <Color> baseTextMeshColor = ((IEnumerable <TextMeshProUGUI>) this.targetTextMesh).Select <TextMeshProUGUI, Color>((Func <TextMeshProUGUI, Color>)(t => ((Graphic)t).get_color())).ToList <Color>();
            List <Color> baseTextColor     = ((IEnumerable <Text>) this.targetText).Select <Text, Color>((Func <Text, Color>)(t => ((Graphic)t).get_color())).ToList <Color>();
            List <Color> baseImageColor    = ((IEnumerable <Image>) this.targetImage).Select <Image, Color>((Func <Image, Color>)(t => ((Graphic)t).get_color())).ToList <Color>();

            Color[] baseRawImageColor       = ((IEnumerable <RawImage>) this.targetRawImage).Select <RawImage, Color>((Func <RawImage, Color>)(t => ((Graphic)t).get_color())).ToArray <Color>();
            BoolReactiveProperty isInteract = new BoolReactiveProperty(((Selectable)this.flagButton).get_interactable());

            ObservableExtensions.Subscribe <bool>((IObservable <M0>)isInteract, (Action <M0>)(isOn =>
            {
                ColorBlock colors       = ((Selectable)this.flagButton).get_colors();
                List <Color> colorList1 = new List <Color>((IEnumerable <Color>)baseTextMeshColor);
                List <Color> colorList2 = new List <Color>((IEnumerable <Color>)baseTextColor);
                List <Color> colorList3 = new List <Color>((IEnumerable <Color>)baseImageColor);
                List <Color> colorList4 = new List <Color>((IEnumerable <Color>)baseRawImageColor);
                if (!isOn)
                {
                    for (int index = 0; index < this.targetTextMesh.Count; ++index)
                    {
                        colorList1[index] = new Color(Mathf.Clamp01((float)(colorList1[index].r * ((ColorBlock) ref colors).get_disabledColor().r)), Mathf.Clamp01((float)(colorList1[index].g * ((ColorBlock) ref colors).get_disabledColor().g)), Mathf.Clamp01((float)(colorList1[index].b * ((ColorBlock) ref colors).get_disabledColor().b)), Mathf.Clamp01((float)(colorList1[index].a * ((ColorBlock) ref colors).get_disabledColor().a)));
                    }
                    for (int index = 0; index < this.targetText.Count; ++index)
                    {
                        colorList2[index] = new Color(Mathf.Clamp01((float)(colorList2[index].r * ((ColorBlock) ref colors).get_disabledColor().r)), Mathf.Clamp01((float)(colorList2[index].g * ((ColorBlock) ref colors).get_disabledColor().g)), Mathf.Clamp01((float)(colorList2[index].b * ((ColorBlock) ref colors).get_disabledColor().b)), Mathf.Clamp01((float)(colorList2[index].a * ((ColorBlock) ref colors).get_disabledColor().a)));
                    }
                    for (int index = 0; index < this.targetImage.Count; ++index)
                    {
                        colorList3[index] = new Color(Mathf.Clamp01((float)(colorList3[index].r * ((ColorBlock) ref colors).get_disabledColor().r)), Mathf.Clamp01((float)(colorList3[index].g * ((ColorBlock) ref colors).get_disabledColor().g)), Mathf.Clamp01((float)(colorList3[index].b * ((ColorBlock) ref colors).get_disabledColor().b)), Mathf.Clamp01((float)(colorList3[index].a * ((ColorBlock) ref colors).get_disabledColor().a)));
                    }
                    for (int index = 0; index < this.targetRawImage.Count; ++index)
                    {
                        colorList4[index] = new Color(Mathf.Clamp01((float)(colorList4[index].r * ((ColorBlock) ref colors).get_disabledColor().r)), Mathf.Clamp01((float)(colorList4[index].g * ((ColorBlock) ref colors).get_disabledColor().g)), Mathf.Clamp01((float)(colorList4[index].b * ((ColorBlock) ref colors).get_disabledColor().b)), Mathf.Clamp01((float)(colorList4[index].a * ((ColorBlock) ref colors).get_disabledColor().a)));
                    }
                }
                for (int index = 0; index < this.targetTextMesh.Count; ++index)
                {
                    ((Graphic)this.targetTextMesh[index]).set_color(colorList1[index]);
                }
                for (int index = 0; index < this.targetText.Count; ++index)
                {
                    ((Graphic)this.targetText[index]).set_color(colorList2[index]);
                }
                for (int index = 0; index < this.targetImage.Count; ++index)
                {
                    ((Graphic)this.targetImage[index]).set_color(colorList3[index]);
                }
                for (int index = 0; index < this.targetRawImage.Count; ++index)
                {
                    ((Graphic)this.targetRawImage[index]).set_color(colorList4[index]);
                }
            }));
            ObservableExtensions.Subscribe <Unit>((IObservable <M0>)ObservableTriggerExtensions.OnEnableAsObservable((UnityEngine.Component) this), (Action <M0>)(_ => ((ReactiveProperty <bool>)isInteract).set_Value(((Selectable)this.flagButton).get_interactable())));
            ObservableExtensions.Subscribe <bool>(Observable.DistinctUntilChanged <bool>((IObservable <M0>)Observable.Select <Unit, bool>((IObservable <M0>)ObservableTriggerExtensions.UpdateAsObservable((UnityEngine.Component) this), (Func <M0, M1>)(_ => ((Selectable)this.flagButton).get_interactable()))), (Action <M0>)(interactable => ((ReactiveProperty <bool>)isInteract).set_Value(interactable)));
        }
        public void DistinctUntilChanged_ArgumentChecking()
        {
            var someObservable = Observable.Empty <int>();

            ReactiveAssert.Throws <ArgumentNullException>(() => Observable.DistinctUntilChanged <int>(null));
            ReactiveAssert.Throws <ArgumentNullException>(() => Observable.DistinctUntilChanged(null, EqualityComparer <int> .Default));
            ReactiveAssert.Throws <ArgumentNullException>(() => Observable.DistinctUntilChanged(someObservable, null));
            ReactiveAssert.Throws <ArgumentNullException>(() => Observable.DistinctUntilChanged <int, int>(null, _ => _));
            ReactiveAssert.Throws <ArgumentNullException>(() => Observable.DistinctUntilChanged <int, int>(someObservable, null));
            ReactiveAssert.Throws <ArgumentNullException>(() => Observable.DistinctUntilChanged(someObservable, _ => _, null));
            ReactiveAssert.Throws <ArgumentNullException>(() => Observable.DistinctUntilChanged <int, int>(null, _ => _, EqualityComparer <int> .Default));
            ReactiveAssert.Throws <ArgumentNullException>(() => Observable.DistinctUntilChanged(someObservable, null, EqualityComparer <int> .Default));
        }
Exemplo n.º 4
0
 protected override void Start()
 {
     base.Start();
     this._firstLabelPosition = this.LabelPoint.get_position();
     ObservableExtensions.Subscribe <int>(Observable.DistinctUntilChanged <int>((IObservable <M0>) this._commandAreaIndex), (Action <M0>)(index =>
     {
         Transform labelPoint = this.LabelPoint;
         if (Object.op_Equality((Object)labelPoint, (Object)null))
         {
             return;
         }
         if (0 <= index && !((IReadOnlyList <PetHomePoint.CommandAreaInfo>) this._commandAreaInfos).IsNullOrEmpty <PetHomePoint.CommandAreaInfo>() && index < this._commandAreaInfos.Length)
         {
             PetHomePoint.CommandAreaInfo commandAreaInfo = this._commandAreaInfos[index];
             if (commandAreaInfo != null && Object.op_Inequality((Object)commandAreaInfo.LabelPoint, (Object)null))
             {
                 labelPoint.set_position(commandAreaInfo.LabelPoint.get_position());
                 return;
             }
         }
         labelPoint.set_position(this._firstLabelPosition);
     }));
     if (!Singleton <Resources> .IsInstance())
     {
         return;
     }
     if (Object.op_Equality((Object)this._commandBasePoint, (Object)null))
     {
         GameObject loop = ((Component)this).get_transform().FindLoop(Singleton <Resources> .Instance.DefinePack.MapDefines.CommandTargetName);
         this._commandBasePoint = !Object.op_Inequality((Object)loop, (Object)null) ? ((Component)this).get_transform() : loop.get_transform();
     }
     if (Object.op_Equality((Object)this._labelPoint, (Object)null))
     {
         GameObject loop = ((Component)this).get_transform().FindLoop(Singleton <Resources> .Instance.DefinePack.MapDefines.PetHomePointLabelTargetName);
         this._labelPoint = !Object.op_Inequality((Object)loop, (Object)null) ? ((Component)this).get_transform() : loop.get_transform();
     }
     if (((IReadOnlyList <Transform>) this._rootPoints).IsNullOrEmpty <Transform>())
     {
         this.SetSizeRootPoints();
         if (((IReadOnlyList <Transform>) this._rootPoints).IsNullOrEmpty <Transform>())
         {
             this._rootPoints = new Transform[1]
             {
                 ((Component)this).get_transform()
             }
         }
         ;
     }
     this.InitializeCommandLabels();
 }
Exemplo n.º 5
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;
                }
            }));
        }
Exemplo n.º 6
0
        protected override void OnAwake(PlayerActor player)
        {
            Sprite sprite;

            Singleton <Resources> .Instance.itemIconTables.ActionIconTable.TryGetValue(Singleton <Resources> .Instance.PlayerProfile.CommonActionIconID, out sprite);

            this._cancelCommandInfo = new CommandLabel.CommandInfo()
            {
                Text             = "下ろす",
                Icon             = sprite,
                TargetSpriteInfo = (CommandTargetSpriteInfo)null,
                Transform        = (Transform)null,
                Event            = (System.Action)(() => this.ExitState())
            };
            this._uncancelableCommandInfo = new CommandLabel.CommandInfo()
            {
                Text             = (string)null,
                Icon             = (Sprite)null,
                TargetSpriteInfo = (CommandTargetSpriteInfo)null,
                Transform        = (Transform)null,
                Condition        = (Func <PlayerActor, bool>)null,
                Event            = (System.Action)(() => this.OutputWarningMessage())
            };
            player.Mode = Desire.ActionType.Onbu;
            player.CameraControl.CrossFade.FadeStart(-1f);
            AgentActor agentPartner = player.AgentPartner;

            agentPartner.Partner = (Actor)player;
            agentPartner.IsSlave = true;
            agentPartner.Animation.StopAllAnimCoroutine();
            agentPartner.BehaviorResources.ChangeMode(Desire.ActionType.Onbu);
            ((Behaviour)agentPartner.NavMeshAgent).set_enabled(false);
            player.PlayerController.CommandArea.RefreshCommands();
            if (player.PlayerController.PrevStateName == "Normal" || player.PlayerController.PrevStateName == "Houchi")
            {
                this.ActivateTransfer(player, (Actor)agentPartner);
            }
            else
            {
                this.ActivateTransferImmediate(player, (Actor)agentPartner);
            }
            this._onEndInAnimationDisposable = ObservableExtensions.Subscribe <Unit>(Observable.Take <Unit>((IObservable <M0>) this._onEndInAnimation, 1), (System.Action <M0>)(_ =>
            {
                this._activeSubjectCommandDisposable = ObservableExtensions.Subscribe <bool>(Observable.DistinctUntilChanged <bool>((IObservable <M0>) this._activeSubjectCommand), (System.Action <M0>)(isOn =>
                {
                    if (isOn)
                    {
                        if (MapUIContainer.CommandLabel.SubjectCommand == this._cancelCommandInfo)
                        {
                            return;
                        }
                        MapUIContainer.CommandLabel.SubjectCommand = this._cancelCommandInfo;
                        player.PlayerController.CommandArea.RefreshCommands();
                    }
                    else
                    {
                        if (MapUIContainer.CommandLabel.SubjectCommand == this._uncancelableCommandInfo)
                        {
                            return;
                        }
                        MapUIContainer.CommandLabel.SubjectCommand = this._uncancelableCommandInfo;
                        player.PlayerController.CommandArea.RefreshCommands();
                    }
                }));
                MapUIContainer.SetCommandLabelAcception(CommandLabel.AcceptionState.InvokeAcception);
            }));
            MapUIContainer.SetCommandLabelAcception(CommandLabel.AcceptionState.None);
            this._layer = Singleton <Resources> .Instance.DefinePack.MapDefines.HLayer;
            this._tag   = Singleton <Resources> .Instance.DefinePack.MapDefines.OnbuMeshTag;
            if (!Singleton <Manager.Map> .IsInstance())
            {
                return;
            }
            Singleton <Manager.Map> .Instance.CheckTutorialState(player);
        }
Exemplo n.º 7
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);
        }