Files
2026-06-04 11:42:34 +02:00

2786 lines
75 KiB
C#

using System;
using System.Collections;
using UnityEngine;
using UnityEngine.UI;
// Token: 0x02000002 RID: 2
public class GUIAnimFREE : MonoBehaviour
{
// Token: 0x06000001 RID: 1 RVA: 0x00002050 File Offset: 0x00000250
private void Awake()
{
if (this == null)
{
return;
}
if (base.gameObject == null)
{
return;
}
GETween.Init(1600);
this.m_RectTransform = (RectTransform)base.transform;
this.m_MoveOriginal = this.m_RectTransform.anchoredPosition;
this.m_RotationOriginal = this.m_RectTransform.localRotation;
this.m_ScaleOriginal = base.transform.localScale;
this.m_FadeOriginal = 1f;
this.m_FadeOriginalTextOutline = 0.5f;
this.m_FadeOriginalTextShadow = 0.5f;
this.m_Image = base.gameObject.GetComponent<Image>();
this.m_Toggle = base.gameObject.GetComponent<Toggle>();
this.m_Text = base.gameObject.GetComponent<Text>();
this.m_TextOutline = base.gameObject.GetComponent<Outline>();
this.m_TextShadow = base.gameObject.GetComponent<Shadow>();
this.m_RawImage = base.gameObject.GetComponent<RawImage>();
this.m_Slider = base.gameObject.GetComponent<Slider>();
this.m_CanvasRenderer = base.gameObject.GetComponent<CanvasRenderer>();
this.m_FadeOriginal = this.GetFadeValue(base.transform);
this.m_FadeOriginalTextOutline = this.GetFadeTextOutlineValue(base.transform);
this.m_FadeOriginalTextShadow = this.GetFadeTextShadowValue(base.transform);
}
// Token: 0x06000002 RID: 2 RVA: 0x000021A8 File Offset: 0x000003A8
private void Start()
{
if (this == null)
{
return;
}
if (base.gameObject == null)
{
return;
}
if (!this.m_InitialDone)
{
this.m_InitialDone = true;
bool flag = true;
if (GUIAnimSystemFREE.Instance.m_AutoAnimation)
{
if (GUIAnimSystemFREE.Instance.m_AnimationMode == GUIAnimSystemFREE.eAnimationMode.In || GUIAnimSystemFREE.Instance.m_AnimationMode == GUIAnimSystemFREE.eAnimationMode.All)
{
if (this.m_MoveIn.Enable || this.m_RotationIn.Enable || this.m_ScaleIn.Enable || this.m_FadeIn.Enable)
{
this.MoveIn();
}
else if (this.m_ScaleLoop.Enable || this.m_FadeLoop.Enable)
{
flag = false;
this.StartMoveIdle();
}
}
else if (GUIAnimSystemFREE.Instance.m_AnimationMode == GUIAnimSystemFREE.eAnimationMode.Idle)
{
flag = false;
this.StartMoveIdle();
}
else if (GUIAnimSystemFREE.Instance.m_AnimationMode == GUIAnimSystemFREE.eAnimationMode.Out)
{
flag = false;
this.InitMoveOut();
}
else if (GUIAnimSystemFREE.Instance.m_AnimationMode == GUIAnimSystemFREE.eAnimationMode.None)
{
flag = false;
}
}
if (flag)
{
this.Reset();
}
if (GUIAnimSystemFREE.Instance.m_AutoAnimation && (GUIAnimSystemFREE.Instance.m_AnimationMode == GUIAnimSystemFREE.eAnimationMode.Out || GUIAnimSystemFREE.Instance.m_AnimationMode == GUIAnimSystemFREE.eAnimationMode.All))
{
float num = 1f;
if (GUIAnimSystemFREE.Instance.m_AnimationMode == GUIAnimSystemFREE.eAnimationMode.In || GUIAnimSystemFREE.Instance.m_AnimationMode == GUIAnimSystemFREE.eAnimationMode.All)
{
num = GUIAnimSystemFREE.Instance.m_IdleTime;
}
base.StartCoroutine(this.CoroutineMoveOut(num));
}
}
}
// Token: 0x06000003 RID: 3 RVA: 0x0000230F File Offset: 0x0000050F
private void Update()
{
}
// Token: 0x06000004 RID: 4 RVA: 0x00002314 File Offset: 0x00000514
public void Reset()
{
if (this == null)
{
return;
}
if (base.gameObject == null)
{
return;
}
if (this.m_MoveIn == null)
{
if (global::UnityEngine.Object.FindObjectOfType<GUIAnimSystemFREE>() == null)
{
GameObject gameObject = new GameObject();
gameObject.transform.localPosition = new Vector3(0f, 0f, 0f);
gameObject.name = "GUIAnimSystem";
gameObject.AddComponent<GUIAnimSystemFREE>();
GUIAnimSystemFREE.Instance = global::UnityEngine.Object.FindObjectOfType<GUIAnimSystemFREE>();
global::UnityEngine.Object.DontDestroyOnLoad(gameObject);
}
return;
}
this.m_ResetPositionDone = false;
this.InitMoveIn();
this.InitMoveOut();
this.m_ResetPositionDone = true;
base.StartCoroutine(this.Free_ResetPositionDoneFlag(0f));
this.InitRotationIn();
this.InitFadeIn();
if (this.m_ScaleIn.Enable)
{
this.InitScaleIn();
}
}
// Token: 0x06000005 RID: 5 RVA: 0x000023E0 File Offset: 0x000005E0
private IEnumerator Free_ResetPositionDoneFlag(float Delay)
{
yield return new WaitForSeconds(Delay);
if (this != null && this.gameObject != null && this.gameObject.activeSelf && this.enabled)
{
this.m_ResetPositionDone = false;
}
yield break;
}
// Token: 0x06000006 RID: 6 RVA: 0x000023F8 File Offset: 0x000005F8
public void ResetAllChildren()
{
if (this == null)
{
return;
}
if (base.gameObject == null)
{
return;
}
this.m_ResetPositionDone = false;
this.InitMoveIn();
this.InitMoveOut();
this.m_ResetPositionDone = true;
this.InitRotationIn();
this.InitFadeIn();
foreach (object obj in base.transform)
{
Transform transform = (Transform)obj;
if (transform.gameObject.activeSelf)
{
GUIAnimFREE component = transform.gameObject.GetComponent<GUIAnimFREE>();
if (component != null && component.enabled)
{
component.ResetAllChildren();
}
}
}
base.StartCoroutine(this.Free_ResetPositionDoneFlag(0f));
if (this.m_ScaleIn.Enable)
{
this.InitScaleIn();
}
}
// Token: 0x06000007 RID: 7 RVA: 0x000024E0 File Offset: 0x000006E0
private IEnumerator InitScaleIn(float Delay)
{
yield return new WaitForSeconds(Delay);
this.InitScaleIn();
yield break;
}
// Token: 0x06000008 RID: 8 RVA: 0x000024F8 File Offset: 0x000006F8
private void CalculateCameraArea()
{
if (this == null)
{
return;
}
if (base.gameObject == null)
{
return;
}
if (this.m_Parent_Canvas == null)
{
this.m_Parent_Canvas = GUIAnimSystemFREE.Instance.GetParent_Canvas(base.transform);
}
if (this.m_Parent_Canvas != null)
{
this.m_ParentCanvasRectTransform = this.m_Parent_Canvas.GetComponent<RectTransform>();
this.m_CameraRightEdge = this.m_ParentCanvasRectTransform.rect.width / 2f + this.m_TotalBounds.size.x;
this.m_CameraLeftEdge = -this.m_CameraRightEdge;
this.m_CameraTopEdge = this.m_ParentCanvasRectTransform.rect.height / 2f + this.m_TotalBounds.size.y;
this.m_CameraBottomEdge = -this.m_CameraTopEdge;
this.m_CanvasWorldTopLeft = this.m_ParentCanvasRectTransform.TransformPoint(new Vector3(this.m_CameraLeftEdge, this.m_CameraTopEdge, 0f));
this.m_CanvasWorldTopCenter = this.m_ParentCanvasRectTransform.TransformPoint(new Vector3(0f, this.m_CameraTopEdge, 0f));
this.m_CanvasWorldTopRight = this.m_ParentCanvasRectTransform.TransformPoint(new Vector3(this.m_CameraRightEdge, this.m_CameraTopEdge, 0f));
this.m_CanvasWorldMiddleLeft = this.m_ParentCanvasRectTransform.TransformPoint(new Vector3(this.m_CameraLeftEdge, 0f, 0f));
this.m_CanvasWorldMiddleCenter = this.m_ParentCanvasRectTransform.TransformPoint(new Vector3(0f, 0f, 0f));
this.m_CanvasWorldMiddleRight = this.m_ParentCanvasRectTransform.TransformPoint(new Vector3(this.m_CameraRightEdge, 0f, 0f));
this.m_CanvasWorldBottomLeft = this.m_ParentCanvasRectTransform.TransformPoint(new Vector3(this.m_CameraLeftEdge, this.m_CameraBottomEdge, 0f));
this.m_CanvasWorldBottomCenter = this.m_ParentCanvasRectTransform.TransformPoint(new Vector3(0f, this.m_CameraBottomEdge, 0f));
this.m_CanvasWorldBottomRight = this.m_ParentCanvasRectTransform.TransformPoint(new Vector3(this.m_CameraRightEdge, this.m_CameraBottomEdge, 0f));
}
}
// Token: 0x06000009 RID: 9 RVA: 0x00002738 File Offset: 0x00000938
private void InitMoveIn()
{
if (this == null)
{
return;
}
if (base.gameObject == null)
{
return;
}
if (this.m_MoveIn.Enable && !this.m_MoveIn.Done)
{
this.CalculateTotalBounds();
this.CalculateCameraArea();
RectTransform component = base.transform.parent.GetComponent<RectTransform>();
switch (this.m_MoveIn.MoveFrom)
{
case GUIAnimFREE.ePosMove.ParentPosition:
if (base.transform.parent != null)
{
this.m_MoveIn.BeginPos = new Vector3(0f, 0f, this.m_RectTransform.localPosition.z);
}
break;
case GUIAnimFREE.ePosMove.LocalPosition:
this.m_MoveIn.BeginPos = new Vector3(this.m_MoveIn.Position.x, this.m_MoveIn.Position.y, this.m_RectTransform.localPosition.z);
break;
case GUIAnimFREE.ePosMove.UpperScreenEdge:
this.m_MoveIn.BeginPos = component.InverseTransformPoint(this.m_CanvasWorldTopCenter);
this.m_MoveIn.BeginPos = new Vector3(this.m_RectTransform.localPosition.x, this.m_MoveIn.BeginPos.y, this.m_RectTransform.localPosition.z);
break;
case GUIAnimFREE.ePosMove.LeftScreenEdge:
this.m_MoveIn.BeginPos = component.InverseTransformPoint(this.m_CanvasWorldMiddleLeft);
this.m_MoveIn.BeginPos = new Vector3(this.m_MoveIn.BeginPos.x, this.m_RectTransform.localPosition.y, this.m_RectTransform.localPosition.z);
break;
case GUIAnimFREE.ePosMove.RightScreenEdge:
this.m_MoveIn.BeginPos = component.InverseTransformPoint(this.m_CanvasWorldMiddleRight);
this.m_MoveIn.BeginPos = new Vector3(this.m_MoveIn.BeginPos.x, this.m_RectTransform.localPosition.y, this.m_RectTransform.localPosition.z);
break;
case GUIAnimFREE.ePosMove.BottomScreenEdge:
this.m_MoveIn.BeginPos = component.InverseTransformPoint(this.m_CanvasWorldBottomCenter);
this.m_MoveIn.BeginPos = new Vector3(this.m_RectTransform.localPosition.x, this.m_MoveIn.BeginPos.y, this.m_RectTransform.localPosition.z);
break;
case GUIAnimFREE.ePosMove.UpperLeft:
this.m_MoveIn.BeginPos = component.InverseTransformPoint(this.m_CanvasWorldTopLeft);
this.m_MoveIn.BeginPos = new Vector3(this.m_MoveIn.BeginPos.x, this.m_MoveIn.BeginPos.y, this.m_RectTransform.localPosition.z);
break;
case GUIAnimFREE.ePosMove.UpperCenter:
this.m_MoveIn.BeginPos = component.InverseTransformPoint(this.m_CanvasWorldTopCenter);
this.m_MoveIn.BeginPos = new Vector3(this.m_MoveIn.BeginPos.x, this.m_MoveIn.BeginPos.y, this.m_RectTransform.localPosition.z);
break;
case GUIAnimFREE.ePosMove.UpperRight:
this.m_MoveIn.BeginPos = component.InverseTransformPoint(this.m_CanvasWorldTopRight);
this.m_MoveIn.BeginPos = new Vector3(this.m_MoveIn.BeginPos.x, this.m_MoveIn.BeginPos.y, this.m_RectTransform.localPosition.z);
break;
case GUIAnimFREE.ePosMove.MiddleLeft:
this.m_MoveIn.BeginPos = component.InverseTransformPoint(this.m_CanvasWorldMiddleLeft);
this.m_MoveIn.BeginPos = new Vector3(this.m_MoveIn.BeginPos.x, this.m_MoveIn.BeginPos.y, this.m_RectTransform.localPosition.z);
break;
case GUIAnimFREE.ePosMove.MiddleCenter:
this.m_MoveIn.BeginPos = component.InverseTransformPoint(this.m_CanvasWorldMiddleCenter);
this.m_MoveIn.BeginPos = new Vector3(this.m_MoveIn.BeginPos.x, this.m_MoveIn.BeginPos.y, this.m_RectTransform.localPosition.z);
break;
case GUIAnimFREE.ePosMove.MiddleRight:
this.m_MoveIn.BeginPos = component.InverseTransformPoint(this.m_CanvasWorldMiddleRight);
this.m_MoveIn.BeginPos = new Vector3(this.m_MoveIn.BeginPos.x, this.m_MoveIn.BeginPos.y, this.m_RectTransform.localPosition.z);
break;
case GUIAnimFREE.ePosMove.BottomLeft:
this.m_MoveIn.BeginPos = component.InverseTransformPoint(this.m_CanvasWorldBottomLeft);
this.m_MoveIn.BeginPos = new Vector3(this.m_MoveIn.BeginPos.x, this.m_MoveIn.BeginPos.y, this.m_RectTransform.localPosition.z);
break;
case GUIAnimFREE.ePosMove.BottomCenter:
this.m_MoveIn.BeginPos = component.InverseTransformPoint(this.m_CanvasWorldBottomCenter);
this.m_MoveIn.BeginPos = new Vector3(this.m_MoveIn.BeginPos.x, this.m_MoveIn.BeginPos.y, this.m_RectTransform.localPosition.z);
break;
case GUIAnimFREE.ePosMove.BottomRight:
this.m_MoveIn.BeginPos = component.InverseTransformPoint(this.m_CanvasWorldBottomRight);
this.m_MoveIn.BeginPos = new Vector3(this.m_MoveIn.BeginPos.x, this.m_MoveIn.BeginPos.y, this.m_RectTransform.localPosition.z);
break;
case GUIAnimFREE.ePosMove.SelfPosition:
this.m_MoveIn.BeginPos = this.m_MoveOriginal;
break;
}
this.m_RectTransform.anchoredPosition = this.m_MoveIn.BeginPos;
this.m_MoveIn.EndPos = this.m_MoveOriginal;
}
}
// Token: 0x0600000A RID: 10 RVA: 0x00002D60 File Offset: 0x00000F60
private void InitMoveOut()
{
if (this == null)
{
return;
}
if (base.gameObject == null)
{
return;
}
if (this.m_MoveOut.Enable)
{
this.CalculateTotalBounds();
this.CalculateCameraArea();
RectTransform component = base.transform.parent.GetComponent<RectTransform>();
switch (this.m_MoveOut.MoveTo)
{
case GUIAnimFREE.ePosMove.ParentPosition:
if (base.transform.parent != null)
{
this.m_MoveOut.EndPos = new Vector3(0f, 0f, this.m_RectTransform.localPosition.z);
return;
}
break;
case GUIAnimFREE.ePosMove.LocalPosition:
this.m_MoveOut.EndPos = new Vector3(this.m_MoveOut.Position.x, this.m_MoveOut.Position.y, this.m_RectTransform.localPosition.z);
return;
case GUIAnimFREE.ePosMove.UpperScreenEdge:
this.m_MoveOut.EndPos = component.InverseTransformPoint(this.m_CanvasWorldTopCenter);
this.m_MoveOut.EndPos = new Vector3(this.m_RectTransform.localPosition.x, this.m_MoveOut.EndPos.y, this.m_RectTransform.localPosition.z);
return;
case GUIAnimFREE.ePosMove.LeftScreenEdge:
this.m_MoveOut.EndPos = component.InverseTransformPoint(this.m_CanvasWorldMiddleLeft);
this.m_MoveOut.EndPos = new Vector3(this.m_MoveOut.EndPos.x, this.m_RectTransform.localPosition.y, this.m_RectTransform.localPosition.z);
return;
case GUIAnimFREE.ePosMove.RightScreenEdge:
this.m_MoveOut.EndPos = component.InverseTransformPoint(this.m_CanvasWorldMiddleRight);
this.m_MoveOut.EndPos = new Vector3(this.m_MoveOut.EndPos.x, this.m_RectTransform.localPosition.y, this.m_RectTransform.localPosition.z);
return;
case GUIAnimFREE.ePosMove.BottomScreenEdge:
this.m_MoveOut.EndPos = component.InverseTransformPoint(this.m_CanvasWorldBottomCenter);
this.m_MoveOut.EndPos = new Vector3(this.m_RectTransform.localPosition.x, this.m_MoveOut.EndPos.y, this.m_RectTransform.localPosition.z);
return;
case GUIAnimFREE.ePosMove.UpperLeft:
this.m_MoveOut.EndPos = component.InverseTransformPoint(this.m_CanvasWorldTopLeft);
this.m_MoveOut.EndPos = new Vector3(this.m_MoveOut.EndPos.x, this.m_MoveOut.EndPos.y, this.m_RectTransform.localPosition.z);
return;
case GUIAnimFREE.ePosMove.UpperCenter:
this.m_MoveOut.EndPos = component.InverseTransformPoint(this.m_CanvasWorldTopCenter);
this.m_MoveOut.EndPos = new Vector3(this.m_MoveOut.EndPos.x, this.m_MoveOut.EndPos.y, this.m_RectTransform.localPosition.z);
return;
case GUIAnimFREE.ePosMove.UpperRight:
this.m_MoveOut.EndPos = component.InverseTransformPoint(this.m_CanvasWorldTopRight);
this.m_MoveOut.EndPos = new Vector3(this.m_MoveOut.EndPos.x, this.m_MoveOut.EndPos.y, this.m_RectTransform.localPosition.z);
return;
case GUIAnimFREE.ePosMove.MiddleLeft:
this.m_MoveOut.EndPos = component.InverseTransformPoint(this.m_CanvasWorldMiddleLeft);
this.m_MoveOut.EndPos = new Vector3(this.m_MoveOut.EndPos.x, this.m_MoveOut.EndPos.y, this.m_RectTransform.localPosition.z);
return;
case GUIAnimFREE.ePosMove.MiddleCenter:
this.m_MoveOut.EndPos = component.InverseTransformPoint(this.m_CanvasWorldMiddleCenter);
this.m_MoveOut.EndPos = new Vector3(this.m_MoveOut.EndPos.x, this.m_MoveOut.EndPos.y, this.m_RectTransform.localPosition.z);
return;
case GUIAnimFREE.ePosMove.MiddleRight:
this.m_MoveOut.EndPos = component.InverseTransformPoint(this.m_CanvasWorldMiddleRight);
this.m_MoveOut.EndPos = new Vector3(this.m_MoveOut.EndPos.x, this.m_MoveOut.EndPos.y, this.m_RectTransform.localPosition.z);
return;
case GUIAnimFREE.ePosMove.BottomLeft:
this.m_MoveOut.EndPos = component.InverseTransformPoint(this.m_CanvasWorldBottomLeft);
this.m_MoveOut.EndPos = new Vector3(this.m_MoveOut.EndPos.x, this.m_MoveOut.EndPos.y, this.m_RectTransform.localPosition.z);
return;
case GUIAnimFREE.ePosMove.BottomCenter:
this.m_MoveOut.EndPos = component.InverseTransformPoint(this.m_CanvasWorldBottomCenter);
this.m_MoveOut.EndPos = new Vector3(this.m_MoveOut.EndPos.x, this.m_MoveOut.EndPos.y, this.m_RectTransform.localPosition.z);
return;
case GUIAnimFREE.ePosMove.BottomRight:
this.m_MoveOut.EndPos = component.InverseTransformPoint(this.m_CanvasWorldBottomRight);
this.m_MoveOut.EndPos = new Vector3(this.m_MoveOut.EndPos.x, this.m_MoveOut.EndPos.y, this.m_RectTransform.localPosition.z);
return;
case GUIAnimFREE.ePosMove.SelfPosition:
this.m_MoveOut.EndPos = this.m_MoveOriginal;
break;
default:
return;
}
}
}
// Token: 0x0600000B RID: 11 RVA: 0x00003314 File Offset: 0x00001514
private void InitRotationIn()
{
if (this == null)
{
return;
}
if (base.gameObject == null)
{
return;
}
if (this.m_RotationIn.Enable)
{
this.m_RotationIn.BeginRotation = this.m_RotationIn.Rotation;
this.m_RotationIn.EndRotation = this.m_RotationOriginal.eulerAngles;
}
}
// Token: 0x0600000C RID: 12 RVA: 0x00003373 File Offset: 0x00001573
private void InitScaleIn()
{
if (this == null)
{
return;
}
if (base.gameObject == null)
{
return;
}
if (this.m_ScaleIn.Enable)
{
base.transform.localScale = this.m_ScaleIn.ScaleBegin;
}
}
// Token: 0x0600000D RID: 13 RVA: 0x000033B4 File Offset: 0x000015B4
private void InitFadeIn()
{
if (this == null)
{
return;
}
if (base.gameObject == null)
{
return;
}
if (this.m_FadeIn.Enable)
{
this.RecursiveFade(base.transform, this.m_FadeIn.Fade, this.m_FadeIn.FadeChildren);
}
}
// Token: 0x0600000E RID: 14 RVA: 0x00003409 File Offset: 0x00001609
public void MoveIn()
{
if (this == null)
{
return;
}
if (base.gameObject == null)
{
return;
}
if (!base.gameObject.activeSelf)
{
return;
}
if (!base.enabled)
{
return;
}
this.MoveIn(GUIAnimSystemFREE.eGUIMove.SelfAndChildren);
}
// Token: 0x0600000F RID: 15 RVA: 0x00003444 File Offset: 0x00001644
public void MoveIn(GUIAnimSystemFREE.eGUIMove GUIMoveType)
{
if (this == null)
{
return;
}
if (base.gameObject == null)
{
return;
}
if (!base.gameObject.activeSelf)
{
return;
}
if (!base.enabled)
{
return;
}
if (GUIMoveType == GUIAnimSystemFREE.eGUIMove.Self || GUIMoveType == GUIAnimSystemFREE.eGUIMove.SelfAndChildren)
{
if (this.m_MoveIn.Enable && !this.m_MoveIn.Began)
{
this.m_MoveIn.Began = true;
this.m_MoveIn.Animating = false;
this.m_MoveIn.Done = false;
GETween.TweenValue(base.gameObject, new Action<float>(this.AnimIn_MoveUpdateByValue), 0f, 1f, this.m_MoveIn.Time / GUIAnimSystemFREE.Instance.m_GUISpeed).SetDelay(this.m_MoveIn.Delay / GUIAnimSystemFREE.Instance.m_GUISpeed).SetEase(this.GETweenEaseType(this.m_MoveIn.EaseType))
.SetOnComplete(new Action(this.AnimIn_MoveComplete))
.SetUseEstimatedTime(true);
if (this.m_MoveIn.Sounds.m_Begin != null)
{
this.PlaySoundOneShot(this.m_MoveIn.Sounds.m_Begin);
}
}
if (this.m_RotationIn.Enable && !this.m_RotationIn.Began)
{
this.m_RotationIn.Began = true;
this.m_RotationIn.Animating = false;
this.m_RotationIn.Done = false;
GETween.TweenValue(base.gameObject, new Action<float>(this.AnimIn_RotationUpdateByValue), 0f, 1f, this.m_RotationIn.Time / GUIAnimSystemFREE.Instance.m_GUISpeed).SetDelay(this.m_RotationIn.Delay / GUIAnimSystemFREE.Instance.m_GUISpeed).SetEase(this.GETweenEaseType(this.m_RotationIn.EaseType))
.SetOnComplete(new Action(this.AnimIn_RotationComplete))
.SetUseEstimatedTime(true);
if (this.m_RotationIn.Sounds.m_Begin != null)
{
this.PlaySoundOneShot(this.m_RotationIn.Sounds.m_Begin);
}
}
if (this.m_ScaleIn.Enable && !this.m_ScaleIn.Began)
{
this.m_ScaleIn.Began = true;
this.m_ScaleIn.Animating = false;
this.m_ScaleIn.Done = false;
GETween.TweenValue(base.gameObject, new Action<float>(this.AnimIn_ScaleUpdateByValue), 0f, 1f, this.m_ScaleIn.Time / GUIAnimSystemFREE.Instance.m_GUISpeed).SetDelay(this.m_ScaleIn.Delay / GUIAnimSystemFREE.Instance.m_GUISpeed).SetEase(this.GETweenEaseType(this.m_ScaleIn.EaseType))
.SetOnComplete(new Action(this.AnimIn_ScaleComplete))
.SetUseEstimatedTime(true);
if (this.m_ScaleIn.Sounds.m_Begin != null)
{
this.PlaySoundOneShot(this.m_ScaleIn.Sounds.m_Begin);
}
}
if (this.m_FadeIn.Enable && !this.m_FadeIn.Began)
{
this.m_FadeIn.Began = true;
this.m_FadeIn.Animating = false;
this.m_FadeIn.Done = false;
GETween.TweenValue(base.gameObject, new Action<float>(this.AnimIn_FadeUpdateByValue), 0f, 1f, this.m_FadeIn.Time / GUIAnimSystemFREE.Instance.m_GUISpeed).SetDelay(this.m_FadeIn.Delay / GUIAnimSystemFREE.Instance.m_GUISpeed).SetEase(this.GETweenEaseType(this.m_FadeIn.EaseType))
.SetOnComplete(new Action(this.AnimIn_FadeComplete))
.SetUseEstimatedTime(true);
if (this.m_FadeIn.Sounds.m_Begin != null)
{
this.PlaySoundOneShot(this.m_FadeIn.Sounds.m_Begin);
}
}
}
if (GUIMoveType == GUIAnimSystemFREE.eGUIMove.Children || GUIMoveType == GUIAnimSystemFREE.eGUIMove.SelfAndChildren)
{
this.RecuresiveMoveIn(base.transform);
}
}
// Token: 0x06000010 RID: 16 RVA: 0x00003878 File Offset: 0x00001A78
private void RecuresiveMoveIn(Transform tf)
{
foreach (object obj in tf)
{
Transform transform = (Transform)obj;
if (transform.gameObject.activeSelf)
{
GUIAnimFREE component = transform.gameObject.GetComponent<GUIAnimFREE>();
if (component != null && component.enabled)
{
component.MoveIn(GUIAnimSystemFREE.eGUIMove.SelfAndChildren);
}
this.RecuresiveMoveIn(transform);
}
}
}
// Token: 0x06000011 RID: 17 RVA: 0x00003900 File Offset: 0x00001B00
private void StartMoveIdle()
{
if (this == null)
{
return;
}
if (base.gameObject == null)
{
return;
}
if (!base.gameObject.activeSelf)
{
return;
}
if (!base.enabled)
{
return;
}
this.m_MoveIdle_StartSucceed = false;
this.m_MoveIdle_Attemp = 0;
this.MoveIdle();
}
// Token: 0x06000012 RID: 18 RVA: 0x00003954 File Offset: 0x00001B54
private void MoveIdle()
{
if (this == null)
{
return;
}
if (base.gameObject == null)
{
return;
}
if (!base.gameObject.activeSelf)
{
return;
}
if (!base.enabled)
{
return;
}
if (this.m_MoveIdle_StartSucceed)
{
return;
}
if (!this.m_MoveIn.Began && !this.m_RotationIn.Began)
{
if (this.m_ScaleLoop.Enable && !this.m_ScaleIn.Began)
{
this.m_MoveIdle_StartSucceed = true;
this.ScaleLoopStart(this.m_ScaleLoop.Delay);
}
if (this.m_FadeLoop.Enable && !this.m_FadeIn.Began)
{
this.m_MoveIdle_StartSucceed = true;
this.FadeLoopStart(this.m_FadeLoop.Delay);
}
}
if (!this.m_MoveIdle_StartSucceed)
{
base.StartCoroutine(this.CoroutineMoveIdle(this.m_MoveIdle_AttempMax_TimeInterval));
}
}
// Token: 0x06000013 RID: 19 RVA: 0x00003A33 File Offset: 0x00001C33
private IEnumerator CoroutineMoveIdle(float Delay)
{
yield return new WaitForSeconds(Delay);
this.m_MoveIdle_Attemp++;
if (this.m_MoveIdle_Attemp <= this.m_MoveIdle_AttempMax)
{
this.MoveIdle();
}
yield break;
}
// Token: 0x06000014 RID: 20 RVA: 0x00003A49 File Offset: 0x00001C49
public void MoveOut()
{
if (this == null)
{
return;
}
if (base.gameObject == null)
{
return;
}
if (!base.gameObject.activeSelf)
{
return;
}
if (!base.enabled)
{
return;
}
this.MoveOut(GUIAnimSystemFREE.eGUIMove.SelfAndChildren);
}
// Token: 0x06000015 RID: 21 RVA: 0x00003A82 File Offset: 0x00001C82
private IEnumerator CoroutineMoveOut(float Delay)
{
yield return new WaitForSeconds(Delay);
this.MoveOut();
yield break;
}
// Token: 0x06000016 RID: 22 RVA: 0x00003A98 File Offset: 0x00001C98
public void MoveOut(GUIAnimSystemFREE.eGUIMove GUIMoveType)
{
if (this == null)
{
return;
}
if (base.gameObject == null)
{
return;
}
if (!base.gameObject.activeSelf)
{
return;
}
if (!base.enabled)
{
return;
}
if (GUIMoveType == GUIAnimSystemFREE.eGUIMove.Self || GUIMoveType == GUIAnimSystemFREE.eGUIMove.SelfAndChildren)
{
if (this.m_ScaleLoop.Enable && this.m_ScaleLoop.Began)
{
this.m_ScaleLoop.Began = false;
this.m_ScaleLoop.Done = true;
this.StopScaleLoop();
}
if (this.m_FadeLoop.Enable && this.m_FadeLoop.Began)
{
this.m_FadeLoop.Began = false;
this.m_FadeLoop.Done = true;
this.StopFadeLoop();
}
if (this.m_MoveOut.Enable && !this.m_MoveOut.Began)
{
this.m_MoveOut.Began = true;
this.m_MoveOut.Animating = false;
this.m_MoveOut.Done = false;
this.m_MoveOut.BeginPos = this.m_RectTransform.anchoredPosition;
GETween.TweenValue(base.gameObject, new Action<float>(this.AnimOut_MoveUpdateByValue), 0f, 1f, this.m_MoveOut.Time / GUIAnimSystemFREE.Instance.m_GUISpeed).SetDelay(this.m_MoveOut.Delay / GUIAnimSystemFREE.Instance.m_GUISpeed).SetEase(this.GETweenEaseType(this.m_MoveOut.EaseType))
.SetOnComplete(new Action(this.AnimOut_MoveComplete))
.SetUseEstimatedTime(true);
if (this.m_MoveOut.Sounds.m_Begin != null)
{
this.PlaySoundOneShot(this.m_MoveOut.Sounds.m_Begin);
}
}
if (this.m_RotationOut.Enable && !this.m_RotationOut.Began)
{
this.m_RotationOut.Began = true;
this.m_RotationOut.Animating = false;
this.m_RotationOut.Done = false;
this.m_RotationOut.BeginRotation = this.m_RectTransform.localRotation.eulerAngles;
this.m_RotationOut.EndRotation = this.m_RotationOut.Rotation;
GETween.TweenValue(base.gameObject, new Action<float>(this.AnimOut_RotationUpdateByValue), 0f, 1f, this.m_RotationOut.Time / GUIAnimSystemFREE.Instance.m_GUISpeed).SetDelay(this.m_RotationOut.Delay / GUIAnimSystemFREE.Instance.m_GUISpeed).SetEase(this.GETweenEaseType(this.m_RotationOut.EaseType))
.SetOnComplete(new Action(this.AnimOut_RotationComplete))
.SetUseEstimatedTime(true);
if (this.m_RotationOut.Sounds.m_Begin != null)
{
this.PlaySoundOneShot(this.m_RotationOut.Sounds.m_Begin);
}
}
if (this.m_ScaleOut.Enable && !this.m_ScaleOut.Began)
{
this.m_ScaleOut.Began = true;
this.m_ScaleOut.Animating = false;
this.m_ScaleOut.Done = false;
this.m_ScaleOut.ScaleBegin = base.transform.localScale;
GETween.TweenValue(base.gameObject, new Action<float>(this.AnimOut_ScaleUpdateByValue), 0f, 1f, this.m_ScaleOut.Time / GUIAnimSystemFREE.Instance.m_GUISpeed).SetDelay(this.m_ScaleOut.Delay / GUIAnimSystemFREE.Instance.m_GUISpeed).SetEase(this.GETweenEaseType(this.m_ScaleOut.EaseType))
.SetOnComplete(new Action(this.AnimOut_ScaleComplete))
.SetUseEstimatedTime(true);
if (this.m_ScaleOut.Sounds.m_Begin != null)
{
this.PlaySoundOneShot(this.m_ScaleOut.Sounds.m_Begin);
}
}
if (this.m_FadeOut.Enable && !this.m_FadeOut.Began)
{
this.m_FadeOut.Began = true;
this.m_FadeOut.Animating = false;
this.m_FadeOut.Done = false;
GETween.TweenValue(base.gameObject, new Action<float>(this.AnimOut_FadeUpdateByValue), 0f, 1f, this.m_FadeOut.Time / GUIAnimSystemFREE.Instance.m_GUISpeed).SetDelay(this.m_FadeOut.Delay / GUIAnimSystemFREE.Instance.m_GUISpeed).SetEase(this.GETweenEaseType(this.m_FadeOut.EaseType))
.SetOnComplete(new Action(this.AnimOut_FadeComplete))
.SetUseEstimatedTime(true);
if (this.m_FadeOut.Sounds.m_Begin != null)
{
this.PlaySoundOneShot(this.m_FadeOut.Sounds.m_Begin);
}
}
}
if (GUIMoveType == GUIAnimSystemFREE.eGUIMove.Children || GUIMoveType == GUIAnimSystemFREE.eGUIMove.SelfAndChildren)
{
this.RecuresiveMoveOut(base.transform);
}
}
// Token: 0x06000017 RID: 23 RVA: 0x00003FA0 File Offset: 0x000021A0
private void RecuresiveMoveOut(Transform tf)
{
foreach (object obj in tf)
{
Transform transform = (Transform)obj;
if (transform.gameObject.activeSelf)
{
GUIAnimFREE component = transform.gameObject.GetComponent<GUIAnimFREE>();
if (component != null && component.enabled)
{
component.MoveOut(GUIAnimSystemFREE.eGUIMove.SelfAndChildren);
}
this.RecuresiveMoveOut(transform);
}
}
}
// Token: 0x06000018 RID: 24 RVA: 0x00004028 File Offset: 0x00002228
private void AnimIn_MoveUpdateByValue(float Value)
{
if (this == null)
{
return;
}
if (base.gameObject == null)
{
return;
}
if (!base.gameObject.activeSelf)
{
return;
}
if (!base.enabled)
{
return;
}
this.m_RectTransform.anchoredPosition = new Vector3(this.m_MoveIn.BeginPos.x + (this.m_MoveIn.EndPos.x - this.m_MoveIn.BeginPos.x) * Value, this.m_MoveIn.BeginPos.y + (this.m_MoveIn.EndPos.y - this.m_MoveIn.BeginPos.y) * Value, this.m_MoveIn.BeginPos.z + (this.m_MoveIn.EndPos.z - this.m_MoveIn.BeginPos.z) * Value);
if (!this.m_MoveIn.Animating && this.m_MoveIn.Began)
{
this.m_MoveIn.Animating = true;
if (this.m_MoveIn.Sounds.m_AfterDelay != null)
{
this.PlaySoundOneShot(this.m_MoveIn.Sounds.m_AfterDelay);
}
}
}
// Token: 0x06000019 RID: 25 RVA: 0x0000416C File Offset: 0x0000236C
private void AnimIn_MoveComplete()
{
if (this == null)
{
return;
}
if (base.gameObject == null)
{
return;
}
if (!base.gameObject.activeSelf)
{
return;
}
if (!base.enabled)
{
return;
}
if (this.m_MoveIn.Sounds.m_End != null)
{
this.PlaySoundOneShot(this.m_MoveIn.Sounds.m_End);
}
this.m_MoveIn.Began = false;
this.m_MoveIn.Animating = false;
this.m_MoveIn.Done = true;
this.m_MoveOut.Began = false;
this.m_MoveOut.Animating = false;
this.m_MoveOut.Done = false;
this.StartMoveIdle();
}
// Token: 0x0600001A RID: 26 RVA: 0x00004228 File Offset: 0x00002428
private void AnimOut_MoveUpdateByValue(float Value)
{
if (this == null)
{
return;
}
if (base.gameObject == null)
{
return;
}
if (!base.gameObject.activeSelf)
{
return;
}
if (!base.enabled)
{
return;
}
if (this.m_RectTransform == null)
{
return;
}
this.m_RectTransform.anchoredPosition = new Vector3(this.m_MoveOut.BeginPos.x + (this.m_MoveOut.EndPos.x - this.m_MoveOut.BeginPos.x) * Value, this.m_MoveOut.BeginPos.y + (this.m_MoveOut.EndPos.y - this.m_MoveOut.BeginPos.y) * Value, this.m_MoveOut.BeginPos.z + (this.m_MoveOut.EndPos.z - this.m_MoveOut.BeginPos.z) * Value);
if (!this.m_MoveOut.Animating && this.m_MoveOut.Began)
{
this.m_MoveOut.Animating = true;
if (this.m_MoveOut.Sounds.m_AfterDelay != null)
{
this.PlaySoundOneShot(this.m_MoveOut.Sounds.m_AfterDelay);
}
}
}
// Token: 0x0600001B RID: 27 RVA: 0x0000437C File Offset: 0x0000257C
private void AnimOut_MoveComplete()
{
if (this == null)
{
return;
}
if (base.gameObject == null)
{
return;
}
if (!base.gameObject.activeSelf)
{
return;
}
if (!base.enabled)
{
return;
}
if (this.m_MoveOut.Sounds.m_End != null)
{
this.PlaySoundOneShot(this.m_MoveOut.Sounds.m_End);
}
this.m_MoveIn.Began = false;
this.m_MoveIn.Animating = false;
this.m_MoveIn.Done = false;
this.m_MoveOut.Began = false;
this.m_MoveOut.Animating = false;
this.m_MoveOut.Done = true;
}
// Token: 0x0600001C RID: 28 RVA: 0x00004430 File Offset: 0x00002630
private void AnimIn_RotationUpdateByValue(float Value)
{
if (this == null)
{
return;
}
if (base.gameObject == null)
{
return;
}
if (!base.gameObject.activeSelf)
{
return;
}
if (!base.enabled)
{
return;
}
float num = this.m_RotationIn.BeginRotation.x + (this.m_RotationIn.EndRotation.x - this.m_RotationIn.BeginRotation.x) * Value;
float num2 = this.m_RotationIn.BeginRotation.y + (this.m_RotationIn.EndRotation.y - this.m_RotationIn.BeginRotation.y) * Value;
float num3 = this.m_RotationIn.BeginRotation.z + (this.m_RotationIn.EndRotation.z - this.m_RotationIn.BeginRotation.z) * Value;
this.m_RectTransform.localRotation = Quaternion.Euler(num, num2, num3);
if (!this.m_RotationIn.Animating && this.m_RotationIn.Began)
{
this.m_RotationIn.Animating = true;
if (this.m_RotationIn.Sounds.m_AfterDelay != null)
{
this.PlaySoundOneShot(this.m_RotationIn.Sounds.m_AfterDelay);
}
}
}
// Token: 0x0600001D RID: 29 RVA: 0x00004574 File Offset: 0x00002774
private void AnimIn_RotationComplete()
{
if (this == null)
{
return;
}
if (base.gameObject == null)
{
return;
}
if (!base.gameObject.activeSelf)
{
return;
}
if (!base.enabled)
{
return;
}
if (this.m_RotationIn.Sounds.m_End != null)
{
this.PlaySoundOneShot(this.m_RotationIn.Sounds.m_End);
}
this.m_RotationIn.Began = false;
this.m_RotationIn.Animating = false;
this.m_RotationIn.Done = true;
this.m_RotationOut.Began = false;
this.m_RotationOut.Animating = false;
this.m_RotationOut.Done = false;
this.AnimIn_RotationUpdateByValue(1f);
this.StartMoveIdle();
}
// Token: 0x0600001E RID: 30 RVA: 0x00004638 File Offset: 0x00002838
private void AnimOut_RotationUpdateByValue(float Value)
{
if (this == null)
{
return;
}
if (base.gameObject == null)
{
return;
}
if (!base.gameObject.activeSelf)
{
return;
}
if (!base.enabled)
{
return;
}
float num = this.m_RotationOut.BeginRotation.x + (this.m_RotationOut.EndRotation.x - this.m_RotationOut.BeginRotation.x) * Value;
float num2 = this.m_RotationOut.BeginRotation.y + (this.m_RotationOut.EndRotation.y - this.m_RotationOut.BeginRotation.y) * Value;
float num3 = this.m_RotationOut.BeginRotation.z + (this.m_RotationOut.EndRotation.z - this.m_RotationOut.BeginRotation.z) * Value;
this.m_RectTransform.localRotation = Quaternion.Euler(num, num2, num3);
if (!this.m_RotationOut.Animating && this.m_RotationOut.Began)
{
this.m_RotationOut.Animating = true;
if (this.m_RotationOut.Sounds.m_AfterDelay != null)
{
this.PlaySoundOneShot(this.m_RotationOut.Sounds.m_AfterDelay);
}
}
}
// Token: 0x0600001F RID: 31 RVA: 0x0000477C File Offset: 0x0000297C
private void AnimOut_RotationComplete()
{
if (this == null)
{
return;
}
if (base.gameObject == null)
{
return;
}
if (!base.gameObject.activeSelf)
{
return;
}
if (!base.enabled)
{
return;
}
if (this.m_RotationOut.Sounds.m_End != null)
{
this.PlaySoundOneShot(this.m_RotationOut.Sounds.m_End);
}
this.m_RotationIn.Began = false;
this.m_RotationIn.Animating = false;
this.m_RotationIn.Done = false;
this.m_RotationOut.Began = false;
this.m_RotationOut.Animating = false;
this.m_RotationOut.Done = true;
this.AnimOut_RotationUpdateByValue(1f);
}
// Token: 0x06000020 RID: 32 RVA: 0x0000483C File Offset: 0x00002A3C
private void AnimIn_ScaleUpdateByValue(float Value)
{
if (this == null)
{
return;
}
if (base.gameObject == null)
{
return;
}
if (!base.gameObject.activeSelf)
{
return;
}
if (!base.enabled)
{
return;
}
base.transform.localScale = new Vector3(this.m_ScaleIn.ScaleBegin.x * this.m_ScaleOriginal.x + (this.m_ScaleOriginal.x - this.m_ScaleIn.ScaleBegin.x * this.m_ScaleOriginal.x) * Value, this.m_ScaleIn.ScaleBegin.y * this.m_ScaleOriginal.y + (this.m_ScaleOriginal.y - this.m_ScaleIn.ScaleBegin.y * this.m_ScaleOriginal.y) * Value, this.m_ScaleIn.ScaleBegin.z * this.m_ScaleOriginal.z + (this.m_ScaleOriginal.z - this.m_ScaleIn.ScaleBegin.z * this.m_ScaleOriginal.z) * Value);
if (!this.m_ScaleIn.Animating && this.m_ScaleIn.Began)
{
this.m_ScaleIn.Animating = true;
if (this.m_ScaleIn.Sounds.m_AfterDelay != null)
{
this.PlaySoundOneShot(this.m_ScaleIn.Sounds.m_AfterDelay);
}
}
}
// Token: 0x06000021 RID: 33 RVA: 0x000049B4 File Offset: 0x00002BB4
private void AnimIn_ScaleComplete()
{
if (this == null)
{
return;
}
if (base.gameObject == null)
{
return;
}
if (!base.gameObject.activeSelf)
{
return;
}
if (!base.enabled)
{
return;
}
if (this.m_ScaleIn.Sounds.m_End != null)
{
this.PlaySoundOneShot(this.m_ScaleIn.Sounds.m_End);
}
this.m_ScaleIn.Began = false;
this.m_ScaleIn.Animating = false;
this.m_ScaleIn.Done = true;
this.m_ScaleOut.Began = false;
this.m_ScaleOut.Animating = false;
this.m_ScaleOut.Done = false;
this.AnimIn_ScaleUpdateByValue(1f);
this.StartMoveIdle();
}
// Token: 0x06000022 RID: 34 RVA: 0x00004A78 File Offset: 0x00002C78
private void AnimOut_ScaleUpdateByValue(float Value)
{
if (this == null)
{
return;
}
if (base.gameObject == null)
{
return;
}
if (!base.gameObject.activeSelf)
{
return;
}
if (!base.enabled)
{
return;
}
if (this.m_ScaleOut.ScaleBegin == this.m_ScaleOriginal)
{
base.transform.localScale = new Vector3(this.m_ScaleOut.ScaleBegin.x + (this.m_ScaleOut.ScaleEnd.x - this.m_ScaleOut.ScaleBegin.x) * Value, this.m_ScaleOut.ScaleBegin.y + (this.m_ScaleOut.ScaleEnd.y - this.m_ScaleOut.ScaleBegin.y) * Value, this.m_ScaleOut.ScaleBegin.z + (this.m_ScaleOut.ScaleEnd.z - this.m_ScaleOut.ScaleBegin.z) * Value);
}
else
{
float num = Mathf.Lerp(this.m_ScaleOut.ScaleBegin.x, this.m_ScaleOriginal.x, Value);
float num2 = Mathf.Lerp(this.m_ScaleOut.ScaleBegin.y, this.m_ScaleOriginal.y, Value);
float num3 = Mathf.Lerp(this.m_ScaleOut.ScaleBegin.z, this.m_ScaleOriginal.z, Value);
Vector3 vector = new Vector3(num, num2, num3);
base.transform.localScale = new Vector3(vector.x + (this.m_ScaleOut.ScaleEnd.x - vector.x) * Value, vector.y + (this.m_ScaleOut.ScaleEnd.y - vector.y) * Value, vector.z + (this.m_ScaleOut.ScaleEnd.z - vector.z) * Value);
}
if (!this.m_ScaleOut.Animating && this.m_ScaleOut.Began)
{
this.m_ScaleOut.Animating = true;
if (this.m_ScaleOut.Sounds.m_AfterDelay != null)
{
this.PlaySoundOneShot(this.m_ScaleOut.Sounds.m_AfterDelay);
}
}
}
// Token: 0x06000023 RID: 35 RVA: 0x00004CB8 File Offset: 0x00002EB8
private void AnimOut_ScaleComplete()
{
if (this == null)
{
return;
}
if (base.gameObject == null)
{
return;
}
if (!base.gameObject.activeSelf)
{
return;
}
if (!base.enabled)
{
return;
}
if (this.m_ScaleOut.Sounds.m_End != null)
{
this.PlaySoundOneShot(this.m_ScaleOut.Sounds.m_End);
}
this.m_ScaleIn.Began = false;
this.m_ScaleIn.Animating = false;
this.m_ScaleIn.Done = false;
this.m_ScaleOut.Began = false;
this.m_ScaleOut.Animating = false;
this.m_ScaleOut.Done = true;
this.AnimOut_ScaleUpdateByValue(1f);
}
// Token: 0x06000024 RID: 36 RVA: 0x00004D78 File Offset: 0x00002F78
private void AnimIn_FadeUpdateByValue(float Value)
{
if (this == null)
{
return;
}
if (base.gameObject == null)
{
return;
}
if (!base.gameObject.activeSelf)
{
return;
}
if (!base.enabled)
{
return;
}
float num = this.m_FadeIn.Fade + (this.m_FadeOriginal - this.m_FadeIn.Fade) * Value;
this.RecursiveFade(base.transform, num, this.m_FadeIn.FadeChildren);
if (this.m_TextOutline != null)
{
float num2 = Value - 0.75f;
if (num2 < 0f)
{
num2 = 0f;
}
if (num2 > 0f)
{
num2 *= 4f;
}
float num3 = this.m_FadeOriginalTextOutline * num2;
this.FadeTextOutline(base.transform, num3);
}
if (this.m_TextShadow != null)
{
float num4 = Value - 0.75f;
if (num4 < 0f)
{
num4 = 0f;
}
if (num4 > 0f)
{
num4 *= 4f;
}
float num5 = this.m_FadeOriginalTextShadow * num4;
this.FadeTextShadow(base.transform, num5);
}
if (!this.m_FadeIn.Animating && this.m_FadeIn.Began)
{
this.m_FadeIn.Animating = true;
if (this.m_FadeIn.Sounds.m_AfterDelay != null)
{
this.PlaySoundOneShot(this.m_FadeIn.Sounds.m_AfterDelay);
}
}
}
// Token: 0x06000025 RID: 37 RVA: 0x00004ED8 File Offset: 0x000030D8
private void AnimIn_FadeComplete()
{
if (this == null)
{
return;
}
if (base.gameObject == null)
{
return;
}
if (!base.gameObject.activeSelf)
{
return;
}
if (!base.enabled)
{
return;
}
if (this.m_FadeIn.Sounds.m_End != null)
{
this.PlaySoundOneShot(this.m_FadeIn.Sounds.m_End);
}
this.m_FadeIn.Began = false;
this.m_FadeIn.Animating = false;
this.m_FadeIn.Done = true;
this.m_FadeOut.Began = false;
this.m_FadeOut.Animating = false;
this.m_FadeOut.Done = false;
this.AnimIn_FadeUpdateByValue(1f);
this.StartMoveIdle();
}
// Token: 0x06000026 RID: 38 RVA: 0x00004F9C File Offset: 0x0000319C
private void AnimOut_FadeUpdateByValue(float Value)
{
if (this == null)
{
return;
}
if (base.gameObject == null)
{
return;
}
if (!base.gameObject.activeSelf)
{
return;
}
if (!base.enabled)
{
return;
}
float num = this.m_FadeOriginal + (this.m_FadeOut.Fade - this.m_FadeOriginal) * Value;
this.RecursiveFade(base.transform, num, this.m_FadeOut.FadeChildren);
if (this.m_TextOutline != null)
{
float num2 = Value * 3f;
if (num2 > 1f)
{
num2 = 1f;
}
float num3 = this.m_FadeOriginalTextOutline * (1f - num2);
this.FadeTextOutline(base.transform, num3);
}
if (this.m_TextShadow != null)
{
float num4 = Value * 3f;
if (num4 > 1f)
{
num4 = 1f;
}
float num5 = this.m_FadeOriginalTextShadow * (1f - num4);
this.FadeTextShadow(base.transform, num5);
}
if (!this.m_FadeOut.Animating && this.m_FadeOut.Began)
{
this.m_FadeOut.Animating = true;
if (this.m_FadeOut.Sounds.m_AfterDelay != null)
{
this.PlaySoundOneShot(this.m_FadeOut.Sounds.m_AfterDelay);
}
}
}
// Token: 0x06000027 RID: 39 RVA: 0x000050E4 File Offset: 0x000032E4
private void AnimOut_FadeComplete()
{
if (this == null)
{
return;
}
if (base.gameObject == null)
{
return;
}
if (!base.gameObject.activeSelf)
{
return;
}
if (!base.enabled)
{
return;
}
if (this.m_FadeOut.Sounds.m_End != null)
{
this.PlaySoundOneShot(this.m_FadeOut.Sounds.m_End);
}
this.m_FadeIn.Began = false;
this.m_FadeIn.Animating = false;
this.m_FadeIn.Done = false;
this.m_FadeOut.Began = false;
this.m_FadeOut.Animating = false;
this.m_FadeOut.Done = true;
this.AnimOut_FadeUpdateByValue(1f);
}
// Token: 0x06000028 RID: 40 RVA: 0x000051A4 File Offset: 0x000033A4
private void ScaleLoopStart(float delay)
{
if (this == null)
{
return;
}
if (base.gameObject == null)
{
return;
}
if (!base.gameObject.activeSelf)
{
return;
}
if (!base.enabled)
{
return;
}
this.m_ScaleLoop.Began = true;
this.m_ScaleLoop.Animating = false;
this.m_ScaleLoop.IsOverriding = false;
this.m_ScaleLoop.IsOverridingDelayTimeCount = 0f;
this.m_ScaleLoop.Done = false;
this.m_ScaleLoop.m_ScaleLast = base.transform.localScale;
this.m_GETweenScaleLoop = GETween.TweenValue(base.gameObject, new Action<float>(this.ScaleLoopUpdateByValue), 0f, 1f, this.m_ScaleLoop.Time / GUIAnimSystemFREE.Instance.m_GUISpeed).SetDelay(delay / GUIAnimSystemFREE.Instance.m_GUISpeed).SetEase(this.GETweenEaseType(this.m_ScaleLoop.EaseType))
.SetLoopPingPong()
.SetOnComplete(new Action(this.ScaleLoopComplete))
.SetUseEstimatedTime(true);
}
// Token: 0x06000029 RID: 41 RVA: 0x000052BC File Offset: 0x000034BC
private void ScaleLoopUpdateByValue(float Value)
{
if (this == null)
{
return;
}
if (base.gameObject == null)
{
return;
}
if (!base.gameObject.activeSelf)
{
return;
}
if (!base.enabled)
{
return;
}
if (this.m_ScaleLoop.m_ScaleLast != base.transform.localScale)
{
this.StopScaleLoop();
}
else
{
if (this.m_ScaleLoop.IsOverriding)
{
this.m_ScaleLoop.IsOverridingDelayTimeCount += Time.deltaTime;
if (this.m_ScaleLoop.IsOverridingDelayTimeCount > 2f)
{
this.m_ScaleLoop.IsOverridingDelayTimeCount = 0f;
this.m_ScaleLoop.IsOverriding = false;
}
}
if (!this.m_ScaleLoop.IsOverriding)
{
if (!this.m_ScaleLoop.Animating)
{
this.StartScaleLoopSound();
}
base.transform.localScale = new Vector3(this.m_ScaleLoop.Min.x * this.m_ScaleOriginal.x + (this.m_ScaleLoop.Max.x * this.m_ScaleOriginal.x - this.m_ScaleLoop.Min.x * this.m_ScaleOriginal.x) * Value, this.m_ScaleLoop.Min.y * this.m_ScaleOriginal.y + (this.m_ScaleLoop.Max.y * this.m_ScaleOriginal.y - this.m_ScaleLoop.Min.y * this.m_ScaleOriginal.y) * Value, this.m_ScaleLoop.Min.z * this.m_ScaleOriginal.z + (this.m_ScaleLoop.Max.z * this.m_ScaleOriginal.z - this.m_ScaleLoop.Min.z * this.m_ScaleOriginal.z) * Value);
}
}
this.m_ScaleLoop.m_ScaleLast = base.transform.localScale;
}
// Token: 0x0600002A RID: 42 RVA: 0x0000230F File Offset: 0x0000050F
private void ScaleLoopComplete()
{
}
// Token: 0x0600002B RID: 43 RVA: 0x000054C4 File Offset: 0x000036C4
private void StopScaleLoop()
{
if (this == null)
{
return;
}
if (base.gameObject == null)
{
return;
}
this.m_ScaleLoop.Animating = false;
this.m_ScaleLoop.IsOverriding = true;
this.m_ScaleLoop.IsOverridingDelayTimeCount = 0f;
this.m_ScaleLoop.Began = false;
this.m_ScaleLoop.Done = true;
if (this.m_GETweenScaleLoop != null)
{
this.m_GETweenScaleLoop.Cancel();
this.m_GETweenScaleLoop = null;
}
this.StopScaleLoopSound();
}
// Token: 0x0600002C RID: 44 RVA: 0x0000554C File Offset: 0x0000374C
private void FadeLoopStart(float delay)
{
if (this == null)
{
return;
}
if (base.gameObject == null)
{
return;
}
if (!base.gameObject.activeSelf)
{
return;
}
if (!base.enabled)
{
return;
}
this.m_FadeLoop.Began = true;
this.m_FadeLoop.Animating = false;
this.m_FadeLoop.IsOverriding = false;
this.m_FadeLoop.IsOverridingDelayTimeCount = 0f;
this.m_FadeLoop.Done = false;
this.m_FadeLoop.m_FadeLast = this.GetFadeValue(base.transform);
this.m_GETweenFadeLoop = GETween.TweenValue(base.gameObject, new Action<float>(this.FadeLoopUpdateByValue), 0f, 1f, this.m_FadeLoop.Time / GUIAnimSystemFREE.Instance.m_GUISpeed).SetDelay(delay / GUIAnimSystemFREE.Instance.m_GUISpeed).SetEase(this.GETweenEaseType(this.m_FadeLoop.EaseType))
.SetLoopPingPong()
.SetOnComplete(new Action(this.FadeLoopComplete))
.SetUseEstimatedTime(true);
}
// Token: 0x0600002D RID: 45 RVA: 0x00005664 File Offset: 0x00003864
private void FadeLoopUpdateByValue(float Value)
{
if (this == null)
{
return;
}
if (base.gameObject == null)
{
return;
}
if (!base.gameObject.activeSelf)
{
return;
}
if (!base.enabled)
{
return;
}
float num = this.GetFadeValue(base.transform);
if (this.m_FadeLoop.m_FadeLast != num)
{
this.StopFadeLoop();
}
else
{
if (this.m_FadeLoop.IsOverriding)
{
this.m_FadeLoop.IsOverridingDelayTimeCount += Time.deltaTime;
if (this.m_FadeLoop.IsOverridingDelayTimeCount > 2f)
{
this.m_FadeLoop.IsOverridingDelayTimeCount = 0f;
this.m_FadeLoop.IsOverriding = false;
}
}
if (!this.m_FadeLoop.IsOverriding)
{
if (!this.m_FadeLoop.Animating)
{
this.StartFadeLoopSound();
}
num = this.m_FadeLoop.Min + (this.m_FadeLoop.Max - this.m_FadeLoop.Min) * Value;
this.RecursiveFade(base.transform, num, this.m_FadeLoop.FadeChildren);
if (this.m_TextOutline != null)
{
float num2 = this.m_FadeOriginalTextOutline * Value;
if (num2 > this.m_TextOutline.effectColor.a)
{
num2 = Value - 0.75f;
if (num2 < 0f)
{
num2 = 0f;
}
if (num2 > 0f)
{
num2 *= 4f;
}
float num3 = this.m_FadeOriginalTextOutline * num2;
this.FadeTextOutline(base.transform, num3);
}
if (num2 < this.m_TextOutline.effectColor.a)
{
num2 = Value * 2f;
if (num2 > 1f)
{
num2 = 1f;
}
float num3 = this.m_FadeOriginalTextOutline * (1f - num2);
this.FadeTextOutline(base.transform, num3);
}
}
if (this.m_TextShadow != null)
{
float num4 = this.m_FadeOriginalTextShadow * Value;
if (num4 > this.m_TextShadow.effectColor.a)
{
num4 = Value - 0.75f;
if (num4 < 0f)
{
num4 = 0f;
}
if (num4 > 0f)
{
num4 *= 4f;
}
float num5 = this.m_FadeOriginalTextShadow * num4;
this.FadeTextShadow(base.transform, num5);
}
if (num4 < this.m_TextShadow.effectColor.a)
{
num4 = Value * 2f;
if (num4 > 1f)
{
num4 = 1f;
}
float num5 = this.m_FadeOriginalTextShadow * (1f - num4);
this.FadeTextShadow(base.transform, num5);
}
}
}
}
this.m_FadeLoop.m_FadeLast = num;
}
// Token: 0x0600002E RID: 46 RVA: 0x0000230F File Offset: 0x0000050F
private void FadeLoopComplete()
{
}
// Token: 0x0600002F RID: 47 RVA: 0x000058F4 File Offset: 0x00003AF4
private void StopFadeLoop()
{
if (this == null)
{
return;
}
if (base.gameObject == null)
{
return;
}
this.m_FadeLoop.Animating = false;
this.m_FadeLoop.IsOverriding = true;
this.m_FadeLoop.IsOverridingDelayTimeCount = 0f;
this.m_FadeLoop.Began = false;
this.m_FadeLoop.Done = true;
if (this.m_GETweenFadeLoop != null)
{
this.m_GETweenFadeLoop.Cancel();
this.m_GETweenFadeLoop = null;
}
this.StopFadeLoopSound();
}
// Token: 0x06000030 RID: 48 RVA: 0x0000597C File Offset: 0x00003B7C
private void PlaySoundOneShot(AudioClip pAudioClip)
{
if (this == null)
{
return;
}
if (base.gameObject == null)
{
return;
}
if (!base.gameObject.activeSelf)
{
return;
}
if (!base.enabled)
{
return;
}
AudioListener audioListener = global::UnityEngine.Object.FindObjectOfType<AudioListener>();
if (audioListener != null)
{
bool flag = false;
AudioSource[] components = audioListener.gameObject.GetComponents<AudioSource>();
if (components.Length != 0)
{
for (int i = 0; i < components.Length; i++)
{
if (!components[i].isPlaying)
{
flag = true;
components[i].PlayOneShot(pAudioClip);
break;
}
}
}
if (!flag && components.Length < 32)
{
AudioSource audioSource = audioListener.gameObject.AddComponent<AudioSource>();
audioSource.rolloffMode = AudioRolloffMode.Linear;
audioSource.playOnAwake = false;
audioSource.PlayOneShot(pAudioClip);
}
}
}
// Token: 0x06000031 RID: 49 RVA: 0x00005A28 File Offset: 0x00003C28
private IEnumerator PlaySoundOneShotWithDelay(AudioClip pAudioClip, float Delay)
{
yield return new WaitForSeconds(Delay);
this.PlaySoundOneShot(pAudioClip);
yield break;
}
// Token: 0x06000032 RID: 50 RVA: 0x00005A48 File Offset: 0x00003C48
private AudioSource PlaySoundLoop(AudioClip pAudioClip)
{
if (this == null)
{
return null;
}
if (base.gameObject == null)
{
return null;
}
if (!base.gameObject.activeSelf)
{
return null;
}
if (!base.enabled)
{
return null;
}
AudioSource audioSource = null;
AudioListener audioListener = global::UnityEngine.Object.FindObjectOfType<AudioListener>();
if (audioListener != null)
{
bool flag = false;
AudioSource[] components = audioListener.gameObject.GetComponents<AudioSource>();
if (components.Length != 0)
{
for (int i = 0; i < components.Length; i++)
{
if (!components[i].isPlaying)
{
flag = true;
audioSource = components[i];
audioSource.clip = pAudioClip;
audioSource.loop = true;
audioSource.Play();
break;
}
}
}
if (!flag && components.Length < 16)
{
audioSource = audioListener.gameObject.AddComponent<AudioSource>();
audioSource.rolloffMode = AudioRolloffMode.Linear;
audioSource.playOnAwake = false;
audioSource.clip = pAudioClip;
audioSource.loop = true;
audioSource.Play();
}
}
return audioSource;
}
// Token: 0x06000033 RID: 51 RVA: 0x00005B24 File Offset: 0x00003D24
private void StartScaleLoopSound()
{
if (this == null)
{
return;
}
if (base.gameObject == null)
{
return;
}
if (!base.gameObject.activeSelf)
{
return;
}
if (!base.enabled)
{
return;
}
if (!this.m_ScaleLoop.Animating && this.m_ScaleLoop.Sound.m_AudioClip != null)
{
this.m_ScaleLoop.Animating = true;
this.m_ScaleLoop.Sound.m_AudioSource = null;
if (this.m_ScaleLoop.Sound.m_Loop)
{
this.m_ScaleLoop.Sound.m_AudioSource = this.PlaySoundLoop(this.m_ScaleLoop.Sound.m_AudioClip);
return;
}
this.PlaySoundOneShot(this.m_ScaleLoop.Sound.m_AudioClip);
}
}
// Token: 0x06000034 RID: 52 RVA: 0x00005BF8 File Offset: 0x00003DF8
private void StopScaleLoopSound()
{
if (this == null)
{
return;
}
if (base.gameObject == null)
{
return;
}
if (this.m_ScaleLoop.Sound.m_AudioClip != null && this.m_ScaleLoop.Sound.m_AudioSource != null)
{
this.m_ScaleLoop.Sound.m_AudioSource.Stop();
this.m_ScaleLoop.Sound.m_AudioSource = null;
}
}
// Token: 0x06000035 RID: 53 RVA: 0x00005C74 File Offset: 0x00003E74
private void StartFadeLoopSound()
{
if (!this.m_FadeLoop.Animating && this.m_FadeLoop.Sound.m_AudioClip != null)
{
this.m_FadeLoop.Animating = true;
this.m_FadeLoop.Sound.m_AudioSource = null;
if (this.m_FadeLoop.Sound.m_Loop)
{
this.m_FadeLoop.Sound.m_AudioSource = this.PlaySoundLoop(this.m_FadeLoop.Sound.m_AudioClip);
return;
}
this.PlaySoundOneShot(this.m_FadeLoop.Sound.m_AudioClip);
}
}
// Token: 0x06000036 RID: 54 RVA: 0x00005D18 File Offset: 0x00003F18
private void StopFadeLoopSound()
{
if (this.m_FadeLoop.Sound.m_AudioClip != null && this.m_FadeLoop.Sound.m_AudioSource != null)
{
this.m_FadeLoop.Sound.m_AudioSource.Stop();
this.m_FadeLoop.Sound.m_AudioSource = null;
}
}
// Token: 0x06000037 RID: 55 RVA: 0x00005D7C File Offset: 0x00003F7C
private void CalculateTotalBounds()
{
this.m_TotalBounds = new Bounds(Vector3.zero, Vector3.zero);
if (this.m_Slider != null || this.m_Toggle != null || this.m_CanvasRenderer != null)
{
RectTransform component = base.gameObject.GetComponent<RectTransform>();
this.m_TotalBounds.size = new Vector3(component.rect.width, component.rect.height, 0f);
}
}
// Token: 0x06000038 RID: 56 RVA: 0x00005E05 File Offset: 0x00004005
public void ScreenResolutionChange()
{
if (this == null)
{
return;
}
if (base.gameObject == null)
{
return;
}
this.InitMoveIn();
this.InitMoveOut();
}
// Token: 0x06000039 RID: 57 RVA: 0x00005E2C File Offset: 0x0000402C
public bool IsAnimating()
{
return !(this == null) && !(base.gameObject == null) && base.gameObject.activeSelf && base.enabled && (this.m_MoveIn.Began || this.m_MoveOut.Began || this.m_RotationIn.Began || this.m_RotationOut.Began || this.m_ScaleIn.Began || this.m_ScaleOut.Began || this.m_FadeIn.Began || this.m_FadeOut.Began);
}
// Token: 0x0600003A RID: 58 RVA: 0x00005ED8 File Offset: 0x000040D8
private float GetFadeValue(Transform trans)
{
float num = 1f;
if (this.m_Image != null)
{
num = this.m_Image.color.a;
}
if (this.m_Toggle)
{
num = this.m_Toggle.GetComponentInChildren<Image>().color.a;
}
if (this.m_Text != null)
{
num = this.m_Text.color.a;
}
if (this.m_RawImage != null)
{
num = this.m_RawImage.color.a;
}
if (this.m_Slider)
{
num = this.m_Slider.colors.normalColor.a;
}
return num;
}
// Token: 0x0600003B RID: 59 RVA: 0x00005F94 File Offset: 0x00004194
private float GetFadeTextOutlineValue(Transform trans)
{
float num = 1f;
if (this.m_TextOutline != null)
{
num = this.m_TextOutline.effectColor.a;
}
return num;
}
// Token: 0x0600003C RID: 60 RVA: 0x00005FC8 File Offset: 0x000041C8
private float GetFadeTextShadowValue(Transform trans)
{
float num = 1f;
if (this.m_TextShadow != null)
{
num = this.m_TextShadow.effectColor.a;
}
return num;
}
// Token: 0x0600003D RID: 61 RVA: 0x00005FFC File Offset: 0x000041FC
private void RecursiveFade(Transform trans, float Fade, bool IsFadeChildren)
{
bool flag = false;
if (base.transform != trans)
{
GUIAnimFREE component = trans.GetComponent<GUIAnimFREE>();
if (component != null)
{
if (component.m_FadeIn.Enable && component.m_FadeIn.Began)
{
flag = true;
}
else if (component.m_FadeOut.Enable && component.m_FadeOut.Began)
{
flag = true;
}
}
}
if (!flag)
{
Image component2 = trans.gameObject.GetComponent<Image>();
if (component2 != null)
{
Image image = component2;
image.color = new Color(image.color.r, component2.color.g, component2.color.b, Fade);
}
Text component3 = trans.gameObject.GetComponent<Text>();
if (component3 != null)
{
Text text = component3;
text.color = new Color(text.color.r, component3.color.g, component3.color.b, Fade);
}
RawImage component4 = trans.gameObject.GetComponent<RawImage>();
if (component4 != null)
{
RawImage rawImage = component4;
rawImage.color = new Color(rawImage.color.r, component4.color.g, component4.color.b, Fade);
}
}
if (IsFadeChildren)
{
foreach (object obj in trans)
{
Transform transform = (Transform)obj;
if (transform.gameObject.activeSelf)
{
this.RecursiveFade(transform.transform, Fade, IsFadeChildren);
}
}
}
}
// Token: 0x0600003E RID: 62 RVA: 0x0000619C File Offset: 0x0000439C
private void FadeTextOutline(Transform trans, float FadeOutline)
{
if (this.m_TextOutline != null)
{
this.m_TextOutline.effectColor = new Color(this.m_TextOutline.effectColor.r, this.m_TextOutline.effectColor.g, this.m_TextOutline.effectColor.b, FadeOutline);
}
}
// Token: 0x0600003F RID: 63 RVA: 0x000061F8 File Offset: 0x000043F8
private void FadeTextShadow(Transform trans, float FadeShadow)
{
if (this.m_TextShadow != null)
{
this.m_TextShadow.effectColor = new Color(this.m_TextShadow.effectColor.r, this.m_TextShadow.effectColor.g, this.m_TextShadow.effectColor.b, FadeShadow);
}
}
// Token: 0x06000040 RID: 64 RVA: 0x00006254 File Offset: 0x00004454
public GETween.GETweenType GETweenEaseType(GUIAnimFREE.eEaseType easeType)
{
switch (easeType)
{
case GUIAnimFREE.eEaseType.InQuad:
return GETween.GETweenType.easeInQuad;
case GUIAnimFREE.eEaseType.OutQuad:
return GETween.GETweenType.easeOutQuad;
case GUIAnimFREE.eEaseType.InOutQuad:
return GETween.GETweenType.easeInOutQuad;
case GUIAnimFREE.eEaseType.InCubic:
return GETween.GETweenType.easeOutCubic;
case GUIAnimFREE.eEaseType.OutCubic:
return GETween.GETweenType.easeOutCubic;
case GUIAnimFREE.eEaseType.InOutCubic:
return GETween.GETweenType.easeInOutCubic;
case GUIAnimFREE.eEaseType.InQuart:
return GETween.GETweenType.easeInQuart;
case GUIAnimFREE.eEaseType.OutQuart:
return GETween.GETweenType.easeOutQuart;
case GUIAnimFREE.eEaseType.InOutQuart:
return GETween.GETweenType.easeInOutQuart;
case GUIAnimFREE.eEaseType.InQuint:
return GETween.GETweenType.easeInQuint;
case GUIAnimFREE.eEaseType.OutQuint:
return GETween.GETweenType.easeOutQuint;
case GUIAnimFREE.eEaseType.InOutQuint:
return GETween.GETweenType.easeInOutQuint;
case GUIAnimFREE.eEaseType.InSine:
return GETween.GETweenType.easeInSine;
case GUIAnimFREE.eEaseType.OutSine:
return GETween.GETweenType.easeOutSine;
case GUIAnimFREE.eEaseType.InOutSine:
return GETween.GETweenType.easeInOutSine;
case GUIAnimFREE.eEaseType.InExpo:
return GETween.GETweenType.easeInExpo;
case GUIAnimFREE.eEaseType.OutExpo:
return GETween.GETweenType.easeOutExpo;
case GUIAnimFREE.eEaseType.InOutExpo:
return GETween.GETweenType.easeInOutExpo;
case GUIAnimFREE.eEaseType.InCirc:
return GETween.GETweenType.easeInCirc;
case GUIAnimFREE.eEaseType.OutCirc:
return GETween.GETweenType.easeOutCirc;
case GUIAnimFREE.eEaseType.InOutCirc:
return GETween.GETweenType.easeInOutCirc;
case GUIAnimFREE.eEaseType.linear:
return GETween.GETweenType.linear;
case GUIAnimFREE.eEaseType.InBounce:
return GETween.GETweenType.easeInBounce;
case GUIAnimFREE.eEaseType.OutBounce:
return GETween.GETweenType.easeOutBounce;
case GUIAnimFREE.eEaseType.InOutBounce:
return GETween.GETweenType.easeInOutBounce;
case GUIAnimFREE.eEaseType.InBack:
return GETween.GETweenType.easeInBack;
case GUIAnimFREE.eEaseType.OutBack:
return GETween.GETweenType.easeOutBack;
case GUIAnimFREE.eEaseType.InOutBack:
return GETween.GETweenType.easeInOutBack;
case GUIAnimFREE.eEaseType.InElastic:
return GETween.GETweenType.easeInElastic;
case GUIAnimFREE.eEaseType.OutElastic:
return GETween.GETweenType.easeOutElastic;
case GUIAnimFREE.eEaseType.InOutElastic:
return GETween.GETweenType.easeInOutElastic;
}
return GETween.GETweenType.linear;
}
// Token: 0x04000001 RID: 1
private Canvas m_Parent_Canvas;
// Token: 0x04000002 RID: 2
[HideInInspector]
public float m_CameraLeftEdge;
// Token: 0x04000003 RID: 3
[HideInInspector]
public float m_CameraRightEdge;
// Token: 0x04000004 RID: 4
[HideInInspector]
public float m_CameraTopEdge;
// Token: 0x04000005 RID: 5
[HideInInspector]
public float m_CameraBottomEdge;
// Token: 0x04000006 RID: 6
[HideInInspector]
public Vector3 m_CanvasWorldTopLeft;
// Token: 0x04000007 RID: 7
[HideInInspector]
public Vector3 m_CanvasWorldTopCenter;
// Token: 0x04000008 RID: 8
[HideInInspector]
public Vector3 m_CanvasWorldTopRight;
// Token: 0x04000009 RID: 9
[HideInInspector]
public Vector3 m_CanvasWorldMiddleLeft;
// Token: 0x0400000A RID: 10
[HideInInspector]
public Vector3 m_CanvasWorldMiddleCenter;
// Token: 0x0400000B RID: 11
[HideInInspector]
public Vector3 m_CanvasWorldMiddleRight;
// Token: 0x0400000C RID: 12
[HideInInspector]
public Vector3 m_CanvasWorldBottomLeft;
// Token: 0x0400000D RID: 13
[HideInInspector]
public Vector3 m_CanvasWorldBottomCenter;
// Token: 0x0400000E RID: 14
[HideInInspector]
public Vector3 m_CanvasWorldBottomRight;
// Token: 0x0400000F RID: 15
[HideInInspector]
public Bounds m_TotalBounds;
// Token: 0x04000010 RID: 16
[HideInInspector]
public Vector3 m_MoveOriginal;
// Token: 0x04000011 RID: 17
[HideInInspector]
public Quaternion m_RotationOriginal;
// Token: 0x04000012 RID: 18
[HideInInspector]
public Vector3 m_ScaleOriginal;
// Token: 0x04000013 RID: 19
[HideInInspector]
public float m_FadeOriginal;
// Token: 0x04000014 RID: 20
[HideInInspector]
public float m_FadeOriginalTextOutline;
// Token: 0x04000015 RID: 21
[HideInInspector]
public float m_FadeOriginalTextShadow;
// Token: 0x04000016 RID: 22
public GUIAnimFREE.cMoveIn m_MoveIn;
// Token: 0x04000017 RID: 23
public GUIAnimFREE.cRotationIn m_RotationIn;
// Token: 0x04000018 RID: 24
public GUIAnimFREE.cScaleIn m_ScaleIn;
// Token: 0x04000019 RID: 25
public GUIAnimFREE.cFade m_FadeIn;
// Token: 0x0400001A RID: 26
private GETweenItem m_GETweenScaleLoop;
// Token: 0x0400001B RID: 27
public GUIAnimFREE.cPingPongScale m_ScaleLoop;
// Token: 0x0400001C RID: 28
private GETweenItem m_GETweenFadeLoop;
// Token: 0x0400001D RID: 29
public GUIAnimFREE.cPingPongFade m_FadeLoop;
// Token: 0x0400001E RID: 30
public GUIAnimFREE.cMoveOut m_MoveOut;
// Token: 0x0400001F RID: 31
public GUIAnimFREE.cRotationOut m_RotationOut;
// Token: 0x04000020 RID: 32
public GUIAnimFREE.cScaleOut m_ScaleOut;
// Token: 0x04000021 RID: 33
public GUIAnimFREE.cFade m_FadeOut;
// Token: 0x04000022 RID: 34
[HideInInspector]
public float m_MoveVariable;
// Token: 0x04000023 RID: 35
[HideInInspector]
public float m_RotationVariable;
// Token: 0x04000024 RID: 36
[HideInInspector]
public float m_ScaleVariable;
// Token: 0x04000025 RID: 37
[HideInInspector]
public float m_FadeVariable;
// Token: 0x04000026 RID: 38
private bool m_InitialDone;
// Token: 0x04000027 RID: 39
private bool m_ResetPositionDone;
// Token: 0x04000028 RID: 40
[HideInInspector]
private RectTransform m_RectTransform;
// Token: 0x04000029 RID: 41
private Image m_Image;
// Token: 0x0400002A RID: 42
private Toggle m_Toggle;
// Token: 0x0400002B RID: 43
private Text m_Text;
// Token: 0x0400002C RID: 44
private Outline m_TextOutline;
// Token: 0x0400002D RID: 45
private Shadow m_TextShadow;
// Token: 0x0400002E RID: 46
private RawImage m_RawImage;
// Token: 0x0400002F RID: 47
private Slider m_Slider;
// Token: 0x04000030 RID: 48
private CanvasRenderer m_CanvasRenderer;
// Token: 0x04000031 RID: 49
private RectTransform m_ParentCanvasRectTransform;
// Token: 0x04000032 RID: 50
private int m_MoveIdle_Attemp;
// Token: 0x04000033 RID: 51
private int m_MoveIdle_AttempMax = 5;
// Token: 0x04000034 RID: 52
private float m_MoveIdle_AttempMax_TimeInterval = 0.5f;
// Token: 0x04000035 RID: 53
private bool m_MoveIdle_StartSucceed;
// Token: 0x02000004 RID: 4
public enum eEaseType
{
// Token: 0x0400003E RID: 62
InQuad,
// Token: 0x0400003F RID: 63
OutQuad,
// Token: 0x04000040 RID: 64
InOutQuad,
// Token: 0x04000041 RID: 65
InCubic,
// Token: 0x04000042 RID: 66
OutCubic,
// Token: 0x04000043 RID: 67
InOutCubic,
// Token: 0x04000044 RID: 68
InQuart,
// Token: 0x04000045 RID: 69
OutQuart,
// Token: 0x04000046 RID: 70
InOutQuart,
// Token: 0x04000047 RID: 71
InQuint,
// Token: 0x04000048 RID: 72
OutQuint,
// Token: 0x04000049 RID: 73
InOutQuint,
// Token: 0x0400004A RID: 74
InSine,
// Token: 0x0400004B RID: 75
OutSine,
// Token: 0x0400004C RID: 76
InOutSine,
// Token: 0x0400004D RID: 77
InExpo,
// Token: 0x0400004E RID: 78
OutExpo,
// Token: 0x0400004F RID: 79
InOutExpo,
// Token: 0x04000050 RID: 80
InCirc,
// Token: 0x04000051 RID: 81
OutCirc,
// Token: 0x04000052 RID: 82
InOutCirc,
// Token: 0x04000053 RID: 83
linear,
// Token: 0x04000054 RID: 84
spring,
// Token: 0x04000055 RID: 85
InBounce,
// Token: 0x04000056 RID: 86
OutBounce,
// Token: 0x04000057 RID: 87
InOutBounce,
// Token: 0x04000058 RID: 88
InBack,
// Token: 0x04000059 RID: 89
OutBack,
// Token: 0x0400005A RID: 90
InOutBack,
// Token: 0x0400005B RID: 91
InElastic,
// Token: 0x0400005C RID: 92
OutElastic,
// Token: 0x0400005D RID: 93
InOutElastic
}
// Token: 0x02000005 RID: 5
public enum eAlignment
{
// Token: 0x0400005F RID: 95
Current,
// Token: 0x04000060 RID: 96
TopLeft,
// Token: 0x04000061 RID: 97
TopCenter,
// Token: 0x04000062 RID: 98
TopRight,
// Token: 0x04000063 RID: 99
LeftCenter,
// Token: 0x04000064 RID: 100
Center,
// Token: 0x04000065 RID: 101
RightCenter,
// Token: 0x04000066 RID: 102
BottomLeft,
// Token: 0x04000067 RID: 103
BottomCenter,
// Token: 0x04000068 RID: 104
BottomRight
}
// Token: 0x02000006 RID: 6
public enum ePosMove
{
// Token: 0x0400006A RID: 106
ParentPosition,
// Token: 0x0400006B RID: 107
LocalPosition,
// Token: 0x0400006C RID: 108
UpperScreenEdge,
// Token: 0x0400006D RID: 109
LeftScreenEdge,
// Token: 0x0400006E RID: 110
RightScreenEdge,
// Token: 0x0400006F RID: 111
BottomScreenEdge,
// Token: 0x04000070 RID: 112
UpperLeft,
// Token: 0x04000071 RID: 113
UpperCenter,
// Token: 0x04000072 RID: 114
UpperRight,
// Token: 0x04000073 RID: 115
MiddleLeft,
// Token: 0x04000074 RID: 116
MiddleCenter,
// Token: 0x04000075 RID: 117
MiddleRight,
// Token: 0x04000076 RID: 118
BottomLeft,
// Token: 0x04000077 RID: 119
BottomCenter,
// Token: 0x04000078 RID: 120
BottomRight,
// Token: 0x04000079 RID: 121
SelfPosition
}
// Token: 0x02000007 RID: 7
[Serializable]
public class cSounds
{
// Token: 0x0400007A RID: 122
public AudioClip m_Begin;
// Token: 0x0400007B RID: 123
public AudioClip m_AfterDelay;
// Token: 0x0400007C RID: 124
public AudioClip m_End;
}
// Token: 0x02000008 RID: 8
[Serializable]
public class cSoundsForPingPongAnim
{
// Token: 0x0400007D RID: 125
public AudioClip m_AudioClip;
// Token: 0x0400007E RID: 126
public bool m_Loop;
// Token: 0x0400007F RID: 127
[HideInInspector]
public AudioSource m_AudioSource;
}
// Token: 0x02000009 RID: 9
[Serializable]
public class cMoveIn
{
// Token: 0x04000080 RID: 128
public bool Enable;
// Token: 0x04000081 RID: 129
[HideInInspector]
public bool Began;
// Token: 0x04000082 RID: 130
[HideInInspector]
public bool Animating;
// Token: 0x04000083 RID: 131
[HideInInspector]
public bool Done;
// Token: 0x04000084 RID: 132
public GUIAnimFREE.ePosMove MoveFrom = GUIAnimFREE.ePosMove.UpperScreenEdge;
// Token: 0x04000085 RID: 133
[HideInInspector]
public Vector3 BeginPos;
// Token: 0x04000086 RID: 134
[HideInInspector]
public Vector3 EndPos;
// Token: 0x04000087 RID: 135
public Vector3 Position;
// Token: 0x04000088 RID: 136
public GUIAnimFREE.eEaseType EaseType = GUIAnimFREE.eEaseType.OutBack;
// Token: 0x04000089 RID: 137
public float Time = 1f;
// Token: 0x0400008A RID: 138
public float Delay;
// Token: 0x0400008B RID: 139
public GUIAnimFREE.cSounds Sounds;
}
// Token: 0x0200000A RID: 10
[Serializable]
public class cMoveOut
{
// Token: 0x0400008C RID: 140
public bool Enable;
// Token: 0x0400008D RID: 141
[HideInInspector]
public bool Began;
// Token: 0x0400008E RID: 142
[HideInInspector]
public bool Animating;
// Token: 0x0400008F RID: 143
[HideInInspector]
public bool Done;
// Token: 0x04000090 RID: 144
public GUIAnimFREE.ePosMove MoveTo = GUIAnimFREE.ePosMove.UpperScreenEdge;
// Token: 0x04000091 RID: 145
[HideInInspector]
public Vector3 BeginPos;
// Token: 0x04000092 RID: 146
[HideInInspector]
public Vector3 EndPos;
// Token: 0x04000093 RID: 147
public Vector3 Position;
// Token: 0x04000094 RID: 148
public GUIAnimFREE.eEaseType EaseType = GUIAnimFREE.eEaseType.InBack;
// Token: 0x04000095 RID: 149
public float Time = 1f;
// Token: 0x04000096 RID: 150
public float Delay;
// Token: 0x04000097 RID: 151
public GUIAnimFREE.cSounds Sounds;
}
// Token: 0x0200000B RID: 11
[Serializable]
public class cRotationIn
{
// Token: 0x04000098 RID: 152
public bool Enable;
// Token: 0x04000099 RID: 153
[HideInInspector]
public bool Began;
// Token: 0x0400009A RID: 154
[HideInInspector]
public bool Animating;
// Token: 0x0400009B RID: 155
[HideInInspector]
public bool Done;
// Token: 0x0400009C RID: 156
[HideInInspector]
public Vector3 BeginRotation;
// Token: 0x0400009D RID: 157
[HideInInspector]
public Vector3 EndRotation;
// Token: 0x0400009E RID: 158
public Vector3 Rotation;
// Token: 0x0400009F RID: 159
public GUIAnimFREE.eEaseType EaseType = GUIAnimFREE.eEaseType.OutBack;
// Token: 0x040000A0 RID: 160
public float Time = 1f;
// Token: 0x040000A1 RID: 161
public float Delay;
// Token: 0x040000A2 RID: 162
public GUIAnimFREE.cSounds Sounds;
}
// Token: 0x0200000C RID: 12
[Serializable]
public class cRotationOut
{
// Token: 0x040000A3 RID: 163
public bool Enable;
// Token: 0x040000A4 RID: 164
[HideInInspector]
public bool Began;
// Token: 0x040000A5 RID: 165
[HideInInspector]
public bool Animating;
// Token: 0x040000A6 RID: 166
[HideInInspector]
public bool Done;
// Token: 0x040000A7 RID: 167
[HideInInspector]
public Vector3 BeginRotation;
// Token: 0x040000A8 RID: 168
[HideInInspector]
public Vector3 EndRotation;
// Token: 0x040000A9 RID: 169
public Vector3 Rotation;
// Token: 0x040000AA RID: 170
public GUIAnimFREE.eEaseType EaseType = GUIAnimFREE.eEaseType.InBack;
// Token: 0x040000AB RID: 171
public float Time = 1f;
// Token: 0x040000AC RID: 172
public float Delay;
// Token: 0x040000AD RID: 173
public GUIAnimFREE.cSounds Sounds;
}
// Token: 0x0200000D RID: 13
[Serializable]
public class cScaleIn
{
// Token: 0x040000AE RID: 174
public bool Enable;
// Token: 0x040000AF RID: 175
[HideInInspector]
public bool Began;
// Token: 0x040000B0 RID: 176
[HideInInspector]
public bool Animating;
// Token: 0x040000B1 RID: 177
[HideInInspector]
public bool Done;
// Token: 0x040000B2 RID: 178
public Vector3 ScaleBegin = new Vector3(0f, 0f, 0f);
// Token: 0x040000B3 RID: 179
public GUIAnimFREE.eEaseType EaseType = GUIAnimFREE.eEaseType.OutBack;
// Token: 0x040000B4 RID: 180
public float Time = 1f;
// Token: 0x040000B5 RID: 181
public float Delay;
// Token: 0x040000B6 RID: 182
public GUIAnimFREE.cSounds Sounds;
}
// Token: 0x0200000E RID: 14
[Serializable]
public class cScaleOut
{
// Token: 0x040000B7 RID: 183
public bool Enable;
// Token: 0x040000B8 RID: 184
[HideInInspector]
public bool Began;
// Token: 0x040000B9 RID: 185
[HideInInspector]
public bool Animating;
// Token: 0x040000BA RID: 186
[HideInInspector]
public bool Done;
// Token: 0x040000BB RID: 187
[HideInInspector]
public Vector3 ScaleBegin = new Vector3(1f, 1f, 1f);
// Token: 0x040000BC RID: 188
public Vector3 ScaleEnd = new Vector3(0f, 0f, 0f);
// Token: 0x040000BD RID: 189
public GUIAnimFREE.eEaseType EaseType = GUIAnimFREE.eEaseType.InBack;
// Token: 0x040000BE RID: 190
public float Time = 1f;
// Token: 0x040000BF RID: 191
public float Delay;
// Token: 0x040000C0 RID: 192
public GUIAnimFREE.cSounds Sounds;
}
// Token: 0x0200000F RID: 15
[Serializable]
public class cFade
{
// Token: 0x040000C1 RID: 193
public bool Enable;
// Token: 0x040000C2 RID: 194
[HideInInspector]
public bool Began;
// Token: 0x040000C3 RID: 195
[HideInInspector]
public bool Animating;
// Token: 0x040000C4 RID: 196
[HideInInspector]
public bool Done;
// Token: 0x040000C5 RID: 197
[HideInInspector]
public float Fade;
// Token: 0x040000C6 RID: 198
public GUIAnimFREE.eEaseType EaseType = GUIAnimFREE.eEaseType.linear;
// Token: 0x040000C7 RID: 199
public float Time = 1f;
// Token: 0x040000C8 RID: 200
public float Delay;
// Token: 0x040000C9 RID: 201
public bool FadeChildren;
// Token: 0x040000CA RID: 202
public GUIAnimFREE.cSounds Sounds;
}
// Token: 0x02000010 RID: 16
[Serializable]
public class cPingPongScale
{
// Token: 0x040000CB RID: 203
public bool Enable;
// Token: 0x040000CC RID: 204
[HideInInspector]
public bool Began;
// Token: 0x040000CD RID: 205
[HideInInspector]
public bool Animating;
// Token: 0x040000CE RID: 206
[HideInInspector]
public bool IsOverriding;
// Token: 0x040000CF RID: 207
[HideInInspector]
public float IsOverridingDelayTimeCount;
// Token: 0x040000D0 RID: 208
[HideInInspector]
public bool Done;
// Token: 0x040000D1 RID: 209
[HideInInspector]
public Vector3 m_ScaleLast;
// Token: 0x040000D2 RID: 210
public Vector3 Min = new Vector3(1f, 1f, 1f);
// Token: 0x040000D3 RID: 211
public Vector3 Max = new Vector3(1.05f, 1.05f, 1.05f);
// Token: 0x040000D4 RID: 212
public GUIAnimFREE.eEaseType EaseType = GUIAnimFREE.eEaseType.linear;
// Token: 0x040000D5 RID: 213
public float Time = 1f;
// Token: 0x040000D6 RID: 214
public float Delay;
// Token: 0x040000D7 RID: 215
public GUIAnimFREE.cSoundsForPingPongAnim Sound;
}
// Token: 0x02000011 RID: 17
[Serializable]
public class cPingPongFade
{
// Token: 0x040000D8 RID: 216
public bool Enable;
// Token: 0x040000D9 RID: 217
[HideInInspector]
public bool Began;
// Token: 0x040000DA RID: 218
[HideInInspector]
public bool Animating;
// Token: 0x040000DB RID: 219
[HideInInspector]
public bool IsOverriding;
// Token: 0x040000DC RID: 220
[HideInInspector]
public float IsOverridingDelayTimeCount;
// Token: 0x040000DD RID: 221
[HideInInspector]
public bool Done;
// Token: 0x040000DE RID: 222
[HideInInspector]
public float m_FadeLast;
// Token: 0x040000DF RID: 223
public float Min;
// Token: 0x040000E0 RID: 224
public float Max = 1f;
// Token: 0x040000E1 RID: 225
public GUIAnimFREE.eEaseType EaseType = GUIAnimFREE.eEaseType.linear;
// Token: 0x040000E2 RID: 226
public float Time = 1f;
// Token: 0x040000E3 RID: 227
public float Delay;
// Token: 0x040000E4 RID: 228
public bool FadeChildren;
// Token: 0x040000E5 RID: 229
public GUIAnimFREE.cSoundsForPingPongAnim Sound;
}
}