Beispiel #1
0
        // Token: 0x06002370 RID: 9072 RVA: 0x000775A0 File Offset: 0x000757A0
        protected override void OnVisibleChanged(EventArgs e)
        {
            base.OnVisibleChanged(e);
            if (Class500.IsRunningOnMono)
            {
                return;
            }
            if ((base.Visible && this.ShowingAnimation == Enum70.flag_0) || (!base.Visible && this.HidingAnimation == Enum70.flag_0))
            {
                return;
            }
            Enum120 @enum = base.Visible ? Enum120.flag_0 : Enum120.flag_6;
            Enum70  enum2 = base.Visible ? this.ShowingAnimation : this.HidingAnimation;

            if (enum2 == Enum70.flag_9)
            {
                if (SystemInformation.IsMenuAnimationEnabled)
                {
                    if (SystemInformation.IsMenuFadeEnabled)
                    {
                        enum2 = Enum70.flag_7;
                    }
                    else
                    {
                        enum2 = (Enum70.flag_6 | (base.Visible ? Enum70.flag_3 : Enum70.flag_4));
                    }
                }
                else
                {
                    enum2 = Enum70.flag_0;
                }
            }
            if ((enum2 & (Enum70.flag_5 | Enum70.flag_6 | Enum70.flag_7 | Enum70.flag_8)) == Enum70.flag_0)
            {
                return;
            }
            if (this.bool_0)
            {
                if ((enum2 & Enum70.flag_4) != Enum70.flag_0)
                {
                    enum2 = ((enum2 & ~Enum70.flag_4) | Enum70.flag_3);
                }
                else if ((enum2 & Enum70.flag_3) != Enum70.flag_0)
                {
                    enum2 = ((enum2 & ~Enum70.flag_3) | Enum70.flag_4);
                }
            }
            if (this.bool_1)
            {
                if ((enum2 & Enum70.flag_2) != Enum70.flag_0)
                {
                    enum2 = ((enum2 & ~Enum70.flag_2) | Enum70.flag_1);
                }
                else if ((enum2 & Enum70.flag_1) != Enum70.flag_0)
                {
                    enum2 = ((enum2 & ~Enum70.flag_1) | Enum70.flag_2);
                }
            }
            @enum |= (Enum120)((Enum70)1048575 & enum2);
            Class410.smethod_9(this);
            Class410.smethod_11(this, this.AnimationDuration, @enum);
        }