138 lines
5.1 KiB
C#
138 lines
5.1 KiB
C#
using System;
|
|
using Cpp2IlInjected;
|
|
using UnityEngine;
|
|
|
|
namespace AGUI.StackedUI
|
|
{
|
|
// Token: 0x0200111C RID: 4380
|
|
[Token(Token = "0x200111C")]
|
|
[RequireComponent(typeof(ReputationSpecificUIBehaviour))]
|
|
public class CheerConditionalButton : ConditionalButton<Button3D>
|
|
{
|
|
// Token: 0x0600635B RID: 25435 RVA: 0x0015D680 File Offset: 0x0015B880
|
|
[Token(Token = "0x600635B")]
|
|
[Address(RVA = "0xF368C0", Offset = "0xF356C0", VA = "0x180F368C0", Slot = "4")]
|
|
protected override void OnEnable()
|
|
{
|
|
ReputationSpecificUIBehaviour reputationSpecificUIBehaviour = this.reputationWatcher;
|
|
Action action;
|
|
OKNNKFGFODL oknnkfgfodl = OKNNKFGFODL.BPJDFPACLMK(reputationSpecificUIBehaviour.PlayerReputationUpdated, action);
|
|
reputationSpecificUIBehaviour.PlayerReputationUpdated = oknnkfgfodl;
|
|
MFBGLIHGCGO<int?> hodokbidhhg = FGPIDGLCKEF.HODOKBIDHHG;
|
|
Action<int?> action2 = new Action(this.PABKIEKBHGA);
|
|
FGPIDGLCKEF.HODOKBIDHHG = MFBGLIHGCGO.BPJDFPACLMK(hodokbidhhg, action2);
|
|
this.OnEnable();
|
|
this.PICEBFBCNCL();
|
|
Button3DBase button = this.button;
|
|
this.MNGMCHLEHOK();
|
|
int num = 0;
|
|
int num2 = 0;
|
|
button.BLIJCJNGGIJ = num;
|
|
button.DKILDKCKHDM = (float)num;
|
|
button.MALDFLCADLG(num2 != 0);
|
|
button.PMFNJKCHLCO();
|
|
}
|
|
|
|
// Token: 0x0600635C RID: 25436 RVA: 0x0015D714 File Offset: 0x0015B914
|
|
[Token(Token = "0x600635C")]
|
|
[Address(RVA = "0xF36770", Offset = "0xF35570", VA = "0x180F36770")]
|
|
private void OnDisable()
|
|
{
|
|
MFBGLIHGCGO<int?> hodokbidhhg = FGPIDGLCKEF.HODOKBIDHHG;
|
|
Action<int?> action = new Action(this.PABKIEKBHGA);
|
|
FGPIDGLCKEF.HODOKBIDHHG = MFBGLIHGCGO.GMNMHGMFGOL(hodokbidhhg, action);
|
|
ReputationSpecificUIBehaviour reputationSpecificUIBehaviour = this.reputationWatcher;
|
|
int num = 0;
|
|
if (reputationSpecificUIBehaviour != num)
|
|
{
|
|
ReputationSpecificUIBehaviour reputationSpecificUIBehaviour2 = this.reputationWatcher;
|
|
Action action2;
|
|
OKNNKFGFODL oknnkfgfodl = OKNNKFGFODL.GMNMHGMFGOL(reputationSpecificUIBehaviour2.PlayerReputationUpdated, action2);
|
|
reputationSpecificUIBehaviour2.PlayerReputationUpdated = oknnkfgfodl;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600635D RID: 25437 RVA: 0x0015D77C File Offset: 0x0015B97C
|
|
[Token(Token = "0x600635D")]
|
|
[Address(RVA = "0xF36A60", Offset = "0xF35860", VA = "0x180F36A60")]
|
|
private void PABKIEKBHGA(int? CJFGEMGOJHB)
|
|
{
|
|
ReputationSpecificUIBehaviour reputationSpecificUIBehaviour = this.reputationWatcher;
|
|
if (reputationSpecificUIBehaviour != 0 && reputationSpecificUIBehaviour.<IFBPANODIPA>k__BackingField != CJFGEMGOJHB)
|
|
{
|
|
this.OnEnable();
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600635E RID: 25438 RVA: 0x0015D7A4 File Offset: 0x0015B9A4
|
|
[Token(Token = "0x600635E")]
|
|
[Address(RVA = "0xF36AF0", Offset = "0xF358F0", VA = "0x180F36AF0", Slot = "5")]
|
|
protected sealed override void PICEBFBCNCL()
|
|
{
|
|
ReputationSpecificUIBehaviour reputationSpecificUIBehaviour = this.reputationWatcher;
|
|
if (reputationSpecificUIBehaviour.<IFBPANODIPA>k__BackingField != 0)
|
|
{
|
|
int? <IFBPANODIPA>k__BackingField = reputationSpecificUIBehaviour.<IFBPANODIPA>k__BackingField;
|
|
int num;
|
|
if (FGPIDGLCKEF.BOFKACFLIOB(num))
|
|
{
|
|
int num2 = 0;
|
|
base.ILGFOHIJHMG = num2;
|
|
return;
|
|
}
|
|
}
|
|
int <JOIIIGPDAKF>k__BackingField = EBAIPNMBKLK.FJJKKHPNMIM.<JOIIIGPDAKF>k__BackingField;
|
|
ReputationSpecificUIBehaviour reputationSpecificUIBehaviour2 = this.reputationWatcher;
|
|
if (reputationSpecificUIBehaviour2.<IFBPANODIPA>k__BackingField == 0)
|
|
{
|
|
}
|
|
int? <IFBPANODIPA>k__BackingField2 = reputationSpecificUIBehaviour2.<IFBPANODIPA>k__BackingField;
|
|
int num3;
|
|
bool flag = AIGGBBFKAKL.JLGKDMMMDKN((long)num3);
|
|
base.ILGFOHIJHMG = (flag ? 1 : 0);
|
|
}
|
|
|
|
// Token: 0x0600635F RID: 25439 RVA: 0x0015D820 File Offset: 0x0015BA20
|
|
[Token(Token = "0x600635F")]
|
|
[Address(RVA = "0xF366F0", Offset = "0xF354F0", VA = "0x180F366F0", Slot = "8")]
|
|
protected override void MGFKPEMKOOK()
|
|
{
|
|
if (this.reputationWatcher.<IFBPANODIPA>k__BackingField == 0)
|
|
{
|
|
Debug.LogWarning("CheerConditionalButton attempted button press without player!");
|
|
return;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06006360 RID: 25440 RVA: 0x0015D84C File Offset: 0x0015BA4C
|
|
[Token(Token = "0x6006360")]
|
|
[Address(RVA = "0xF36590", Offset = "0xF35390", VA = "0x180F36590")]
|
|
private void LPCFKNILLCB()
|
|
{
|
|
int <JOIIIGPDAKF>k__BackingField = EBAIPNMBKLK.FJJKKHPNMIM.<JOIIIGPDAKF>k__BackingField;
|
|
ReputationSpecificUIBehaviour reputationSpecificUIBehaviour = this.reputationWatcher;
|
|
if (reputationSpecificUIBehaviour.<IFBPANODIPA>k__BackingField == 0)
|
|
{
|
|
}
|
|
int? <IFBPANODIPA>k__BackingField = reputationSpecificUIBehaviour.<IFBPANODIPA>k__BackingField;
|
|
int num;
|
|
bool flag = AIGGBBFKAKL.JLGKDMMMDKN((long)num);
|
|
base.ILGFOHIJHMG = (flag ? 1 : 0);
|
|
}
|
|
|
|
// Token: 0x06006361 RID: 25441 RVA: 0x0015D894 File Offset: 0x0015BA94
|
|
[Token(Token = "0x6006361")]
|
|
[Address(RVA = "0xF36CF0", Offset = "0xF35AF0", VA = "0x180F36CF0")]
|
|
public CheerConditionalButton()
|
|
{
|
|
}
|
|
|
|
// Token: 0x040041D7 RID: 16855
|
|
[FieldOffset(Offset = "0x38")]
|
|
[Token(Token = "0x40041D7")]
|
|
[SerializeField]
|
|
[DDPIINEJFMD(JIBDPHMGEGO.Self, false, false, false)]
|
|
protected ReputationSpecificUIBehaviour reputationWatcher;
|
|
}
|
|
}
|