265 lines
9.6 KiB
C#
265 lines
9.6 KiB
C#
using System;
|
|
using System.Collections;
|
|
using System.Runtime.CompilerServices;
|
|
using Cpp2IlInjected;
|
|
using RecRoom;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
namespace AGUI.StackedUI
|
|
{
|
|
// Token: 0x02001167 RID: 4455
|
|
[Token(Token = "0x2001167")]
|
|
[DisallowMultipleComponent]
|
|
public class ChargeButton3D : Button3D
|
|
{
|
|
// Token: 0x14000095 RID: 149
|
|
// (add) Token: 0x06006391 RID: 25489 RVA: 0x00159ED0 File Offset: 0x001580D0
|
|
// (remove) Token: 0x06006392 RID: 25490 RVA: 0x00159EEC File Offset: 0x001580EC
|
|
[Token(Token = "0x14000095")]
|
|
public event ChargeButton3D.DFAAAPOBBDL IFBBCJAFNKL
|
|
{
|
|
[Token(Token = "0x6006391")]
|
|
[Address(RVA = "0x1A52700", Offset = "0x1A51700", VA = "0x181A52700")]
|
|
[CompilerGenerated]
|
|
add
|
|
{
|
|
Delegate @delegate;
|
|
while (@delegate != 0 && @delegate == 0)
|
|
{
|
|
}
|
|
while (@delegate != this)
|
|
{
|
|
}
|
|
}
|
|
[Token(Token = "0x6006392")]
|
|
[Address(RVA = "0x1A527A0", Offset = "0x1A517A0", VA = "0x181A527A0")]
|
|
[CompilerGenerated]
|
|
remove
|
|
{
|
|
Delegate @delegate;
|
|
while (@delegate != 0 && @delegate == 0)
|
|
{
|
|
}
|
|
while (@delegate != this)
|
|
{
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06006393 RID: 25491 RVA: 0x00159F08 File Offset: 0x00158108
|
|
[Token(Token = "0x6006393")]
|
|
[Address(RVA = "0x1A526A0", Offset = "0x1A516A0", VA = "0x181A526A0", Slot = "7")]
|
|
protected override void OnDisable()
|
|
{
|
|
base.OnDisable();
|
|
int num = 0;
|
|
this.BLIJCJNGGIJ = num;
|
|
this.DKILDKCKHDM = (float)num;
|
|
base.MALDFLCADLG(true);
|
|
this.IFCAJEGNGIN();
|
|
}
|
|
|
|
// Token: 0x06006394 RID: 25492 RVA: 0x00159F38 File Offset: 0x00158138
|
|
[Token(Token = "0x6006394")]
|
|
[Address(RVA = "0x1A522F0", Offset = "0x1A512F0", VA = "0x181A522F0", 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: 0x06006395 RID: 25493 RVA: 0x00159F78 File Offset: 0x00158178
|
|
[Token(Token = "0x6006395")]
|
|
[Address(RVA = "0x1A524A0", Offset = "0x1A514A0", VA = "0x181A524A0", 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: 0x06006396 RID: 25494 RVA: 0x0015A018 File Offset: 0x00158218
|
|
[Token(Token = "0x6006396")]
|
|
[Address(RVA = "0x1A52370", Offset = "0x1A51370", VA = "0x181A52370", Slot = "48")]
|
|
protected override void DJFFCNMEHNL()
|
|
{
|
|
Button3DBase.IOJHBLEGKFK cgohkpcbjie = this.CGOHKPCBJIE;
|
|
if (cgohkpcbjie != 0)
|
|
{
|
|
cgohkpcbjie(this);
|
|
}
|
|
this.IFCAJEGNGIN();
|
|
}
|
|
|
|
// Token: 0x06006397 RID: 25495 RVA: 0x0015A040 File Offset: 0x00158240
|
|
[Token(Token = "0x6006397")]
|
|
[Address(RVA = "0x1A52640", Offset = "0x1A51640", VA = "0x181A52640")]
|
|
private IEnumerator MPMHBOACBMO()
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06006397)
|
|
|
|
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 1663
|
|
*/;
|
|
}
|
|
|
|
// Token: 0x06006398 RID: 25496 RVA: 0x0015A064 File Offset: 0x00158264
|
|
[Token(Token = "0x6006398")]
|
|
[Address(RVA = "0x1A523A0", Offset = "0x1A513A0", VA = "0x181A523A0")]
|
|
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: 0x06006399 RID: 25497 RVA: 0x0015A0E0 File Offset: 0x001582E0
|
|
[Token(Token = "0x6006399")]
|
|
[Address(RVA = "0x1A526E0", Offset = "0x1A516E0", VA = "0x181A526E0")]
|
|
public ChargeButton3D()
|
|
{
|
|
}
|
|
|
|
// Token: 0x04004157 RID: 16727
|
|
[FieldOffset(Offset = "0x1F8")]
|
|
[Token(Token = "0x4004157")]
|
|
[SerializeField]
|
|
private Image fillImage;
|
|
|
|
// Token: 0x04004158 RID: 16728
|
|
[FieldOffset(Offset = "0x200")]
|
|
[Token(Token = "0x4004158")]
|
|
[SerializeField]
|
|
private float chargeDuration = 1f;
|
|
|
|
// Token: 0x04004159 RID: 16729
|
|
[FieldOffset(Offset = "0x204")]
|
|
[Token(Token = "0x4004159")]
|
|
[SerializeField]
|
|
private float vibrationIntensity = 0.5f;
|
|
|
|
// Token: 0x0400415A RID: 16730
|
|
[FieldOffset(Offset = "0x208")]
|
|
[Token(Token = "0x400415A")]
|
|
[SerializeField]
|
|
private RecRoomAudioClip chargeAudio;
|
|
|
|
// Token: 0x0400415B RID: 16731
|
|
[FieldOffset(Offset = "0x210")]
|
|
[Token(Token = "0x400415B")]
|
|
private SFXAudioSource MAKLMFAFAOH;
|
|
|
|
// Token: 0x0400415C RID: 16732
|
|
[FieldOffset(Offset = "0x218")]
|
|
[Token(Token = "0x400415C")]
|
|
private Coroutine EFGMEENJDFG;
|
|
|
|
// Token: 0x02001168 RID: 4456
|
|
[Token(Token = "0x2001168")]
|
|
public sealed class DFAAAPOBBDL : MulticastDelegate
|
|
{
|
|
// Token: 0x0600639A RID: 25498 RVA: 0x0015A10C File Offset: 0x0015830C
|
|
[Token(Token = "0x600639A")]
|
|
[Address(RVA = "0x4AF020", Offset = "0x4AE020", VA = "0x1804AF020")]
|
|
public DFAAAPOBBDL(object FEDFKKMABOG, IntPtr APAICGIHAGJ)
|
|
{
|
|
this.method = APAICGIHAGJ;
|
|
this.m_target = FEDFKKMABOG;
|
|
}
|
|
|
|
// Token: 0x0600639B RID: 25499 RVA: 0x0015A128 File Offset: 0x00158328
|
|
[Token(Token = "0x600639B")]
|
|
[Address(RVA = "0x5FA230", Offset = "0x5F9230", VA = "0x1805FA230", Slot = "13")]
|
|
public void Invoke(ChargeButton3D LKDLEHGHCAD)
|
|
{
|
|
if (this.delegates != 0)
|
|
{
|
|
}
|
|
uint num;
|
|
if (num != (uint)0)
|
|
{
|
|
throw new ExecutionEngineException();
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600639C RID: 25500 RVA: 0x0000220F File Offset: 0x0000040F
|
|
[Token(Token = "0x600639C")]
|
|
[Address(RVA = "0x5FA200", Offset = "0x5F9200", VA = "0x1805FA200", 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: 0x0600639D RID: 25501 RVA: 0x0000220F File Offset: 0x0000040F
|
|
[Token(Token = "0x600639D")]
|
|
[Address(RVA = "0x4F56B0", Offset = "0x4F46B0", VA = "0x1804F56B0", Slot = "15")]
|
|
public void EndInvoke(IAsyncResult GIAOBLMEMMI)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
}
|
|
}
|
|
}
|