265 lines
9.5 KiB
C#
265 lines
9.5 KiB
C#
using System;
|
|
using System.Collections;
|
|
using System.Runtime.CompilerServices;
|
|
using Cpp2IlInjected;
|
|
using RecRoom;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
namespace AGUI.StackedUI
|
|
{
|
|
// Token: 0x0200109A RID: 4250
|
|
[Token(Token = "0x200109A")]
|
|
[DisallowMultipleComponent]
|
|
public class ChargeButton3D : Button3D
|
|
{
|
|
// Token: 0x14000095 RID: 149
|
|
// (add) Token: 0x0600603F RID: 24639 RVA: 0x00152214 File Offset: 0x00150414
|
|
// (remove) Token: 0x06006040 RID: 24640 RVA: 0x00152230 File Offset: 0x00150430
|
|
[Token(Token = "0x14000095")]
|
|
public event ChargeButton3D.DFAAAPOBBDL IFBBCJAFNKL
|
|
{
|
|
[Token(Token = "0x600603F")]
|
|
[Address(RVA = "0xF34A60", Offset = "0xF33860", VA = "0x180F34A60")]
|
|
[CompilerGenerated]
|
|
add
|
|
{
|
|
Delegate @delegate;
|
|
while (@delegate != 0 && @delegate == 0)
|
|
{
|
|
}
|
|
while (@delegate != this)
|
|
{
|
|
}
|
|
}
|
|
[Token(Token = "0x6006040")]
|
|
[Address(RVA = "0xF34B00", Offset = "0xF33900", VA = "0x180F34B00")]
|
|
[CompilerGenerated]
|
|
remove
|
|
{
|
|
Delegate @delegate;
|
|
while (@delegate != 0 && @delegate == 0)
|
|
{
|
|
}
|
|
while (@delegate != this)
|
|
{
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06006041 RID: 24641 RVA: 0x0015224C File Offset: 0x0015044C
|
|
[Token(Token = "0x6006041")]
|
|
[Address(RVA = "0xF34A00", Offset = "0xF33800", VA = "0x180F34A00", Slot = "7")]
|
|
protected override void OnDisable()
|
|
{
|
|
base.OnDisable();
|
|
int num = 0;
|
|
this.BLIJCJNGGIJ = num;
|
|
this.DKILDKCKHDM = (float)num;
|
|
base.MALDFLCADLG(true);
|
|
this.IFCAJEGNGIN();
|
|
}
|
|
|
|
// Token: 0x06006042 RID: 24642 RVA: 0x0015227C File Offset: 0x0015047C
|
|
[Token(Token = "0x6006042")]
|
|
[Address(RVA = "0xF34650", Offset = "0xF33450", VA = "0x180F34650", Slot = "46")]
|
|
protected override void CECJCHNLLNB(bool DDFLMNGNNIP = false)
|
|
{
|
|
base.CECJCHNLLNB(DDFLMNGNNIP);
|
|
this.IFCAJEGNGIN();
|
|
ChargeButton3D.DODFOBKNEPE dodfobknepe;
|
|
dodfobknepe.System.IDisposable.Dispose();
|
|
dodfobknepe.<>1__state = (int)((ulong)0L);
|
|
dodfobknepe.<>4__this = this;
|
|
Coroutine coroutine = base.StartCoroutine(dodfobknepe);
|
|
this.EFGMEENJDFG = coroutine;
|
|
}
|
|
|
|
// Token: 0x06006043 RID: 24643 RVA: 0x001522BC File Offset: 0x001504BC
|
|
[Token(Token = "0x6006043")]
|
|
[Address(RVA = "0xF34800", Offset = "0xF33600", VA = "0x180F34800", Slot = "47")]
|
|
protected override void IOIPLOFNEGH(bool DDFLMNGNNIP = false)
|
|
{
|
|
if (!DDFLMNGNNIP)
|
|
{
|
|
MenuFinger blijcjnggij = this.BLIJCJNGGIJ;
|
|
int num = 0;
|
|
if (blijcjnggij != num)
|
|
{
|
|
this.BLIJCJNGGIJ.Vibrate(10, 0.5f);
|
|
}
|
|
StackedUIBase ljocnmlbcah = this.LJOCNMLBCAH;
|
|
int num2 = 0;
|
|
if (ljocnmlbcah != num2)
|
|
{
|
|
StackedUIBase ljocnmlbcah2 = this.LJOCNMLBCAH;
|
|
}
|
|
Transform transform = base.transform;
|
|
RecRoomAudioClip buttonUpAudio = this.ButtonUpAudio;
|
|
int num3 = 0;
|
|
int num4 = 0;
|
|
SFXAudioSource sfxaudioSource = AudioManager.Play3DSFX(buttonUpAudio, transform, num4, num3);
|
|
}
|
|
Button3DBase.IOJHBLEGKFK olamkldopce = this.OLAMKLDOPCE;
|
|
if (olamkldopce != 0)
|
|
{
|
|
olamkldopce(this);
|
|
}
|
|
base.OCGMNKCFDDM(DDFLMNGNNIP);
|
|
this.IFCAJEGNGIN();
|
|
}
|
|
|
|
// Token: 0x06006044 RID: 24644 RVA: 0x0015235C File Offset: 0x0015055C
|
|
[Token(Token = "0x6006044")]
|
|
[Address(RVA = "0xF346D0", Offset = "0xF334D0", VA = "0x180F346D0", Slot = "48")]
|
|
protected override void DJFFCNMEHNL()
|
|
{
|
|
Button3DBase.IOJHBLEGKFK cgohkpcbjie = this.CGOHKPCBJIE;
|
|
if (cgohkpcbjie != 0)
|
|
{
|
|
cgohkpcbjie(this);
|
|
}
|
|
this.IFCAJEGNGIN();
|
|
}
|
|
|
|
// Token: 0x06006045 RID: 24645 RVA: 0x00152384 File Offset: 0x00150584
|
|
[Token(Token = "0x6006045")]
|
|
[Address(RVA = "0xF349A0", Offset = "0xF337A0", VA = "0x180F349A0")]
|
|
private IEnumerator MPMHBOACBMO()
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06006045)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Collections.IEnumerator AGUI.StackedUI.ChargeButton3D::MPMHBOACBMO()
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
Block_0:
|
|
call:void(DODFOBKNEPE::System.IDisposable.Dispose, ldloc:DODFOBKNEPE(var_0))
|
|
stfld:int32(DODFOBKNEPE::<>1__state, ldloc:DODFOBKNEPE(var_0), conv.u8:uint64[exp:int32](ldc.i8:int64[exp:uint64](0)))
|
|
stfld:ChargeButton3D(DODFOBKNEPE::<>4__this, ldloc:DODFOBKNEPE(var_0), ldloc:ChargeButton3D(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 1660
|
|
*/;
|
|
}
|
|
|
|
// Token: 0x06006046 RID: 24646 RVA: 0x001523A8 File Offset: 0x001505A8
|
|
[Token(Token = "0x6006046")]
|
|
[Address(RVA = "0xF34700", Offset = "0xF33500", VA = "0x180F34700")]
|
|
private void IFCAJEGNGIN()
|
|
{
|
|
Coroutine efgmeenjdfg = this.EFGMEENJDFG;
|
|
this.OMNDHPIFFEM(efgmeenjdfg);
|
|
SFXAudioSource maklmfafaoh = this.MAKLMFAFAOH;
|
|
this.EFGMEENJDFG = (ulong)0L;
|
|
int num = 0;
|
|
if (maklmfafaoh != num)
|
|
{
|
|
this.MAKLMFAFAOH.Stop();
|
|
this.MAKLMFAFAOH = (ulong)0L;
|
|
}
|
|
Image image = this.fillImage;
|
|
int num2 = 0;
|
|
if (image != num2)
|
|
{
|
|
Image image2 = this.fillImage;
|
|
int num3 = 0;
|
|
image2.fillAmount = (float)num3;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06006047 RID: 24647 RVA: 0x00152424 File Offset: 0x00150624
|
|
[Token(Token = "0x6006047")]
|
|
[Address(RVA = "0xF34A40", Offset = "0xF33840", VA = "0x180F34A40")]
|
|
public ChargeButton3D()
|
|
{
|
|
}
|
|
|
|
// Token: 0x04003FE4 RID: 16356
|
|
[FieldOffset(Offset = "0x1F8")]
|
|
[Token(Token = "0x4003FE4")]
|
|
[SerializeField]
|
|
private Image fillImage;
|
|
|
|
// Token: 0x04003FE5 RID: 16357
|
|
[FieldOffset(Offset = "0x200")]
|
|
[Token(Token = "0x4003FE5")]
|
|
[SerializeField]
|
|
private float chargeDuration = 1f;
|
|
|
|
// Token: 0x04003FE6 RID: 16358
|
|
[FieldOffset(Offset = "0x204")]
|
|
[Token(Token = "0x4003FE6")]
|
|
[SerializeField]
|
|
private float vibrationIntensity = 0.5f;
|
|
|
|
// Token: 0x04003FE7 RID: 16359
|
|
[FieldOffset(Offset = "0x208")]
|
|
[Token(Token = "0x4003FE7")]
|
|
[SerializeField]
|
|
private RecRoomAudioClip chargeAudio;
|
|
|
|
// Token: 0x04003FE8 RID: 16360
|
|
[FieldOffset(Offset = "0x210")]
|
|
[Token(Token = "0x4003FE8")]
|
|
private SFXAudioSource MAKLMFAFAOH;
|
|
|
|
// Token: 0x04003FE9 RID: 16361
|
|
[FieldOffset(Offset = "0x218")]
|
|
[Token(Token = "0x4003FE9")]
|
|
private Coroutine EFGMEENJDFG;
|
|
|
|
// Token: 0x0200109B RID: 4251
|
|
[Token(Token = "0x200109B")]
|
|
public sealed class DFAAAPOBBDL : MulticastDelegate
|
|
{
|
|
// Token: 0x06006048 RID: 24648 RVA: 0x00152450 File Offset: 0x00150650
|
|
[Token(Token = "0x6006048")]
|
|
[Address(RVA = "0x448ED0", Offset = "0x447CD0", VA = "0x180448ED0")]
|
|
public DFAAAPOBBDL(object FEDFKKMABOG, IntPtr APAICGIHAGJ)
|
|
{
|
|
this.method = APAICGIHAGJ;
|
|
this.m_target = FEDFKKMABOG;
|
|
}
|
|
|
|
// Token: 0x06006049 RID: 24649 RVA: 0x0015246C File Offset: 0x0015066C
|
|
[Token(Token = "0x6006049")]
|
|
[Address(RVA = "0x747410", Offset = "0x746210", VA = "0x180747410", Slot = "13")]
|
|
public void Invoke(ChargeButton3D LKDLEHGHCAD)
|
|
{
|
|
if (this.delegates != 0)
|
|
{
|
|
}
|
|
uint num;
|
|
if (num != (uint)0)
|
|
{
|
|
throw new ExecutionEngineException();
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600604A RID: 24650 RVA: 0x0000220F File Offset: 0x0000040F
|
|
[Token(Token = "0x600604A")]
|
|
[Address(RVA = "0x457150", Offset = "0x455F50", VA = "0x180457150", Slot = "14")]
|
|
public IAsyncResult BeginInvoke(ChargeButton3D LKDLEHGHCAD, AsyncCallback AFLPGGJMPOE, object FEDFKKMABOG)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x0600604B RID: 24651 RVA: 0x0000220F File Offset: 0x0000040F
|
|
[Token(Token = "0x600604B")]
|
|
[Address(RVA = "0x448B70", Offset = "0x447970", VA = "0x180448B70", Slot = "15")]
|
|
public void EndInvoke(IAsyncResult GIAOBLMEMMI)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
}
|
|
}
|
|
}
|