Beispiel #1
0
 // Token: 0x06000E6F RID: 3695 RVA: 0x00073CE0 File Offset: 0x00071EE0
 public void MLOIHHQMFBN(bool KKJLPMGPNPK, bool EQIGEHEPOBH)
 {
     if (this.ILBCCCBJNCL || this.FEGOGDBFDIE)
     {
         if (EQIGEHEPOBH)
         {
             if (this.GIPNKCBQGDH == KKJLPMGPNPK)
             {
                 return;
             }
             this.GIPNKCBQGDH = KKJLPMGPNPK;
         }
         if (this.JFKMCGQGLKB && EMENMKHBPQE.CMPBKDMMHFQ == base.gameObject)
         {
             EMENMKHBPQE.CMPBKDMMHFQ = null;
         }
         int         num         = (int)(-(int)this.BFHKGNKMDCQ);
         QMDFDJEIEMO bfhkgnkmdcq = (QMDFDJEIEMO)((!KKJLPMGPNPK) ? num : ((int)this.BFHKGNKMDCQ));
         QDBCMHDINGL qdbcmhdingl = (!this.ILBCCCBJNCL) ? QDBCMHDINGL.MLOIHHQMFBN(this.FEGOGDBFDIE, this.QEFJCNPDLEE, bfhkgnkmdcq, this.DCIKFMMLEQC, this.BDDQCCPDJPP) : QDBCMHDINGL.MLOIHHQMFBN(this.ILBCCCBJNCL, this.QEFJCNPDLEE, bfhkgnkmdcq, this.DCIKFMMLEQC, this.BDDQCCPDJPP);
         if (qdbcmhdingl != null)
         {
             if (this.NPDGGFEQNLC)
             {
                 qdbcmhdingl.Reset();
             }
             for (int i = 0; i < this.KCQKMKOQLQL.Count; i++)
             {
                 EventDelegate.LHQECHHMOGD(qdbcmhdingl.KCQKMKOQLQL, new EventDelegate.LKPMKQMCHFH(this.MIPHKLNNNDK), true);
             }
         }
     }
 }
Beispiel #2
0
 // Token: 0x060011E3 RID: 4579 RVA: 0x00086B78 File Offset: 0x00084D78
 public void Set(bool state, bool notify = true)
 {
     if (this.validator != null && !this.validator(state))
     {
         return;
     }
     if (!this.mStarted)
     {
         this.mIsActive    = state;
         this.startsActive = state;
         if (this.activeSprite != null)
         {
             this.activeSprite.DIIHJCJOKMP = ((!this.invertSpriteState) ? ((!state) ? 0f : 1f) : ((!state) ? 1f : 0f));
         }
     }
     else if (this.mIsActive != state)
     {
         if (this.group != 0 && state)
         {
             int i           = 0;
             int bjgmibbegdq = UIToggle.list.BJGMIBBEGDQ;
             while (i < bjgmibbegdq)
             {
                 UIToggle uitoggle = UIToggle.list.get_KNPPMKBOGDL(i);
                 if (uitoggle != this && uitoggle.group == this.group)
                 {
                     uitoggle.Set(false, true);
                 }
                 if (UIToggle.list.BJGMIBBEGDQ != bjgmibbegdq)
                 {
                     bjgmibbegdq = UIToggle.list.BJGMIBBEGDQ;
                     i           = 0;
                 }
                 else
                 {
                     i++;
                 }
             }
         }
         this.mIsActive = state;
         if (this.activeSprite != null)
         {
             if (!this.instantTween && IKBQNBHOJJB.PBBDNDMELHQ(this))
             {
                 EPIJJNOIKEK.FJCEGFKJLCL(this.activeSprite.gameObject, 0.15f, (!this.invertSpriteState) ? ((!this.mIsActive) ? 0f : 1f) : ((!this.mIsActive) ? 1f : 0f), 0f);
             }
             else
             {
                 this.activeSprite.DIIHJCJOKMP = ((!this.invertSpriteState) ? ((!this.mIsActive) ? 0f : 1f) : ((!this.mIsActive) ? 1f : 0f));
             }
         }
         if (notify && UIToggle.current == null)
         {
             UIToggle uitoggle2 = UIToggle.current;
             UIToggle.current = this;
             if (EventDelegate.CPPLNKNPLPI(this.onChange))
             {
                 EventDelegate.CPGBBDIDOID(this.onChange);
             }
             else if (this.eventReceiver != null && !string.IsNullOrEmpty(this.functionName))
             {
                 this.eventReceiver.SendMessage(this.functionName, this.mIsActive, SendMessageOptions.DontRequireReceiver);
             }
             UIToggle.current = uitoggle2;
         }
         if (this.animator != null)
         {
             QDBCMHDINGL qdbcmhdingl = QDBCMHDINGL.MLOIHHQMFBN(this.animator, null, (!state) ? QMDFDJEIEMO.Reverse : QMDFDJEIEMO.Forward, GKKIEDPNJIF.IgnoreDisabledState, PNDJHKBEPNM.DoNotDisable);
             if (qdbcmhdingl != null && (this.instantTween || !IKBQNBHOJJB.PBBDNDMELHQ(this)))
             {
                 qdbcmhdingl.INNQKLOKBFL();
             }
         }
         else if (this.activeAnimation != null)
         {
             QDBCMHDINGL qdbcmhdingl2 = QDBCMHDINGL.MLOIHHQMFBN(this.activeAnimation, null, (!state) ? QMDFDJEIEMO.Reverse : QMDFDJEIEMO.Forward, GKKIEDPNJIF.IgnoreDisabledState, PNDJHKBEPNM.DoNotDisable);
             if (qdbcmhdingl2 != null && (this.instantTween || !IKBQNBHOJJB.PBBDNDMELHQ(this)))
             {
                 qdbcmhdingl2.INNQKLOKBFL();
             }
         }
         else if (this.tween != null)
         {
             bool flag = IKBQNBHOJJB.PBBDNDMELHQ(this);
             if (this.tween.tweenGroup != 0)
             {
                 UITweener[] componentsInChildren = this.tween.GetComponentsInChildren <UITweener>(true);
                 int         j   = 0;
                 int         num = componentsInChildren.Length;
                 while (j < num)
                 {
                     UITweener uitweener = componentsInChildren[j];
                     if (uitweener.tweenGroup == this.tween.tweenGroup)
                     {
                         uitweener.Play(state);
                         if (this.instantTween || !flag)
                         {
                             uitweener.tweenFactor = ((!state) ? 0f : 1f);
                         }
                     }
                     j++;
                 }
             }
             else
             {
                 this.tween.Play(state);
                 if (this.instantTween || !flag)
                 {
                     this.tween.tweenFactor = ((!state) ? 0f : 1f);
                 }
             }
         }
     }
 }