167 lines
5.7 KiB
C#
167 lines
5.7 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Runtime.CompilerServices;
|
|
using System.Runtime.InteropServices;
|
|
using Cpp2IlInjected;
|
|
using RecNet;
|
|
using RecRoom;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
namespace AGUI.StackedUI
|
|
{
|
|
// Token: 0x02001B14 RID: 6932
|
|
[Token(Token = "0x2001B14")]
|
|
[RequireComponent(typeof(AccountSpecificUIBehaviour))]
|
|
[StructLayout(3)]
|
|
public class PlayerButtonPanelColor : MonoBehaviour
|
|
{
|
|
// Token: 0x0600B9F6 RID: 47606 RVA: 0x002BB688 File Offset: 0x002B9888
|
|
[Token(Token = "0x600B9F6")]
|
|
[Address(RVA = "0x192DCB0", Offset = "0x192C6B0", VA = "0x18192DCB0")]
|
|
private void Awake()
|
|
{
|
|
AccountSpecificUIBehaviour component = base.GetComponent<AccountSpecificUIBehaviour>();
|
|
this.accountWatcher = component;
|
|
ActionEvent playerAccountUpdated = component.PlayerAccountUpdated;
|
|
Action action = new Action(this.OBMOIKFMMBF);
|
|
ActionEvent actionEvent = playerAccountUpdated + action;
|
|
component.PlayerAccountUpdated = actionEvent;
|
|
}
|
|
|
|
// Token: 0x0600B9F7 RID: 47607 RVA: 0x002BB6CC File Offset: 0x002B98CC
|
|
[Token(Token = "0x600B9F7")]
|
|
[Address(RVA = "0x192E050", Offset = "0x192CA50", VA = "0x18192E050")]
|
|
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: 0x0600B9F8 RID: 47608 RVA: 0x002BB720 File Offset: 0x002B9920
|
|
[Token(Token = "0x600B9F8")]
|
|
[Address(RVA = "0x192E120", Offset = "0x192CB20", VA = "0x18192E120")]
|
|
private void OnEnable()
|
|
{
|
|
this.OBMOIKFMMBF();
|
|
}
|
|
|
|
// Token: 0x0600B9F9 RID: 47609 RVA: 0x002BB734 File Offset: 0x002B9934
|
|
[Token(Token = "0x600B9F9")]
|
|
[Address(RVA = "0x192DDE0", Offset = "0x192C7E0", VA = "0x18192DDE0")]
|
|
private void OBMOIKFMMBF()
|
|
{
|
|
AccountSpecificUIBehaviour accountSpecificUIBehaviour = this.accountWatcher;
|
|
if (accountSpecificUIBehaviour.<IFBPANODIPA>k__BackingField != 0 && accountSpecificUIBehaviour.HGLLKBFOBIE == AccountSpecificUIBehaviour.PlayerDisplayMode.Recent)
|
|
{
|
|
List<Player> all = Player.All;
|
|
Predicate<Player> predicate = new Predicate(this.GCPODJKHAFO);
|
|
bool flag = all.Exists(predicate);
|
|
}
|
|
LLKHFJDNFMM llkhfjdnfmm;
|
|
AccountSpecificUIBehaviour accountSpecificUIBehaviour2;
|
|
if (accountSpecificUIBehaviour.<IFBPANODIPA>k__BackingField != 0)
|
|
{
|
|
llkhfjdnfmm = FGPIDGLCKEF.IAHDANBDAAM(accountSpecificUIBehaviour.<IFBPANODIPA>k__BackingField.value);
|
|
accountSpecificUIBehaviour2 = this.accountWatcher;
|
|
}
|
|
if (accountSpecificUIBehaviour2.<IFBPANODIPA>k__BackingField != 0)
|
|
{
|
|
EFAJBHGDIDD efajbhgdidd = Matchmaking.OLIKKLKLBKJ(accountSpecificUIBehaviour2.<IFBPANODIPA>k__BackingField.value);
|
|
if (efajbhgdidd != 0 && efajbhgdidd != 0 && llkhfjdnfmm != 0)
|
|
{
|
|
if (!llkhfjdnfmm.CPAAFLNLLMP)
|
|
{
|
|
if (llkhfjdnfmm.<PALMIOEJANE>k__BackingField == LLKHFJDNFMM.DDAADAMFMCL.FriendRequestReceived)
|
|
{
|
|
goto IL_BC;
|
|
}
|
|
Image image = this.panel;
|
|
}
|
|
Image image2 = this.panel;
|
|
Color color = this.onlineFavoriteColor;
|
|
Color color2 = image2.color;
|
|
return;
|
|
}
|
|
}
|
|
IL_BC:
|
|
if (llkhfjdnfmm == 0 || llkhfjdnfmm.CPAAFLNLLMP)
|
|
{
|
|
}
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x0600B9FA RID: 47610 RVA: 0x002BB814 File Offset: 0x002B9A14
|
|
[Token(Token = "0x600B9FA")]
|
|
[Address(RVA = "0x3C1210", Offset = "0x3BFC10", VA = "0x1803C1210")]
|
|
public PlayerButtonPanelColor()
|
|
{
|
|
}
|
|
|
|
// Token: 0x0600B9FB RID: 47611 RVA: 0x002BB828 File Offset: 0x002B9A28
|
|
[Token(Token = "0x600B9FB")]
|
|
[Address(RVA = "0x192DD60", Offset = "0x192C760", VA = "0x18192DD60")]
|
|
[CompilerGenerated]
|
|
private bool GCPODJKHAFO(Player GPEKFHLOFGA)
|
|
{
|
|
AccountSpecificUIBehaviour accountSpecificUIBehaviour = this.accountWatcher;
|
|
int <FMMJEJMBDPL>k__BackingField = GPEKFHLOFGA.<FMMJEJMBDPL>k__BackingField;
|
|
int? <IFBPANODIPA>k__BackingField = accountSpecificUIBehaviour.<IFBPANODIPA>k__BackingField;
|
|
return <FMMJEJMBDPL>k__BackingField == <IFBPANODIPA>k__BackingField;
|
|
}
|
|
|
|
// Token: 0x04007A72 RID: 31346
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4007A72")]
|
|
[SerializeField]
|
|
[DDPIINEJFMD(JIBDPHMGEGO.Self, false, false)]
|
|
private Image panel;
|
|
|
|
// Token: 0x04007A73 RID: 31347
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4007A73")]
|
|
[SerializeField]
|
|
[DDPIINEJFMD(JIBDPHMGEGO.Self, false, false)]
|
|
private AccountSpecificUIBehaviour accountWatcher;
|
|
|
|
// Token: 0x04007A74 RID: 31348
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x4007A74")]
|
|
[SerializeField]
|
|
[Header("Colors")]
|
|
private Color onlineDefaultColor;
|
|
|
|
// Token: 0x04007A75 RID: 31349
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x38")]
|
|
[Token(Token = "0x4007A75")]
|
|
[SerializeField]
|
|
private Color offlineDefaultColor;
|
|
|
|
// Token: 0x04007A76 RID: 31350
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x48")]
|
|
[Token(Token = "0x4007A76")]
|
|
[SerializeField]
|
|
private Color onlineFavoriteColor;
|
|
|
|
// Token: 0x04007A77 RID: 31351
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x58")]
|
|
[Token(Token = "0x4007A77")]
|
|
[SerializeField]
|
|
private Color offlineFavoriteColor;
|
|
|
|
// Token: 0x04007A78 RID: 31352
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x68")]
|
|
[Token(Token = "0x4007A78")]
|
|
[SerializeField]
|
|
private Color onlineNonFriendColor;
|
|
}
|
|
}
|