Files
2026-04-08 23:40:05 +02:00

370 lines
12 KiB
C#

using System;
using System.Runtime.InteropServices;
using AGUI.StackedUI;
using Cpp2IlInjected;
using Photon.Realtime;
using UnityEngine;
using UnityEngine.UI;
namespace RecRoom.Core.Creation.Costumes
{
// Token: 0x02002D3C RID: 11580
[Token(Token = "0x2002D3C")]
[StructLayout(3)]
public class CostumeEquipUIFlow : CostumeUIFlow
{
// Token: 0x060147BF RID: 83903 RVA: 0x004E9A80 File Offset: 0x004E7C80
[Token(Token = "0x60147BF")]
[Address(RVA = "0x167CC50", Offset = "0x167B650", VA = "0x18167CC50")]
private void Start()
{
Costume.PGJKMGDLDEP apdfkapdngo;
Delegate delegate5;
for (;;)
{
Costume costume = base.JLPGJCGCPLA;
int num = 0;
if (!(costume != num))
{
goto IL_1A2;
}
Costume costume2 = base.JLPGJCGCPLA;
Costume.PGJKMGDLDEP pgjkmgdldep;
pgjkmgdldep.method_ptr = ldftn(DMCILNCOOJJ);
pgjkmgdldep.method = ldftn(DMCILNCOOJJ);
pgjkmgdldep.m_target = this;
Costume.PGJKMGDLDEP hgghegnbfeo = costume2.HGGHEGNBFEO;
Delegate @delegate = Delegate.Combine(hgghegnbfeo, pgjkmgdldep);
if (@delegate == 0 || @delegate != 0)
{
while (@delegate != hgghegnbfeo)
{
}
Costume costume3 = base.JLPGJCGCPLA;
Costume.PGJKMGDLDEP pgjkmgdldep2;
pgjkmgdldep2.method_ptr = ldftn(DMCILNCOOJJ);
pgjkmgdldep2.method = ldftn(DMCILNCOOJJ);
pgjkmgdldep2.m_target = this;
Costume.PGJKMGDLDEP eijkbelkapg = costume3.EIJKBELKAPG;
Delegate delegate2 = Delegate.Combine(eijkbelkapg, pgjkmgdldep2);
if (delegate2 == 0 || delegate2 != 0)
{
while (delegate2 != eijkbelkapg)
{
}
Costume costume4 = base.JLPGJCGCPLA;
Costume.PGJKMGDLDEP pgjkmgdldep3;
pgjkmgdldep3.method_ptr = ldftn(DMCILNCOOJJ);
pgjkmgdldep3.method = ldftn(DMCILNCOOJJ);
pgjkmgdldep3.m_target = this;
Costume.PGJKMGDLDEP olhofemicpj = costume4.OLHOFEMICPJ;
Delegate delegate3 = Delegate.Combine(olhofemicpj, pgjkmgdldep3);
if (delegate3 == 0 || delegate3 != 0)
{
while (delegate3 != olhofemicpj)
{
}
Costume costume5 = base.JLPGJCGCPLA;
Costume.PGJKMGDLDEP pgjkmgdldep4;
pgjkmgdldep4.method_ptr = ldftn(DMCILNCOOJJ);
pgjkmgdldep4.method = ldftn(DMCILNCOOJJ);
pgjkmgdldep4.m_target = this;
Costume.PGJKMGDLDEP nallohlpppk = costume5.NALLOHLPPPK;
Delegate delegate4 = Delegate.Combine(nallohlpppk, pgjkmgdldep4);
if (delegate4 == 0 || delegate4 != 0)
{
while (delegate4 != nallohlpppk)
{
}
Costume costume6 = base.JLPGJCGCPLA;
Costume.PGJKMGDLDEP pgjkmgdldep5;
pgjkmgdldep5.method_ptr = ldftn(DMCILNCOOJJ);
pgjkmgdldep5.method = ldftn(DMCILNCOOJJ);
pgjkmgdldep5.m_target = this;
apdfkapdngo = costume6.APDFKAPDNGO;
delegate5 = Delegate.Combine(apdfkapdngo, pgjkmgdldep5);
if (delegate5 == 0 || delegate5 != 0)
{
break;
}
}
}
}
}
}
while (delegate5 != apdfkapdngo)
{
}
IL_1A2:
ActionEvent localPlayerCreatedEvent = global::Player.LocalPlayerCreatedEvent;
Action action = new Action(this.CLBLFCJEDLL);
global::Player.LocalPlayerCreatedEvent = localPlayerCreatedEvent + action;
RoomKeysManager instance = NetworkedSingletonMonoBehaviour.ONCPNMDGGKG;
ActionEvent<AMAGKLLBGEC> onRoomKeyUpdated = instance.OnRoomKeyUpdated;
Action<AMAGKLLBGEC> action2 = new Action(this.ABFCCKPCMBA);
ActionEvent<AMAGKLLBGEC> actionEvent = onRoomKeyUpdated + action2;
instance.OnRoomKeyUpdated = actionEvent;
RoomKeysManager instance2 = NetworkedSingletonMonoBehaviour.ONCPNMDGGKG;
ActionEvent<long> onLocalPlayerPurchasedRoomKey = instance2.OnLocalPlayerPurchasedRoomKey;
Action<long> action3 = new Action(this.MKMHAPKDDCA);
ActionEvent<long> actionEvent2 = onLocalPlayerPurchasedRoomKey + action3;
instance2.OnLocalPlayerPurchasedRoomKey = actionEvent2;
this.FPMFFLOBLLM();
this.HMAJHABIBPO();
}
// Token: 0x060147C0 RID: 83904 RVA: 0x004E9CC8 File Offset: 0x004E7EC8
[Token(Token = "0x60147C0")]
[Address(RVA = "0x167C680", Offset = "0x167B080", VA = "0x18167C680", Slot = "6")]
protected override void OnDestroy()
{
Costume.PGJKMGDLDEP apdfkapdngo;
Delegate delegate5;
for (;;)
{
base.OnDestroy();
Costume costume = base.JLPGJCGCPLA;
int num = 0;
if (!(costume != num))
{
goto IL_1A8;
}
Costume costume2 = base.JLPGJCGCPLA;
Costume.PGJKMGDLDEP pgjkmgdldep;
pgjkmgdldep.method_ptr = ldftn(DMCILNCOOJJ);
pgjkmgdldep.method = ldftn(DMCILNCOOJJ);
pgjkmgdldep.m_target = this;
Costume.PGJKMGDLDEP hgghegnbfeo = costume2.HGGHEGNBFEO;
Delegate @delegate = Delegate.Remove(hgghegnbfeo, pgjkmgdldep);
if (@delegate == 0 || @delegate != 0)
{
while (@delegate != hgghegnbfeo)
{
}
Costume costume3 = base.JLPGJCGCPLA;
Costume.PGJKMGDLDEP pgjkmgdldep2;
pgjkmgdldep2.method_ptr = ldftn(DMCILNCOOJJ);
pgjkmgdldep2.method = ldftn(DMCILNCOOJJ);
pgjkmgdldep2.m_target = this;
Costume.PGJKMGDLDEP eijkbelkapg = costume3.EIJKBELKAPG;
Delegate delegate2 = Delegate.Remove(eijkbelkapg, pgjkmgdldep2);
if (delegate2 == 0 || delegate2 != 0)
{
while (delegate2 != eijkbelkapg)
{
}
Costume costume4 = base.JLPGJCGCPLA;
Costume.PGJKMGDLDEP pgjkmgdldep3;
pgjkmgdldep3.method_ptr = ldftn(DMCILNCOOJJ);
pgjkmgdldep3.method = ldftn(DMCILNCOOJJ);
pgjkmgdldep3.m_target = this;
Costume.PGJKMGDLDEP olhofemicpj = costume4.OLHOFEMICPJ;
Delegate delegate3 = Delegate.Remove(olhofemicpj, pgjkmgdldep3);
if (delegate3 == 0 || delegate3 != 0)
{
while (delegate3 != olhofemicpj)
{
}
Costume costume5 = base.JLPGJCGCPLA;
Costume.PGJKMGDLDEP pgjkmgdldep4;
pgjkmgdldep4.method_ptr = ldftn(DMCILNCOOJJ);
pgjkmgdldep4.method = ldftn(DMCILNCOOJJ);
pgjkmgdldep4.m_target = this;
Costume.PGJKMGDLDEP nallohlpppk = costume5.NALLOHLPPPK;
Delegate delegate4 = Delegate.Remove(nallohlpppk, pgjkmgdldep4);
if (delegate4 == 0 || delegate4 != 0)
{
while (delegate4 != nallohlpppk)
{
}
Costume costume6 = base.JLPGJCGCPLA;
Costume.PGJKMGDLDEP pgjkmgdldep5;
pgjkmgdldep5.method_ptr = ldftn(DMCILNCOOJJ);
pgjkmgdldep5.method = ldftn(DMCILNCOOJJ);
pgjkmgdldep5.m_target = this;
apdfkapdngo = costume6.APDFKAPDNGO;
delegate5 = Delegate.Remove(apdfkapdngo, pgjkmgdldep5);
if (delegate5 == 0 || delegate5 != 0)
{
break;
}
}
}
}
}
}
while (delegate5 != apdfkapdngo)
{
}
IL_1A8:
ActionEvent localPlayerCreatedEvent = global::Player.LocalPlayerCreatedEvent;
Action action = new Action(this.CLBLFCJEDLL);
global::Player.LocalPlayerCreatedEvent = localPlayerCreatedEvent - action;
RoomKeysManager instance = NetworkedSingletonMonoBehaviour.ONCPNMDGGKG;
int num2 = 0;
if (instance != num2)
{
RoomKeysManager instance2 = NetworkedSingletonMonoBehaviour.ONCPNMDGGKG;
ActionEvent<AMAGKLLBGEC> onRoomKeyUpdated = instance2.OnRoomKeyUpdated;
Action<AMAGKLLBGEC> action2 = new Action(this.ABFCCKPCMBA);
ActionEvent<AMAGKLLBGEC> actionEvent = onRoomKeyUpdated - action2;
instance2.OnRoomKeyUpdated = actionEvent;
RoomKeysManager instance3 = NetworkedSingletonMonoBehaviour.ONCPNMDGGKG;
ActionEvent<long> onLocalPlayerPurchasedRoomKey = instance3.OnLocalPlayerPurchasedRoomKey;
Action<long> action3 = new Action(this.MKMHAPKDDCA);
ActionEvent<long> actionEvent2 = onLocalPlayerPurchasedRoomKey - action3;
instance3.OnLocalPlayerPurchasedRoomKey = actionEvent2;
}
}
// Token: 0x060147C1 RID: 83905 RVA: 0x004E9F20 File Offset: 0x004E8120
[Token(Token = "0x60147C1")]
[Address(RVA = "0x167BEA0", Offset = "0x167A8A0", VA = "0x18167BEA0")]
private void DMCILNCOOJJ(Costume NANKOBFIFBK)
{
this.FPMFFLOBLLM();
this.HMAJHABIBPO();
}
// Token: 0x060147C2 RID: 83906 RVA: 0x004E9F3C File Offset: 0x004E813C
[Token(Token = "0x60147C2")]
[Address(RVA = "0x167BEA0", Offset = "0x167A8A0", VA = "0x18167BEA0")]
private void CLBLFCJEDLL()
{
this.FPMFFLOBLLM();
this.HMAJHABIBPO();
}
// Token: 0x060147C3 RID: 83907 RVA: 0x004E9F58 File Offset: 0x004E8158
[Token(Token = "0x60147C3")]
[Address(RVA = "0x167BEA0", Offset = "0x167A8A0", VA = "0x18167BEA0")]
private void ABFCCKPCMBA(AMAGKLLBGEC AAHIIDDIBFD)
{
this.FPMFFLOBLLM();
this.HMAJHABIBPO();
}
// Token: 0x060147C4 RID: 83908 RVA: 0x004E9F74 File Offset: 0x004E8174
[Token(Token = "0x60147C4")]
[Address(RVA = "0x167BEA0", Offset = "0x167A8A0", VA = "0x18167BEA0")]
private void MKMHAPKDDCA(long BGICHOOBKLD)
{
this.FPMFFLOBLLM();
this.HMAJHABIBPO();
}
// Token: 0x060147C5 RID: 83909 RVA: 0x004E9F90 File Offset: 0x004E8190
[Token(Token = "0x60147C5")]
[Address(RVA = "0x167BEA0", Offset = "0x167A8A0", VA = "0x18167BEA0")]
private void NKFONDDFKNE()
{
this.FPMFFLOBLLM();
this.HMAJHABIBPO();
}
// Token: 0x060147C6 RID: 83910 RVA: 0x004E9FAC File Offset: 0x004E81AC
[Token(Token = "0x60147C6")]
[Address(RVA = "0x167C110", Offset = "0x167AB10", VA = "0x18167C110")]
private void FPMFFLOBLLM()
{
Costume costume = base.JLPGJCGCPLA;
int num = 0;
if (!(costume == num))
{
Photon.Realtime.Player fdeigodgkln = base.JLPGJCGCPLA.FDEIGODGKLN;
Button3D button3D = this.equipButton;
Photon.Realtime.Player player;
if (fdeigodgkln == player)
{
GameObject gameObject = costume.gameObject;
int num2 = 0;
gameObject.SetActive(num2 != 0);
this.unequipButton.gameObject.SetActive(true);
this.unequipButton.FFDOINJEHMM = true;
return;
}
button3D.gameObject.SetActive(true);
GameObject gameObject2 = this.unequipButton.gameObject;
int num3 = 0;
gameObject2.SetActive(num3 != 0);
Button3D button3D2 = this.equipButton;
bool lnmjpbjkdhm = base.JLPGJCGCPLA.LNMJPBJKDHM;
button3D2.FFDOINJEHMM = lnmjpbjkdhm;
}
}
// Token: 0x060147C7 RID: 83911 RVA: 0x0000220F File Offset: 0x0000040F
[Token(Token = "0x60147C7")]
[Address(RVA = "0x167C340", Offset = "0x167AD40", VA = "0x18167C340")]
private void HMAJHABIBPO()
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x060147C8 RID: 83912 RVA: 0x004EA060 File Offset: 0x004E8260
[Token(Token = "0x60147C8")]
[Address(RVA = "0x167BEC0", Offset = "0x167A8C0", VA = "0x18167BEC0")]
public void Button_Equip()
{
Costume costume = base.JLPGJCGCPLA;
int num = 0;
if (costume != num)
{
Costume costume2 = base.JLPGJCGCPLA;
return;
}
}
// Token: 0x060147C9 RID: 83913 RVA: 0x004EA090 File Offset: 0x004E8290
[Token(Token = "0x60147C9")]
[Address(RVA = "0x167C000", Offset = "0x167AA00", VA = "0x18167C000")]
public void Button_Unequip()
{
Costume costume = base.JLPGJCGCPLA;
int num = 0;
if (costume != num)
{
base.JLPGJCGCPLA.RequestUnequip();
return;
}
}
// Token: 0x060147CA RID: 83914 RVA: 0x004EA0C4 File Offset: 0x004E82C4
[Token(Token = "0x60147CA")]
[Address(RVA = "0x167D1C0", Offset = "0x167BBC0", VA = "0x18167D1C0")]
public CostumeEquipUIFlow()
{
}
// Token: 0x0400DB1D RID: 56093
[global::Cpp2IlInjected.FieldOffset(Offset = "0x60")]
[Token(Token = "0x400DB1D")]
[SerializeField]
private Button3D equipButton;
// Token: 0x0400DB1E RID: 56094
[global::Cpp2IlInjected.FieldOffset(Offset = "0x68")]
[Token(Token = "0x400DB1E")]
[SerializeField]
private Button3D unequipButton;
// Token: 0x0400DB1F RID: 56095
[global::Cpp2IlInjected.FieldOffset(Offset = "0x70")]
[Token(Token = "0x400DB1F")]
[SerializeField]
private Text infoText;
// Token: 0x0400DB20 RID: 56096
[global::Cpp2IlInjected.FieldOffset(Offset = "0x78")]
[Token(Token = "0x400DB20")]
[SerializeField]
private Text equipButtonText;
// Token: 0x0400DB21 RID: 56097
[global::Cpp2IlInjected.FieldOffset(Offset = "0x80")]
[Token(Token = "0x400DB21")]
[SerializeField]
private string defaultEquipButtonText = "Equip";
}
}