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

142 lines
5.1 KiB
C#

using System;
using System.Runtime.InteropServices;
using CodeStage.AntiCheat.ObscuredTypes;
using Cpp2IlInjected;
using RecNet;
using RecRoom;
using UnityEngine;
namespace AGUI.StackedUI
{
// Token: 0x02001AD5 RID: 6869
[Token(Token = "0x2001AD5")]
[RequireComponent(typeof(AccountSpecificUIBehaviour))]
[StructLayout(3)]
public class PlayerTooltipUpdater : MonoBehaviour
{
// Token: 0x0600B8B0 RID: 47280 RVA: 0x002B5AE4 File Offset: 0x002B3CE4
[Token(Token = "0x600B8B0")]
[Address(RVA = "0x1931340", Offset = "0x192FD40", VA = "0x181931340")]
private void Awake()
{
AccountSpecificUIBehaviour accountSpecificUIBehaviour = this.accountWatcher;
ActionEvent playerAccountUpdated = accountSpecificUIBehaviour.PlayerAccountUpdated;
Action action = new Action(this.OBMOIKFMMBF);
ActionEvent actionEvent = playerAccountUpdated + action;
accountSpecificUIBehaviour.PlayerAccountUpdated = actionEvent;
}
// Token: 0x0600B8B1 RID: 47281 RVA: 0x002B5B24 File Offset: 0x002B3D24
[Token(Token = "0x600B8B1")]
[Address(RVA = "0x19315B0", Offset = "0x192FFB0", VA = "0x1819315B0")]
private void OnDestroy()
{
AccountSpecificUIBehaviour accountSpecificUIBehaviour = this.accountWatcher;
int num = 0;
if (accountSpecificUIBehaviour != num)
{
AccountSpecificUIBehaviour accountSpecificUIBehaviour2 = this.accountWatcher;
ActionEvent playerAccountUpdated = accountSpecificUIBehaviour2.PlayerAccountUpdated;
Action action = new Action(this.OBMOIKFMMBF);
ActionEvent actionEvent = playerAccountUpdated - action;
accountSpecificUIBehaviour2.PlayerAccountUpdated = actionEvent;
}
}
// Token: 0x0600B8B2 RID: 47282 RVA: 0x002B5B78 File Offset: 0x002B3D78
[Token(Token = "0x600B8B2")]
[Address(RVA = "0x1931740", Offset = "0x1930140", VA = "0x181931740")]
private void OnEnable()
{
ActionEvent<int> lejanlmckdd = Matchmaking.LEJANLMCKDD;
Action<int> action = new Action(this.LAELBFJHFJO);
Matchmaking.LEJANLMCKDD = lejanlmckdd + action;
this.OBMOIKFMMBF();
}
// Token: 0x0600B8B3 RID: 47283 RVA: 0x002B5BAC File Offset: 0x002B3DAC
[Token(Token = "0x600B8B3")]
[Address(RVA = "0x19313D0", Offset = "0x192FDD0", VA = "0x1819313D0")]
private void LAELBFJHFJO(int ENJEOLBEALP)
{
int? <IFBPANODIPA>k__BackingField = this.accountWatcher.<IFBPANODIPA>k__BackingField;
if (<IFBPANODIPA>k__BackingField == ENJEOLBEALP != <IFBPANODIPA>k__BackingField)
{
this.OBMOIKFMMBF();
}
}
// Token: 0x0600B8B4 RID: 47284 RVA: 0x002B5BD8 File Offset: 0x002B3DD8
[Token(Token = "0x600B8B4")]
[Address(RVA = "0x1931680", Offset = "0x1930080", VA = "0x181931680")]
private void OnDisable()
{
ActionEvent<int> lejanlmckdd = Matchmaking.LEJANLMCKDD;
Action<int> action = new Action(this.LAELBFJHFJO);
Matchmaking.LEJANLMCKDD = lejanlmckdd - action;
}
// Token: 0x0600B8B5 RID: 47285 RVA: 0x002B5C04 File Offset: 0x002B3E04
[Token(Token = "0x600B8B5")]
[Address(RVA = "0x1931440", Offset = "0x192FE40", VA = "0x181931440")]
private void OBMOIKFMMBF()
{
if (this.accountWatcher.GEAFMCJMKBM != 0)
{
CCEOLAOLEKJ currentAccount = this.accountWatcher.GEAFMCJMKBM;
AccountSpecificUIBehaviour.PlayerDisplayMode hgllkbfobie = this.accountWatcher.HGLLKBFOBIE;
Action<int> action = new Action(this.LAELBFJHFJO);
Tooltip tooltip = this.tooltip;
AccountSpecificUIBehaviour accountSpecificUIBehaviour = this.accountWatcher;
string text;
if (text != 0)
{
string jgphpekfkka = this.JGPHPEKFKKA;
ObscuredString <KHJCEENDAOL>k__BackingField = accountSpecificUIBehaviour.GEAFMCJMKBM.<KHJCEENDAOL>k__BackingField;
string text2 = string.Format(jgphpekfkka, <KHJCEENDAOL>k__BackingField);
tooltip.Message = text2;
return;
}
string gdcognmgphb = this.GDCOGNMGPHB;
ObscuredString <KHJCEENDAOL>k__BackingField2 = accountSpecificUIBehaviour.GEAFMCJMKBM.<KHJCEENDAOL>k__BackingField;
string text3 = string.Format(gdcognmgphb, <KHJCEENDAOL>k__BackingField2, text);
}
Tooltip tooltip2 = this.tooltip;
string empty = string.Empty;
tooltip2.Message = empty;
throw new NullReferenceException();
}
// Token: 0x0600B8B6 RID: 47286 RVA: 0x002B5CC8 File Offset: 0x002B3EC8
[Token(Token = "0x600B8B6")]
[Address(RVA = "0x1931810", Offset = "0x1930210", VA = "0x181931810")]
public PlayerTooltipUpdater()
{
}
// Token: 0x0400796D RID: 31085
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
[Token(Token = "0x400796D")]
[SerializeField]
[DDPIINEJFMD(JIBDPHMGEGO.Self, false, false)]
private AccountSpecificUIBehaviour accountWatcher;
// Token: 0x0400796E RID: 31086
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
[Token(Token = "0x400796E")]
[SerializeField]
[DDPIINEJFMD(JIBDPHMGEGO.Self, false, false)]
private Tooltip tooltip;
// Token: 0x0400796F RID: 31087
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
[Token(Token = "0x400796F")]
private string GDCOGNMGPHB = "<i>@{0}</i>\n{1}";
// Token: 0x04007970 RID: 31088
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
[Token(Token = "0x4007970")]
private string JGPHPEKFKKA = "<i>@{0}</i>";
}
}