155 lines
4.9 KiB
C#
155 lines
4.9 KiB
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
using AGUI.StackedUI;
|
|
using Cpp2IlInjected;
|
|
using Photon.Realtime;
|
|
using UnityEngine;
|
|
|
|
namespace RecRoom.Systems.PlayerRoles.UI.Room
|
|
{
|
|
// Token: 0x020020F6 RID: 8438
|
|
[Token(Token = "0x20020F6")]
|
|
[StructLayout(3)]
|
|
public class ToggleRoomRolesEditModeConditionalButton : ConditionalButton<Button3D>
|
|
{
|
|
// Token: 0x0600E917 RID: 59671 RVA: 0x00373C70 File Offset: 0x00371E70
|
|
[Token(Token = "0x600E917")]
|
|
[Address(RVA = "0x19C9DB0", Offset = "0x19C87B0", VA = "0x1819C9DB0", Slot = "4")]
|
|
protected override void OnEnable()
|
|
{
|
|
base.OnEnable();
|
|
Action<Photon.Realtime.Player, RoomRole> action = new Action(this.DIHJDCNHNJE);
|
|
EditRoomRoleOrdersWatchUIFlow editRoomRoleOrdersWatchUIFlow = this.editRoomRoleOrdersScreen;
|
|
Action<BIPCKGLGIHG> action2 = new Action(this.PGIIGNGHLFG);
|
|
editRoomRoleOrdersWatchUIFlow.OnRoleViewModeChangedEvent += action2;
|
|
}
|
|
|
|
// Token: 0x0600E918 RID: 59672 RVA: 0x00373CB4 File Offset: 0x00371EB4
|
|
[Token(Token = "0x600E918")]
|
|
[Address(RVA = "0x19C9C70", Offset = "0x19C8670", VA = "0x1819C9C70")]
|
|
private void OnDisable()
|
|
{
|
|
Action<Photon.Realtime.Player, RoomRole> action = new Action(this.DIHJDCNHNJE);
|
|
EditRoomRoleOrdersWatchUIFlow editRoomRoleOrdersWatchUIFlow = this.editRoomRoleOrdersScreen;
|
|
int num = 0;
|
|
if (editRoomRoleOrdersWatchUIFlow != num)
|
|
{
|
|
EditRoomRoleOrdersWatchUIFlow editRoomRoleOrdersWatchUIFlow2 = this.editRoomRoleOrdersScreen;
|
|
Action<BIPCKGLGIHG> action2 = new Action(this.PGIIGNGHLFG);
|
|
editRoomRoleOrdersWatchUIFlow2.OnRoleViewModeChangedEvent -= action2;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600E919 RID: 59673 RVA: 0x00373D08 File Offset: 0x00371F08
|
|
[Token(Token = "0x600E919")]
|
|
[Address(RVA = "0x10DE250", Offset = "0x10DCC50", VA = "0x1810DE250")]
|
|
private void PGIIGNGHLFG(BIPCKGLGIHG ANFJOHGCOOB)
|
|
{
|
|
base.OnEnable();
|
|
}
|
|
|
|
// Token: 0x0600E91A RID: 59674 RVA: 0x00373D1C File Offset: 0x00371F1C
|
|
[Token(Token = "0x600E91A")]
|
|
[Address(RVA = "0x19B7400", Offset = "0x19B5E00", VA = "0x1819B7400")]
|
|
private void DIHJDCNHNJE(Photon.Realtime.Player AGIHAKFFCCD, RoomRole LOLCMLEKMAF)
|
|
{
|
|
if (AGIHAKFFCCD.IsLocal)
|
|
{
|
|
base.OnEnable();
|
|
return;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600E91B RID: 59675 RVA: 0x00373D40 File Offset: 0x00371F40
|
|
[Token(Token = "0x600E91B")]
|
|
[Address(RVA = "0x19C9B80", Offset = "0x19C8580", VA = "0x1819C9B80", Slot = "8")]
|
|
protected override void MGFKPEMKOOK()
|
|
{
|
|
int cieebjfcmib = this.CIEEBJFCMIB;
|
|
if (cieebjfcmib == 1)
|
|
{
|
|
EditRoomRoleOrdersWatchUIFlow editRoomRoleOrdersWatchUIFlow = this.editRoomRoleOrdersScreen;
|
|
return;
|
|
}
|
|
while (cieebjfcmib != 2)
|
|
{
|
|
}
|
|
EditRoomRoleOrdersWatchUIFlow editRoomRoleOrdersWatchUIFlow2 = this.editRoomRoleOrdersScreen;
|
|
int num = 0;
|
|
editRoomRoleOrdersWatchUIFlow2.MFBDAMHIMKI = (BIPCKGLGIHG)num;
|
|
}
|
|
|
|
// Token: 0x0600E91C RID: 59676 RVA: 0x00373D7C File Offset: 0x00371F7C
|
|
[Token(Token = "0x600E91C")]
|
|
[Address(RVA = "0x19C9EC0", Offset = "0x19C88C0", VA = "0x1819C9EC0", Slot = "5")]
|
|
protected override void PICEBFBCNCL()
|
|
{
|
|
BIPCKGLGIHG cmipabmebeb = this.editRoomRoleOrdersScreen.CMIPABMEBEB;
|
|
bool forwardedRegistered = PlayerRoomRoleManager.ONCPNMDGGKG.forwardedRegistered;
|
|
bool flag;
|
|
if (flag)
|
|
{
|
|
base.ILGFOHIJHMG = 1;
|
|
return;
|
|
}
|
|
int num = 0;
|
|
base.ILGFOHIJHMG = num;
|
|
}
|
|
|
|
// Token: 0x0600E91D RID: 59677 RVA: 0x00373DC8 File Offset: 0x00371FC8
|
|
[Token(Token = "0x600E91D")]
|
|
[Address(RVA = "0x19C9BD0", Offset = "0x19C85D0", VA = "0x1819C9BD0", Slot = "6")]
|
|
protected override void MNGMCHLEHOK()
|
|
{
|
|
base..ctor();
|
|
int cieebjfcmib = this.CIEEBJFCMIB;
|
|
if (cieebjfcmib == 1)
|
|
{
|
|
PLDMAFINLJO.FANDNIHFMNM(this.labelText, "Edit Roles");
|
|
this.tooltip.Message = "Edit all Room roles";
|
|
return;
|
|
}
|
|
while (cieebjfcmib != 2)
|
|
{
|
|
}
|
|
PLDMAFINLJO.FANDNIHFMNM(this.labelText, "Show My Roles");
|
|
this.tooltip.Message = "Show only roles I have.";
|
|
}
|
|
|
|
// Token: 0x0600E91E RID: 59678 RVA: 0x00373E34 File Offset: 0x00372034
|
|
[Token(Token = "0x600E91E")]
|
|
[Address(RVA = "0x19CA010", Offset = "0x19C8A10", VA = "0x1819CA010")]
|
|
public ToggleRoomRolesEditModeConditionalButton()
|
|
{
|
|
}
|
|
|
|
// Token: 0x040098CA RID: 39114
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x38")]
|
|
[Token(Token = "0x40098CA")]
|
|
[SerializeField]
|
|
private EditRoomRoleOrdersWatchUIFlow editRoomRoleOrdersScreen;
|
|
|
|
// Token: 0x040098CB RID: 39115
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x40")]
|
|
[Token(Token = "0x40098CB")]
|
|
[SerializeField]
|
|
[DDPIINEJFMD(JIBDPHMGEGO.Self, false, false)]
|
|
private Tooltip tooltip;
|
|
|
|
// Token: 0x020020F7 RID: 8439
|
|
[Token(Token = "0x20020F7")]
|
|
private enum KEKIODAELFL
|
|
{
|
|
// Token: 0x040098CD RID: 39117
|
|
[Token(Token = "0x40098CD")]
|
|
Disabled,
|
|
// Token: 0x040098CE RID: 39118
|
|
[Token(Token = "0x40098CE")]
|
|
ChangeToEditMode,
|
|
// Token: 0x040098CF RID: 39119
|
|
[Token(Token = "0x40098CF")]
|
|
ChangeToViewMode
|
|
}
|
|
}
|
|
}
|