Files
2026-04-10 22:50:51 +02:00

308 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: 0x020029C1 RID: 10689
[Token(Token = "0x20029C1")]
[DisallowMultipleComponent]
[RequireComponent(typeof(CanvasGroup))]
public class ScreenHUDElementGroup : MonoBehaviour
{
// Token: 0x1700320B RID: 12811
// (get) Token: 0x06011E42 RID: 73282 RVA: 0x00413784 File Offset: 0x00411984
[Token(Token = "0x1700320B")]
private bool MBMNBDENKDF
{
[Token(Token = "0x6011E42")]
[Address(RVA = "0x101A410", Offset = "0x1019210", VA = "0x18101A410")]
get
{
while (this.GIDKNPDPEBB != 0)
{
}
}
}
// Token: 0x1700320C RID: 12812
// (get) Token: 0x06011E43 RID: 73283 RVA: 0x0041379C File Offset: 0x0041199C
[Token(Token = "0x1700320C")]
private float GEMGMNKOBEC
{
[Token(Token = "0x6011E43")]
[Address(RVA = "0x101A6D0", Offset = "0x10194D0", VA = "0x18101A6D0")]
get
{
/*
An exception occurred when decompiling this method (06011E43)
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: 0x06011E44 RID: 73284 RVA: 0x004137B4 File Offset: 0x004119B4
[Token(Token = "0x6011E44")]
[Address(RVA = "0x101A270", Offset = "0x1019070", VA = "0x18101A270")]
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: 0x06011E45 RID: 73285 RVA: 0x0041380C File Offset: 0x00411A0C
[Token(Token = "0x6011E45")]
[Address(RVA = "0x101A800", Offset = "0x1019600", VA = "0x18101A800")]
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: 0x06011E46 RID: 73286 RVA: 0x00413858 File Offset: 0x00411A58
[Token(Token = "0x6011E46")]
[Address(RVA = "0x101A370", Offset = "0x1019170", VA = "0x18101A370")]
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: 0x06011E47 RID: 73287 RVA: 0x004138A8 File Offset: 0x00411AA8
[Token(Token = "0x6011E47")]
[Address(RVA = "0x101A950", Offset = "0x1019750", VA = "0x18101A950")]
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: 0x06011E48 RID: 73288 RVA: 0x0041390C File Offset: 0x00411B0C
[Token(Token = "0x6011E48")]
[Address(RVA = "0x101A8E0", Offset = "0x10196E0", VA = "0x18101A8E0")]
public void SetAlpha(float FBPFONBFPEB)
{
if (this.GIDKNPDPEBB != 0)
{
}
this.DPFPGDLMDDO = FBPFONBFPEB;
this.LCDNIEGNLHG(FBPFONBFPEB);
}
// Token: 0x06011E49 RID: 73289 RVA: 0x00413930 File Offset: 0x00411B30
[Token(Token = "0x6011E49")]
[Address(RVA = "0x101A460", Offset = "0x1019260", VA = "0x18101A460")]
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();
int num = 0;
pcihkbnpjhb.targetAlpha = FBPFONBFPEB;
pcihkbnpjhb.<>1__state = num;
pcihkbnpjhb.<>4__this = this;
KFBABPAPIMB kfbabpapimb = instance.Run(pcihkbnpjhb);
this.GIDKNPDPEBB = kfbabpapimb;
Action action = new Action(this.HNIENINILBL);
if (num < this)
{
num += num;
num++;
}
}
}
// Token: 0x06011E4A RID: 73290 RVA: 0x004139E0 File Offset: 0x00411BE0
[Token(Token = "0x6011E4A")]
[Address(RVA = "0x101A770", Offset = "0x1019570", VA = "0x18101A770")]
private void LCDNIEGNLHG(float FBPFONBFPEB)
{
CanvasGroup canvasGroup = this.canvasGroup;
int num = 0;
if (canvasGroup != num)
{
this.canvasGroup.alpha = FBPFONBFPEB;
}
}
// Token: 0x06011E4B RID: 73291 RVA: 0x00413A14 File Offset: 0x00411C14
[Token(Token = "0x6011E4B")]
[Address(RVA = "0x101AA40", Offset = "0x1019840", VA = "0x18101AA40")]
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: 0x06011E4C RID: 73292 RVA: 0x00413A84 File Offset: 0x00411C84
[Token(Token = "0x6011E4C")]
[Address(RVA = "0x101A700", Offset = "0x1019500", VA = "0x18101A700")]
[CompilerGenerated]
private IEnumerator<KENFJGFMIPM> KLICABOAAEB(float FKKCDOPCBDK)
{
/*
An exception occurred when decompiling this method (06011E4C)
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: 0x06011E4D RID: 73293 RVA: 0x00413AB0 File Offset: 0x00411CB0
[Token(Token = "0x6011E4D")]
[Address(RVA = "0x101A6F0", Offset = "0x10194F0", VA = "0x18101A6F0")]
[CompilerGenerated]
private void HNIENINILBL()
{
this.GIDKNPDPEBB = (ulong)0L;
}
// Token: 0x0400B86E RID: 47214
[Token(Token = "0x400B86E")]
public const float ENABLED_ALPHA = 1f;
// Token: 0x0400B86F RID: 47215
[Token(Token = "0x400B86F")]
public const float DISABLED_ALPHA = 0.35f;
// Token: 0x0400B870 RID: 47216
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x400B870")]
[SerializeField]
protected bool fadeInOnActivate;
// Token: 0x0400B871 RID: 47217
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x400B871")]
[SerializeField]
[OMAIFIIBMNL("fadeInOnActivate")]
protected AnimationCurve fadeCurve;
// Token: 0x0400B872 RID: 47218
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x400B872")]
private CDJFFFCFLMF GIDKNPDPEBB;
// Token: 0x0400B873 RID: 47219
[FieldOffset(Offset = "0x30")]
[Token(Token = "0x400B873")]
private float DPFPGDLMDDO;
// Token: 0x0400B874 RID: 47220
[FieldOffset(Offset = "0x34")]
[Token(Token = "0x400B874")]
private bool ENPNEBBIABJ;
// Token: 0x0400B875 RID: 47221
[FieldOffset(Offset = "0x38")]
[Token(Token = "0x400B875")]
[SerializeField]
[DDPIINEJFMD(JIBDPHMGEGO.Self, false, false, false)]
protected CanvasGroup canvasGroup;
// Token: 0x0400B876 RID: 47222
[FieldOffset(Offset = "0x40")]
[Token(Token = "0x400B876")]
protected ScreenHUDElement[] ICKLHIMJNNO;
}
}