private void OnClick()
 {
     //IL_0001: Unknown result type (might be due to invalid IL or missing references)
     //IL_0006: Expected O, but got Unknown
     if (TutorialMessage.IsActiveButton(this.get_gameObject()) && wasSetup && this.get_enabled() && null != effect)
     {
         if (isToggle)
         {
             ToggleSprite();
         }
         effectObj.SetActive(true);
         TraceActivate();
         if (null != tweenScale)
         {
             tweenScale.ResetToBeginning();
             tweenScale.PlayForward();
         }
         if (null != tweenAlpha)
         {
             tweenAlpha.ResetToBeginning();
             tweenAlpha.PlayForward();
         }
         UpdateTransform();
     }
 }
Exemplo n.º 2
0
 protected virtual void OnClick()
 {
     //IL_001c: Unknown result type (might be due to invalid IL or missing references)
     //IL_0021: Expected O, but got Unknown
     if (current == null && isEnabled && TutorialMessage.IsActiveButton(this.get_gameObject()))
     {
         current = this;
         EventDelegate.Execute(onClick);
         current = null;
     }
 }
Exemplo n.º 3
0
 protected virtual void OnPress(bool isPressed)
 {
     //IL_0001: Unknown result type (might be due to invalid IL or missing references)
     //IL_0006: Expected O, but got Unknown
     if (TutorialMessage.IsActiveButton(this.get_gameObject()))
     {
         if (isPressed)
         {
             time = 0.75f;
         }
         else
         {
             time = 0f;
         }
     }
 }
 private bool IsActiveButton()
 {
     //IL_0001: Unknown result type (might be due to invalid IL or missing references)
     //IL_0006: Expected O, but got Unknown
     if (!TutorialMessage.IsActiveButton(this.get_gameObject()))
     {
         if (eventName == "TUTORIAL_NEXT")
         {
             return(true);
         }
         if (MonoBehaviourSingleton <GameSceneManager> .I.isOpenImportantDialog || MonoBehaviourSingleton <GameSceneManager> .I.GetCurrentSectionName() == "CommonErrorDialog")
         {
             return(true);
         }
         return(false);
     }
     return(true);
 }
 private void OnPress(bool isDown)
 {
     //IL_0001: Unknown result type (might be due to invalid IL or missing references)
     //IL_0006: Expected O, but got Unknown
     //IL_002e: Unknown result type (might be due to invalid IL or missing references)
     //IL_0107: Unknown result type (might be due to invalid IL or missing references)
     //IL_0119: Unknown result type (might be due to invalid IL or missing references)
     //IL_01dc: Unknown result type (might be due to invalid IL or missing references)
     //IL_01ed: Unknown result type (might be due to invalid IL or missing references)
     //IL_01f2: Unknown result type (might be due to invalid IL or missing references)
     //IL_01f7: Unknown result type (might be due to invalid IL or missing references)
     //IL_0202: Unknown result type (might be due to invalid IL or missing references)
     //IL_0207: Expected O, but got Unknown
     //IL_0230: Unknown result type (might be due to invalid IL or missing references)
     //IL_0235: Unknown result type (might be due to invalid IL or missing references)
     //IL_023a: Unknown result type (might be due to invalid IL or missing references)
     //IL_024e: Unknown result type (might be due to invalid IL or missing references)
     //IL_0253: Unknown result type (might be due to invalid IL or missing references)
     //IL_0269: Unknown result type (might be due to invalid IL or missing references)
     if (TutorialMessage.IsActiveButton(this.get_gameObject()))
     {
         if (existsIcon && isDown && !isSimple)
         {
             this.get_gameObject().GetComponentsInChildren <ItemIcon>(true, Temporary.itemIconList);
             for (int i = 0; i < Temporary.itemIconList.Count; i++)
             {
                 if (!(Temporary.itemIconList[i].icon.mainTexture == null) && !cacheIconNames.Contains(Temporary.itemIconList[i].icon.mainTexture.get_name()))
                 {
                     Reset();
                     break;
                 }
             }
             Temporary.itemIconList.Clear();
         }
         if (isDown && !wasSetup && !isSimple)
         {
             cacheObjects = new List <CacheParam>();
             Transform val = CreateSprites(thisTransform, MonoBehaviourSingleton <UIManager> .I.buttonEffectTop, cacheObjects);
             val.set_position(thisTransform.get_position());
             Setup(val);
             this.get_gameObject().GetComponentsInChildren <ItemIcon>(true, Temporary.itemIconList);
             if (Temporary.itemIconList.Count > 0)
             {
                 cacheIconNames = new List <string>();
                 for (int j = 0; j < Temporary.itemIconList.Count; j++)
                 {
                     if (!(Temporary.itemIconList[j].icon.mainTexture == null))
                     {
                         cacheIconNames.Add(Temporary.itemIconList[j].icon.mainTexture.get_name());
                     }
                 }
                 existsIcon = true;
             }
             Temporary.itemIconList.Clear();
         }
         if (this.get_enabled())
         {
             if (!mStarted)
             {
                 Start();
             }
             TweenScale.Begin(buttonScale_tweenTarget.get_gameObject(), buttonScale_duration, (!isDown) ? buttonScale_mScale : Vector3.Scale(buttonScale_mScale, buttonScale_pressed)).method = UITweener.Method.EaseInOut;
             if (buttonScale_Collider != null)
             {
                 if (isDown)
                 {
                     buttonScale_Collider.set_size(buttonScale_ColliderSize.Div(buttonScale_pressed) + new Vector3(0.01f, 0.01f, 0.01f));
                 }
                 else
                 {
                     buttonScale_Collider.set_size(buttonScale_ColliderSize);
                 }
             }
         }
     }
 }