Files
niko c12fbe3fc6 m
2026-04-12 16:51:38 +02:00

176 lines
5.1 KiB
C#

using System;
using Cpp2IlInjected;
using UnityEngine;
using UnityEngine.UI;
namespace RRUI.Animation
{
// Token: 0x020010FD RID: 4349
[Token(Token = "0x20010FD")]
[MMOINKHEKJF("Color/Match", "Tween from the current Image color to the target's Image color")]
[Serializable]
public class ColorMatchTransition : ColorTransition, GMDGMBMDFJG
{
// Token: 0x17001075 RID: 4213
// (get) Token: 0x06006147 RID: 24903 RVA: 0x001530C0 File Offset: 0x001512C0
[Token(Token = "0x17001075")]
private Graphic TargetGraphic
{
[Token(Token = "0x6006147")]
[Address(RVA = "0x1BBE190", Offset = "0x1BBD190", VA = "0x181BBE190")]
get
{
Graphic graphic = this.targetGraphic;
int num = 0;
if (graphic == num)
{
GameObject gameObject = this.target;
int num2 = 0;
if (gameObject != num2)
{
Graphic component = this.target.GetComponent<Graphic>();
this.targetGraphic = component;
}
}
return this.targetGraphic;
}
}
// Token: 0x17001076 RID: 4214
// (get) Token: 0x06006148 RID: 24904 RVA: 0x00153114 File Offset: 0x00151314
[Token(Token = "0x17001076")]
protected override Color TargetColor
{
[Token(Token = "0x6006148")]
[Address(RVA = "0x1BBE090", Offset = "0x1BBD090", VA = "0x181BBE090", Slot = "8")]
get
{
int num = 0;
bool flag;
bool flag2;
if (!flag || flag2)
{
}
if (num != 0)
{
}
Color white = Color.white;
throw new NullReferenceException();
}
}
// Token: 0x06006149 RID: 24905 RVA: 0x0015313C File Offset: 0x0015133C
[Token(Token = "0x6006149")]
[Address(RVA = "0x1BBDF70", Offset = "0x1BBCF70", VA = "0x181BBDF70", Slot = "4")]
protected override void Initialize()
{
GameObject gameObject = this.<MonoBehaviour>k__BackingField.gameObject;
Graphic component = this.gameObjectOverride.GetComponent<Graphic>();
this.graphic = component;
Transition transition = this.fallbackTransition;
MonoBehaviour <MonoBehaviour>k__BackingField = this.<MonoBehaviour>k__BackingField;
transition.OFFLOPLJBBG(<MonoBehaviour>k__BackingField);
}
// Token: 0x0600614A RID: 24906 RVA: 0x00153188 File Offset: 0x00151388
[Token(Token = "0x600614A")]
[Address(RVA = "0x1BBDCF0", Offset = "0x1BBCCF0", VA = "0x181BBDCF0", Slot = "5")]
protected override void Dispose()
{
TransitionImplementation implementation = this.fallbackTransition.implementation;
if (implementation != 0)
{
if (implementation.currentAnimation != 0)
{
}
implementation.currentAnimation = (ulong)0L;
PIPDAMDIAPC pipdamdiapc = implementation.Execute();
return;
}
}
// Token: 0x0600614B RID: 24907 RVA: 0x001531C8 File Offset: 0x001513C8
[Token(Token = "0x600614B")]
[Address(RVA = "0x1BBE020", Offset = "0x1BBD020", VA = "0x181BBE020", Slot = "7")]
public override void Reset()
{
Graphic graphic = this.graphic;
Color cachedColor = this.cachedColor;
Color color = graphic.color;
TransitionImplementation implementation = this.fallbackTransition.implementation;
if (implementation != 0)
{
PIPDAMDIAPC pipdamdiapc = implementation.Execute();
return;
}
}
// Token: 0x0600614C RID: 24908 RVA: 0x0015320C File Offset: 0x0015140C
[Token(Token = "0x600614C")]
[Address(RVA = "0x1BBE010", Offset = "0x1BBD010", VA = "0x181BBE010", Slot = "9")]
public void MAIIBAGFDKF(GameObject DOJCFCINALC)
{
this.target = DOJCFCINALC;
this.targetGraphic = (ulong)0L;
}
// Token: 0x0600614D RID: 24909 RVA: 0x0015322C File Offset: 0x0015142C
[Token(Token = "0x600614D")]
[Address(RVA = "0x1BBDD70", Offset = "0x1BBCD70", VA = "0x181BBDD70", Slot = "6")]
protected override PIPDAMDIAPC Execute()
{
GameObject gameObject = this.target;
int num = 0;
if (gameObject != num)
{
Func<Color> func = new Func(base.BHCCBDJPJBB);
Action<Color> action = new Action(base.GFEMEFKMCAA);
HMIPJEAODAB.JOMGGPNCMFK easeFunction = this.easeFunction;
MonoBehaviour <MonoBehaviour>k__BackingField = this.<MonoBehaviour>k__BackingField;
}
if (this.useFallback)
{
return this.fallbackTransition.DCCBNDIOOGE();
}
throw new NullReferenceException();
}
// Token: 0x0600614E RID: 24910 RVA: 0x00153290 File Offset: 0x00151490
[Token(Token = "0x600614E")]
[Address(RVA = "0x1BBDCB0", Offset = "0x1BBCCB0", VA = "0x181BBDCB0")]
public ColorMatchTransition()
{
Color white = Color.white;
this.duration = 0.33f;
this.easeFunction = (HMIPJEAODAB.JOMGGPNCMFK)((ulong)3L);
this.isWorldCanvas = true;
base..ctor();
}
// Token: 0x0400401B RID: 16411
[FieldOffset(Offset = "0x70")]
[Token(Token = "0x400401B")]
[SerializeField]
private GameObject target;
// Token: 0x0400401C RID: 16412
[FieldOffset(Offset = "0x78")]
[Token(Token = "0x400401C")]
[SerializeField]
[Tooltip("Fallback Transition if the Target is null")]
private bool useFallback;
// Token: 0x0400401D RID: 16413
[FieldOffset(Offset = "0x80")]
[Token(Token = "0x400401D")]
[SerializeField]
[JEAMMEGEDDJ("useFallback")]
private Transition fallbackTransition;
// Token: 0x0400401E RID: 16414
[FieldOffset(Offset = "0x88")]
[Token(Token = "0x400401E")]
private Graphic targetGraphic;
}
}