297 lines
10 KiB
C#
297 lines
10 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using Cpp2IlInjected;
|
|
using RecRoom.Core;
|
|
using UnityEngine;
|
|
using UnityEngine.ResourceManagement.AsyncOperations;
|
|
using UnityEngine.ResourceManagement.ResourceLocations;
|
|
using UnityEngine.UI;
|
|
|
|
namespace RRUI
|
|
{
|
|
// Token: 0x020007D0 RID: 2000
|
|
[Token(Token = "0x20007D0")]
|
|
[DisallowMultipleComponent]
|
|
public class Hideable : MonoBehaviour, ILayoutIgnorer
|
|
{
|
|
// Token: 0x1700099E RID: 2462
|
|
// (get) Token: 0x06003852 RID: 14418 RVA: 0x000EA088 File Offset: 0x000E8288
|
|
[Token(Token = "0x1700099E")]
|
|
public bool BDGIPKGFNEC
|
|
{
|
|
[Token(Token = "0x6003852")]
|
|
[Address(RVA = "0x1E6B950", Offset = "0x1E6A950", VA = "0x181E6B950", Slot = "4")]
|
|
get
|
|
{
|
|
if (!Application.isPlaying)
|
|
{
|
|
LayoutElement layoutElement = this.layoutElement;
|
|
int num = 0;
|
|
if (layoutElement == num)
|
|
{
|
|
LayoutElement component = base.GetComponent<LayoutElement>();
|
|
this.layoutElement = component;
|
|
}
|
|
}
|
|
if (this.JBHFJHKCDAL.CFLJGNJLBFG)
|
|
{
|
|
return true;
|
|
}
|
|
LayoutElement layoutElement2 = this.layoutElement;
|
|
int num2 = 0;
|
|
bool flag = layoutElement2 != num2;
|
|
if (!flag)
|
|
{
|
|
return flag;
|
|
}
|
|
IResourceLocation location = ((IGenericProviderOperation)this.layoutElement).Location;
|
|
throw new NullReferenceException();
|
|
}
|
|
}
|
|
|
|
// Token: 0x1700099F RID: 2463
|
|
// (get) Token: 0x06003853 RID: 14419 RVA: 0x000EA100 File Offset: 0x000E8300
|
|
// (set) Token: 0x06003854 RID: 14420 RVA: 0x000EA114 File Offset: 0x000E8314
|
|
[Token(Token = "0x1700099F")]
|
|
public bool CLOGADDNDKN
|
|
{
|
|
[Token(Token = "0x6003853")]
|
|
[Address(RVA = "0x4B2080", Offset = "0x4B1080", VA = "0x1804B2080")]
|
|
get
|
|
{
|
|
return this.KNDMBNHAEBL;
|
|
}
|
|
[Token(Token = "0x6003854")]
|
|
[Address(RVA = "0x1E6BA60", Offset = "0x1E6AA60", VA = "0x181E6BA60")]
|
|
set
|
|
{
|
|
if (value)
|
|
{
|
|
RectTransform rectTransform = this.rectTransform;
|
|
int num = 0;
|
|
if (rectTransform == num)
|
|
{
|
|
Debug.LogError("Hideable object can only use ZeroScaleNotDisabled if the gameObject has a RectTransform");
|
|
return;
|
|
}
|
|
}
|
|
this.KNDMBNHAEBL = value;
|
|
while (!value)
|
|
{
|
|
}
|
|
bool flag;
|
|
base.gameObject.SetActive(flag);
|
|
int num2 = 0;
|
|
this.CMIOKOCCFBJ = num2;
|
|
this.MKBLJJGJAOH();
|
|
}
|
|
}
|
|
|
|
// Token: 0x06003855 RID: 14421 RVA: 0x000EA170 File Offset: 0x000E8370
|
|
[Token(Token = "0x6003855")]
|
|
[Address(RVA = "0x1E6B4C0", Offset = "0x1E6A4C0", VA = "0x181E6B4C0")]
|
|
private void Awake()
|
|
{
|
|
LayoutElement layoutElement = this.layoutElement;
|
|
int num = 0;
|
|
if (layoutElement == num)
|
|
{
|
|
LayoutElement component = base.GetComponent<LayoutElement>();
|
|
this.layoutElement = component;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06003856 RID: 14422 RVA: 0x000EA1A0 File Offset: 0x000E83A0
|
|
[Token(Token = "0x6003856")]
|
|
[Address(RVA = "0x1E6B750", Offset = "0x1E6A750", VA = "0x181E6B750")]
|
|
private void OnEnable()
|
|
{
|
|
LayoutElement layoutElement = this.layoutElement;
|
|
int num = 0;
|
|
if (layoutElement == num)
|
|
{
|
|
LayoutElement component = base.GetComponent<LayoutElement>();
|
|
this.layoutElement = component;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06003857 RID: 14423 RVA: 0x000EA1D0 File Offset: 0x000E83D0
|
|
[Token(Token = "0x6003857")]
|
|
[Address(RVA = "0x1E6B5A0", Offset = "0x1E6A5A0", VA = "0x181E6B5A0")]
|
|
public void Hide(object PIHIPPPPEBI)
|
|
{
|
|
bool flag = this.JBHFJHKCDAL.CFLJGNJLBFG;
|
|
this.JBHFJHKCDAL.BPAJKKAGPKB(PIHIPPPPEBI);
|
|
if (this.GHKIOPEDAMF)
|
|
{
|
|
bool flag2 = this.JBHFJHKCDAL.CFLJGNJLBFG;
|
|
if (flag == flag2)
|
|
{
|
|
return;
|
|
}
|
|
}
|
|
this.GHKIOPEDAMF = true;
|
|
this.MKBLJJGJAOH();
|
|
}
|
|
|
|
// Token: 0x06003858 RID: 14424 RVA: 0x000EA224 File Offset: 0x000E8424
|
|
[Token(Token = "0x6003858")]
|
|
[Address(RVA = "0x1E6B870", Offset = "0x1E6A870", VA = "0x181E6B870")]
|
|
public void Show(object PIHIPPPPEBI)
|
|
{
|
|
bool flag = this.JBHFJHKCDAL.CFLJGNJLBFG;
|
|
this.JBHFJHKCDAL.BIHKNNPGGKP(PIHIPPPPEBI);
|
|
if (this.GHKIOPEDAMF)
|
|
{
|
|
bool flag2 = this.JBHFJHKCDAL.CFLJGNJLBFG;
|
|
if (flag == flag2)
|
|
{
|
|
return;
|
|
}
|
|
}
|
|
this.GHKIOPEDAMF = true;
|
|
this.MKBLJJGJAOH();
|
|
}
|
|
|
|
// Token: 0x06003859 RID: 14425 RVA: 0x000EA278 File Offset: 0x000E8478
|
|
[Token(Token = "0x6003859")]
|
|
[Address(RVA = "0x1E6B7D0", Offset = "0x1E6A7D0", VA = "0x181E6B7D0")]
|
|
public void Set(object PIHIPPPPEBI, bool PBJELMMNEIP)
|
|
{
|
|
bool flag = this.JBHFJHKCDAL.CFLJGNJLBFG;
|
|
AOLMGGAPKEH jbhfjhkcdal = this.JBHFJHKCDAL;
|
|
if (!PBJELMMNEIP)
|
|
{
|
|
jbhfjhkcdal.BIHKNNPGGKP(PIHIPPPPEBI);
|
|
}
|
|
jbhfjhkcdal.BPAJKKAGPKB(PIHIPPPPEBI);
|
|
if (this.GHKIOPEDAMF)
|
|
{
|
|
bool flag2 = this.JBHFJHKCDAL.CFLJGNJLBFG;
|
|
if (flag == flag2)
|
|
{
|
|
return;
|
|
}
|
|
}
|
|
this.GHKIOPEDAMF = true;
|
|
this.MKBLJJGJAOH();
|
|
}
|
|
|
|
// Token: 0x0600385A RID: 14426 RVA: 0x000EA2D8 File Offset: 0x000E84D8
|
|
[Token(Token = "0x600385A")]
|
|
[Address(RVA = "0x1E6B620", Offset = "0x1E6A620", VA = "0x181E6B620")]
|
|
private void MKBLJJGJAOH()
|
|
{
|
|
if (Application.isPlaying)
|
|
{
|
|
if (!this.NNKJALEBAJI)
|
|
{
|
|
this.NNKJALEBAJI = true;
|
|
Scheduler instance = SingletonMonoBehaviour.ONCPNMDGGKG;
|
|
Hideable.CDCABEBGDPA cdcabebgdpa;
|
|
cdcabebgdpa.System.IDisposable.Dispose();
|
|
cdcabebgdpa.<>1__state = (int)((ulong)0L);
|
|
cdcabebgdpa.<>4__this = this;
|
|
KFBABPAPIMB kfbabpapimb = instance.Run(cdcabebgdpa);
|
|
}
|
|
return;
|
|
}
|
|
GameObject gameObject = base.gameObject;
|
|
bool flag = !this.JBHFJHKCDAL.CFLJGNJLBFG;
|
|
gameObject.SetActive(flag);
|
|
}
|
|
|
|
// Token: 0x0600385B RID: 14427 RVA: 0x000EA34C File Offset: 0x000E854C
|
|
[Token(Token = "0x600385B")]
|
|
[Address(RVA = "0x1E6B540", Offset = "0x1E6A540", VA = "0x181E6B540")]
|
|
private IEnumerator<KENFJGFMIPM> GBCNAPGAHBA()
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600385B)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Collections.Generic.IEnumerator`1<KENFJGFMIPM> RRUI.Hideable::GBCNAPGAHBA()
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
Block_0:
|
|
call:void(CDCABEBGDPA::System.IDisposable.Dispose, ldloc:CDCABEBGDPA(var_0))
|
|
stfld:int32(CDCABEBGDPA::<>1__state, ldloc:CDCABEBGDPA(var_0), conv.u8:uint64[exp:int32](ldc.i8:int64[exp:uint64](0)))
|
|
stfld:Hideable(CDCABEBGDPA::<>4__this, ldloc:CDCABEBGDPA(var_0), ldloc:Hideable(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: 0x0600385C RID: 14428 RVA: 0x000EA370 File Offset: 0x000E8570
|
|
[Token(Token = "0x600385C")]
|
|
[Address(RVA = "0x1E6B8F0", Offset = "0x1E6A8F0", VA = "0x181E6B8F0")]
|
|
public Hideable()
|
|
{
|
|
AOLMGGAPKEH aolmggapkeh = new AOLMGGAPKEH();
|
|
this.JBHFJHKCDAL = aolmggapkeh;
|
|
base..ctor();
|
|
}
|
|
|
|
// Token: 0x04003062 RID: 12386
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4003062")]
|
|
[SerializeField]
|
|
[NKNLDEIPALE(FHBJCBPFODN.Self, false, false, false)]
|
|
protected RectTransform rectTransform;
|
|
|
|
// Token: 0x04003063 RID: 12387
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4003063")]
|
|
[SerializeField]
|
|
[OAGJHJAIMMP(FHBJCBPFODN.Self, false, false, false)]
|
|
private LayoutElement layoutElement;
|
|
|
|
// Token: 0x04003064 RID: 12388
|
|
[FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x4003064")]
|
|
private readonly AOLMGGAPKEH JBHFJHKCDAL;
|
|
|
|
// Token: 0x04003065 RID: 12389
|
|
[FieldOffset(Offset = "0x30")]
|
|
[Token(Token = "0x4003065")]
|
|
private bool NNKJALEBAJI;
|
|
|
|
// Token: 0x04003066 RID: 12390
|
|
[FieldOffset(Offset = "0x34")]
|
|
[Token(Token = "0x4003066")]
|
|
private Vector2? HHKPBMOAJPM;
|
|
|
|
// Token: 0x04003067 RID: 12391
|
|
[FieldOffset(Offset = "0x40")]
|
|
[Token(Token = "0x4003067")]
|
|
private Vector3? DFENKIDHEND;
|
|
|
|
// Token: 0x04003068 RID: 12392
|
|
[FieldOffset(Offset = "0x50")]
|
|
[Token(Token = "0x4003068")]
|
|
private bool? CAEDIELEOAD;
|
|
|
|
// Token: 0x04003069 RID: 12393
|
|
[FieldOffset(Offset = "0x52")]
|
|
[Token(Token = "0x4003069")]
|
|
private bool? CMIOKOCCFBJ;
|
|
|
|
// Token: 0x0400306A RID: 12394
|
|
[FieldOffset(Offset = "0x54")]
|
|
[Token(Token = "0x400306A")]
|
|
private bool GHKIOPEDAMF;
|
|
|
|
// Token: 0x0400306B RID: 12395
|
|
[FieldOffset(Offset = "0x55")]
|
|
[Token(Token = "0x400306B")]
|
|
private bool KNDMBNHAEBL;
|
|
}
|
|
}
|