302 lines
13 KiB
C#
302 lines
13 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Runtime.CompilerServices;
|
|
using Cpp2IlInjected;
|
|
using RecRoom.Core;
|
|
using UnityEngine;
|
|
|
|
namespace RecRoom.UI
|
|
{
|
|
// Token: 0x02002AAA RID: 10922
|
|
[Token(Token = "0x2002AAA")]
|
|
[DisallowMultipleComponent]
|
|
[RequireComponent(typeof(CanvasGroup))]
|
|
public class ScreenHUDElementGroup : MonoBehaviour
|
|
{
|
|
// Token: 0x170032BE RID: 12990
|
|
// (get) Token: 0x0601227E RID: 74366 RVA: 0x0041D2B0 File Offset: 0x0041B4B0
|
|
[Token(Token = "0x170032BE")]
|
|
private bool MBMNBDENKDF
|
|
{
|
|
[Token(Token = "0x601227E")]
|
|
[Address(RVA = "0x1AA4360", Offset = "0x1AA3360", VA = "0x181AA4360")]
|
|
get
|
|
{
|
|
while (this.GIDKNPDPEBB != 0)
|
|
{
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x170032BF RID: 12991
|
|
// (get) Token: 0x0601227F RID: 74367 RVA: 0x0041D2C8 File Offset: 0x0041B4C8
|
|
[Token(Token = "0x170032BF")]
|
|
private float GEMGMNKOBEC
|
|
{
|
|
[Token(Token = "0x601227F")]
|
|
[Address(RVA = "0x1AA45C0", Offset = "0x1AA35C0", VA = "0x181AA45C0")]
|
|
get
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0601227F)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Single RecRoom.UI.ScreenHUDElementGroup::GHHOJEIFAFC()
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
IL_00:
|
|
brtrue(IL_00, logicnot:bool(ldfld:bool(ScreenHUDElementGroup::ENPNEBBIABJ, ldloc:ScreenHUDElementGroup(this))))
|
|
}
|
|
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
|
--- End of inner exception stack trace ---
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
|
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
|
*/;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06012280 RID: 74368 RVA: 0x0041D2E0 File Offset: 0x0041B4E0
|
|
[Token(Token = "0x6012280")]
|
|
[Address(RVA = "0x1AA41C0", Offset = "0x1AA31C0", VA = "0x181AA41C0")]
|
|
protected void Awake()
|
|
{
|
|
if (this.fadeInOnActivate)
|
|
{
|
|
ScreenHUDElement[] components = base.GetComponents<ScreenHUDElement>();
|
|
this.ICKLHIMJNNO = components;
|
|
int num = 0;
|
|
int length = components.Length;
|
|
if (num < length)
|
|
{
|
|
MFBGLIHGCGO<bool> activeChanged = components[num].ActiveChanged;
|
|
Action<bool> action = new Action(this.CLJNHJHHAAI);
|
|
num++;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06012281 RID: 74369 RVA: 0x0041D338 File Offset: 0x0041B538
|
|
[Token(Token = "0x6012281")]
|
|
[Address(RVA = "0x1AA46F0", Offset = "0x1AA36F0", VA = "0x181AA46F0")]
|
|
protected void OnDestroy()
|
|
{
|
|
ScreenHUDElement[] icklhimjnno = this.ICKLHIMJNNO;
|
|
if (icklhimjnno != 0)
|
|
{
|
|
int num = 0;
|
|
int length = icklhimjnno.Length;
|
|
if (num < length)
|
|
{
|
|
MFBGLIHGCGO<bool> activeChanged = icklhimjnno[num].ActiveChanged;
|
|
Action<bool> action = new Action(this.CLJNHJHHAAI);
|
|
num++;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06012282 RID: 74370 RVA: 0x0041D384 File Offset: 0x0041B584
|
|
[Token(Token = "0x6012282")]
|
|
[Address(RVA = "0x1AA42C0", Offset = "0x1AA32C0", VA = "0x181AA42C0")]
|
|
private void CLJNHJHHAAI(bool CBHMNNAINHM)
|
|
{
|
|
if (CBHMNNAINHM)
|
|
{
|
|
if (this.GIDKNPDPEBB != 0)
|
|
{
|
|
}
|
|
this.DPFPGDLMDDO = 0f;
|
|
int num = 0;
|
|
this.LCDNIEGNLHG((float)num);
|
|
if (this.ENPNEBBIABJ)
|
|
{
|
|
this.FadeAlpha(1f);
|
|
return;
|
|
}
|
|
this.FadeAlpha(0.35f);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06012283 RID: 74371 RVA: 0x0041D3D4 File Offset: 0x0041B5D4
|
|
[Token(Token = "0x6012283")]
|
|
[Address(RVA = "0x1AA4840", Offset = "0x1AA3840", VA = "0x181AA4840")]
|
|
public void SetEnabled(bool KMOBPHAEFED)
|
|
{
|
|
this.ENPNEBBIABJ = KMOBPHAEFED;
|
|
if (this.GIDKNPDPEBB == 0)
|
|
{
|
|
}
|
|
if (this.ENPNEBBIABJ)
|
|
{
|
|
}
|
|
if (this.GIDKNPDPEBB != 0)
|
|
{
|
|
}
|
|
this.DPFPGDLMDDO = 0.35f;
|
|
this.LCDNIEGNLHG(0.35f);
|
|
}
|
|
|
|
// Token: 0x06012284 RID: 74372 RVA: 0x0041D438 File Offset: 0x0041B638
|
|
[Token(Token = "0x6012284")]
|
|
[Address(RVA = "0x1AA47D0", Offset = "0x1AA37D0", VA = "0x181AA47D0")]
|
|
public void SetAlpha(float FBPFONBFPEB)
|
|
{
|
|
if (this.GIDKNPDPEBB != 0)
|
|
{
|
|
}
|
|
this.DPFPGDLMDDO = FBPFONBFPEB;
|
|
this.LCDNIEGNLHG(FBPFONBFPEB);
|
|
}
|
|
|
|
// Token: 0x06012285 RID: 74373 RVA: 0x0041D45C File Offset: 0x0041B65C
|
|
[Token(Token = "0x6012285")]
|
|
[Address(RVA = "0x1AA43B0", Offset = "0x1AA33B0", VA = "0x181AA43B0")]
|
|
public void FadeAlpha(float FBPFONBFPEB)
|
|
{
|
|
float alpha = this.canvasGroup.alpha;
|
|
bool flag = Mathf.Approximately(FBPFONBFPEB, FBPFONBFPEB);
|
|
if (!flag && (this.GIDKNPDPEBB == 0 || !flag || !Mathf.Approximately(FBPFONBFPEB, FBPFONBFPEB)))
|
|
{
|
|
if (this.GIDKNPDPEBB != 0)
|
|
{
|
|
}
|
|
this.DPFPGDLMDDO = FBPFONBFPEB;
|
|
Scheduler instance = SingletonMonoBehaviour.ONCPNMDGGKG;
|
|
ScreenHUDElementGroup.PCIHKBNPJHB pcihkbnpjhb;
|
|
pcihkbnpjhb.System.IDisposable.Dispose();
|
|
pcihkbnpjhb.targetAlpha = FBPFONBFPEB;
|
|
pcihkbnpjhb.<>1__state = (int)((ulong)0L);
|
|
pcihkbnpjhb.<>4__this = this;
|
|
KFBABPAPIMB kfbabpapimb = instance.Run(pcihkbnpjhb);
|
|
this.GIDKNPDPEBB = kfbabpapimb;
|
|
Action action = new Action(this.HNIENINILBL);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06012286 RID: 74374 RVA: 0x0041D4F4 File Offset: 0x0041B6F4
|
|
[Token(Token = "0x6012286")]
|
|
[Address(RVA = "0x1AA4660", Offset = "0x1AA3660", VA = "0x181AA4660")]
|
|
private void LCDNIEGNLHG(float FBPFONBFPEB)
|
|
{
|
|
CanvasGroup canvasGroup = this.canvasGroup;
|
|
int num = 0;
|
|
if (canvasGroup != num)
|
|
{
|
|
this.canvasGroup.alpha = FBPFONBFPEB;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06012287 RID: 74375 RVA: 0x0041D528 File Offset: 0x0041B728
|
|
[Token(Token = "0x6012287")]
|
|
[Address(RVA = "0x1AA4930", Offset = "0x1AA3930", VA = "0x181AA4930")]
|
|
public ScreenHUDElementGroup()
|
|
{
|
|
Keyframe[] array = new Keyframe[2];
|
|
int num = 0;
|
|
array[0] = num;
|
|
array[3] = num;
|
|
int num2 = 0;
|
|
array[3] = num2;
|
|
array[6] = num2;
|
|
AnimationCurve animationCurve = new AnimationCurve(array);
|
|
this.fadeCurve = animationCurve;
|
|
this.DPFPGDLMDDO = 1f;
|
|
this.ENPNEBBIABJ = true;
|
|
base..ctor();
|
|
}
|
|
|
|
// Token: 0x06012288 RID: 74376 RVA: 0x0041D598 File Offset: 0x0041B798
|
|
[Token(Token = "0x6012288")]
|
|
[Address(RVA = "0x1AA45F0", Offset = "0x1AA35F0", VA = "0x181AA45F0")]
|
|
[CompilerGenerated]
|
|
private IEnumerator<KENFJGFMIPM> KLICABOAAEB(float FKKCDOPCBDK)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06012288)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Collections.Generic.IEnumerator`1<KENFJGFMIPM> RecRoom.UI.ScreenHUDElementGroup::KLICABOAAEB(System.Single)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
Block_0:
|
|
call:void(PCIHKBNPJHB::System.IDisposable.Dispose, ldloc:PCIHKBNPJHB(var_0))
|
|
stfld:float32(PCIHKBNPJHB::targetAlpha, ldloc:PCIHKBNPJHB(var_0), ldloc:float32(FKKCDOPCBDK))
|
|
stfld:int32(PCIHKBNPJHB::<>1__state, ldloc:PCIHKBNPJHB(var_0), conv.u8:uint64[exp:int32](ldc.i8:int64[exp:uint64](0)))
|
|
stfld:ScreenHUDElementGroup(PCIHKBNPJHB::<>4__this, ldloc:PCIHKBNPJHB(var_0), ldloc:ScreenHUDElementGroup(this))
|
|
}
|
|
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
|
--- End of inner exception stack trace ---
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
|
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
|
*/;
|
|
}
|
|
|
|
// Token: 0x06012289 RID: 74377 RVA: 0x0041D5C4 File Offset: 0x0041B7C4
|
|
[Token(Token = "0x6012289")]
|
|
[Address(RVA = "0x1AA45E0", Offset = "0x1AA35E0", VA = "0x181AA45E0")]
|
|
[CompilerGenerated]
|
|
private void HNIENINILBL()
|
|
{
|
|
this.GIDKNPDPEBB = (ulong)0L;
|
|
}
|
|
|
|
// Token: 0x0400BA7E RID: 47742
|
|
[Token(Token = "0x400BA7E")]
|
|
public const float ENABLED_ALPHA = 1f;
|
|
|
|
// Token: 0x0400BA7F RID: 47743
|
|
[Token(Token = "0x400BA7F")]
|
|
public const float DISABLED_ALPHA = 0.35f;
|
|
|
|
// Token: 0x0400BA80 RID: 47744
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x400BA80")]
|
|
[SerializeField]
|
|
protected bool fadeInOnActivate;
|
|
|
|
// Token: 0x0400BA81 RID: 47745
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x400BA81")]
|
|
[SerializeField]
|
|
[JEAMMEGEDDJ("fadeInOnActivate")]
|
|
protected AnimationCurve fadeCurve;
|
|
|
|
// Token: 0x0400BA82 RID: 47746
|
|
[FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x400BA82")]
|
|
private CDJFFFCFLMF GIDKNPDPEBB;
|
|
|
|
// Token: 0x0400BA83 RID: 47747
|
|
[FieldOffset(Offset = "0x30")]
|
|
[Token(Token = "0x400BA83")]
|
|
private float DPFPGDLMDDO;
|
|
|
|
// Token: 0x0400BA84 RID: 47748
|
|
[FieldOffset(Offset = "0x34")]
|
|
[Token(Token = "0x400BA84")]
|
|
private bool ENPNEBBIABJ;
|
|
|
|
// Token: 0x0400BA85 RID: 47749
|
|
[FieldOffset(Offset = "0x38")]
|
|
[Token(Token = "0x400BA85")]
|
|
[SerializeField]
|
|
[NKNLDEIPALE(FHBJCBPFODN.Self, false, false, false)]
|
|
protected CanvasGroup canvasGroup;
|
|
|
|
// Token: 0x0400BA86 RID: 47750
|
|
[FieldOffset(Offset = "0x40")]
|
|
[Token(Token = "0x400BA86")]
|
|
protected ScreenHUDElement[] ICKLHIMJNNO;
|
|
}
|
|
}
|