145 lines
4.9 KiB
C#
145 lines
4.9 KiB
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
using Cpp2IlInjected;
|
|
using RecRoom;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
namespace AGUI.StackedUI
|
|
{
|
|
// Token: 0x02001ADA RID: 6874
|
|
[Token(Token = "0x2001ADA")]
|
|
[RequireComponent(typeof(ReputationSpecificUIBehaviour))]
|
|
[StructLayout(3)]
|
|
public class ReputationSpecificCheerBadges : MonoBehaviour
|
|
{
|
|
// Token: 0x0600B8CE RID: 47310 RVA: 0x002B6130 File Offset: 0x002B4330
|
|
[Token(Token = "0x600B8CE")]
|
|
[Address(RVA = "0x19367A0", Offset = "0x19351A0", VA = "0x1819367A0", Slot = "4")]
|
|
protected virtual void Awake()
|
|
{
|
|
ReputationSpecificUIBehaviour reputationSpecificUIBehaviour = this.reputationWatcher;
|
|
ActionEvent playerReputationUpdated = reputationSpecificUIBehaviour.PlayerReputationUpdated;
|
|
Action action = new Action(this.DFFFNMEKMOB);
|
|
ActionEvent actionEvent = playerReputationUpdated + action;
|
|
reputationSpecificUIBehaviour.PlayerReputationUpdated = actionEvent;
|
|
}
|
|
|
|
// Token: 0x0600B8CF RID: 47311 RVA: 0x002B6170 File Offset: 0x002B4370
|
|
[Token(Token = "0x600B8CF")]
|
|
[Address(RVA = "0x1936AA0", Offset = "0x19354A0", VA = "0x181936AA0", Slot = "5")]
|
|
protected virtual void OnDestroy()
|
|
{
|
|
ReputationSpecificUIBehaviour reputationSpecificUIBehaviour = this.reputationWatcher;
|
|
int num = 0;
|
|
if (reputationSpecificUIBehaviour != num)
|
|
{
|
|
ReputationSpecificUIBehaviour reputationSpecificUIBehaviour2 = this.reputationWatcher;
|
|
ActionEvent playerReputationUpdated = reputationSpecificUIBehaviour2.PlayerReputationUpdated;
|
|
Action action = new Action(this.DFFFNMEKMOB);
|
|
ActionEvent actionEvent = playerReputationUpdated - action;
|
|
reputationSpecificUIBehaviour2.PlayerReputationUpdated = actionEvent;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600B8D0 RID: 47312 RVA: 0x002B61C4 File Offset: 0x002B43C4
|
|
[Token(Token = "0x600B8D0")]
|
|
[Address(RVA = "0x1936B70", Offset = "0x1935570", VA = "0x181936B70", Slot = "6")]
|
|
protected virtual void OnEnable()
|
|
{
|
|
this.DFFFNMEKMOB();
|
|
}
|
|
|
|
// Token: 0x0600B8D1 RID: 47313 RVA: 0x002B61D8 File Offset: 0x002B43D8
|
|
[Token(Token = "0x600B8D1")]
|
|
[Address(RVA = "0x1936830", Offset = "0x1935230", VA = "0x181936830")]
|
|
private void DFFFNMEKMOB()
|
|
{
|
|
GameObject gameObject = this.cheerBadge_General.gameObject;
|
|
int num = 0;
|
|
gameObject.SetActive(num != 0);
|
|
GameObject gameObject2 = this.cheerBadge_Helpful.gameObject;
|
|
int num2 = 0;
|
|
gameObject2.SetActive(num2 != 0);
|
|
GameObject gameObject3 = this.cheerBadge_Sportsman.gameObject;
|
|
int num3 = 0;
|
|
gameObject3.SetActive(num3 != 0);
|
|
GameObject gameObject4 = this.cheerBadge_GreatHost.gameObject;
|
|
int num4 = 0;
|
|
gameObject4.SetActive(num4 != 0);
|
|
GameObject gameObject5 = this.cheerBadge_Creative.gameObject;
|
|
int num5 = 0;
|
|
gameObject5.SetActive(num5 != 0);
|
|
if (this.reputationWatcher.DLLAJGDMFHI != 0)
|
|
{
|
|
if (this.reputationWatcher.DLLAJGDMFHI.<DNNGLMEALOJ>k__BackingField > 0)
|
|
{
|
|
this.cheerBadge_General.gameObject.SetActive(true);
|
|
}
|
|
if (this.reputationWatcher.DLLAJGDMFHI.<IJPKFMKAGGP>k__BackingField > 0)
|
|
{
|
|
this.cheerBadge_Helpful.gameObject.SetActive(true);
|
|
}
|
|
if (this.reputationWatcher.DLLAJGDMFHI.<ALKBFMNEAJI>k__BackingField > 0)
|
|
{
|
|
this.cheerBadge_Sportsman.gameObject.SetActive(true);
|
|
}
|
|
if (this.reputationWatcher.DLLAJGDMFHI.<EANJHJDBNPD>k__BackingField > 0)
|
|
{
|
|
this.cheerBadge_GreatHost.gameObject.SetActive(true);
|
|
}
|
|
if (this.reputationWatcher.DLLAJGDMFHI.<LFGNELGPADP>k__BackingField > 0)
|
|
{
|
|
this.cheerBadge_Creative.gameObject.SetActive(true);
|
|
return;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600B8D2 RID: 47314 RVA: 0x002B6328 File Offset: 0x002B4528
|
|
[Token(Token = "0x600B8D2")]
|
|
[Address(RVA = "0x3C1210", Offset = "0x3BFC10", VA = "0x1803C1210")]
|
|
public ReputationSpecificCheerBadges()
|
|
{
|
|
}
|
|
|
|
// Token: 0x04007978 RID: 31096
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4007978")]
|
|
[SerializeField]
|
|
[DDPIINEJFMD(JIBDPHMGEGO.Self, false, false)]
|
|
private ReputationSpecificUIBehaviour reputationWatcher;
|
|
|
|
// Token: 0x04007979 RID: 31097
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4007979")]
|
|
[SerializeField]
|
|
[Header("Cheer badges")]
|
|
private Image cheerBadge_General;
|
|
|
|
// Token: 0x0400797A RID: 31098
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x400797A")]
|
|
[SerializeField]
|
|
private Image cheerBadge_Helpful;
|
|
|
|
// Token: 0x0400797B RID: 31099
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
|
|
[Token(Token = "0x400797B")]
|
|
[SerializeField]
|
|
private Image cheerBadge_Sportsman;
|
|
|
|
// Token: 0x0400797C RID: 31100
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x38")]
|
|
[Token(Token = "0x400797C")]
|
|
[SerializeField]
|
|
private Image cheerBadge_GreatHost;
|
|
|
|
// Token: 0x0400797D RID: 31101
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x40")]
|
|
[Token(Token = "0x400797D")]
|
|
[SerializeField]
|
|
private Image cheerBadge_Creative;
|
|
}
|
|
}
|