337 lines
9.3 KiB
C#
337 lines
9.3 KiB
C#
using System;
|
|
using RecNet;
|
|
using RecRoom;
|
|
using UnityEngine;
|
|
|
|
// Token: 0x02001229 RID: 4649
|
|
[RequireComponent(typeof(PlayerSpecificUIBehaviour))]
|
|
public class PlayerTooltipUpdater : MonoBehaviour
|
|
{
|
|
// Token: 0x06027EE2 RID: 163554 RVA: 0x00B1EACC File Offset: 0x00B1CCCC
|
|
private void GIEADMMJCKD()
|
|
{
|
|
LNPBGKENDPK.HBBDEELDEMH -= this.GJKMFGNPMPB;
|
|
}
|
|
|
|
// Token: 0x06027EE3 RID: 163555 RVA: 0x00B1EAE0 File Offset: 0x00B1CCE0
|
|
private void DMAPCNBHMDD()
|
|
{
|
|
LNPBGKENDPK.HBBDEELDEMH += this.HMMAEPGEMEB;
|
|
this.FDIIOIENAEK();
|
|
}
|
|
|
|
// Token: 0x06027EE4 RID: 163556 RVA: 0x00B1EAFC File Offset: 0x00B1CCFC
|
|
private void GLMHCFDBCMC(long HPCOKMAPCHB)
|
|
{
|
|
if (this.playerWatcher.NAJBCPFNBAB == HPCOKMAPCHB)
|
|
{
|
|
this.KKBAINBHLCK();
|
|
}
|
|
}
|
|
|
|
// Token: 0x06027EE5 RID: 163557 RVA: 0x00B1EB34 File Offset: 0x00B1CD34
|
|
private void HECDEJAMFAA()
|
|
{
|
|
LNPBGKENDPK.HBBDEELDEMH -= this.NPMEAMPOCDB;
|
|
}
|
|
|
|
// Token: 0x06027EE6 RID: 163558 RVA: 0x00B1EB48 File Offset: 0x00B1CD48
|
|
private void OnDestroy()
|
|
{
|
|
if (this.playerWatcher != null)
|
|
{
|
|
this.playerWatcher.KKBAINBHLCK -= this.KKBAINBHLCK;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06027EE7 RID: 163559 RVA: 0x00B1EB74 File Offset: 0x00B1CD74
|
|
private void MLNMLMNJMBB()
|
|
{
|
|
if (this.playerWatcher.FDKMNNANOFN() == null)
|
|
{
|
|
this.tooltip.Message = string.Empty;
|
|
return;
|
|
}
|
|
string statusText = PlayerStatusText.GetStatusText(this.playerWatcher.CNEINLCOBDF, this.playerWatcher.PMGEFGBDLJA());
|
|
if (!string.IsNullOrEmpty(statusText))
|
|
{
|
|
this.tooltip.Message = string.Format(this.CHCKNKHCHJL, this.playerWatcher.FDKMNNANOFN().GNGBHNKCECD(), statusText);
|
|
}
|
|
else
|
|
{
|
|
this.tooltip.Message = string.Format(this.FCCEGMLBJDE, this.playerWatcher.FDKMNNANOFN().ILNMPHDNCEO());
|
|
}
|
|
}
|
|
|
|
// Token: 0x06027EE9 RID: 163561 RVA: 0x00B1EC3C File Offset: 0x00B1CE3C
|
|
private void ENCCPJPKBAL(long HPCOKMAPCHB)
|
|
{
|
|
if (this.playerWatcher.JFFNNICEAIJ() == HPCOKMAPCHB)
|
|
{
|
|
this.JJKNFHLOJPP();
|
|
}
|
|
}
|
|
|
|
// Token: 0x06027EEA RID: 163562 RVA: 0x00B1EC74 File Offset: 0x00B1CE74
|
|
private void NGHJFABFAOA()
|
|
{
|
|
this.playerWatcher = base.GetComponent<PlayerSpecificUIBehaviour>();
|
|
this.playerWatcher.KKBAINBHLCK += this.FDIIOIENAEK;
|
|
}
|
|
|
|
// Token: 0x06027EEB RID: 163563 RVA: 0x00B1EC9C File Offset: 0x00B1CE9C
|
|
private void JFFLHAMMGAH()
|
|
{
|
|
this.playerWatcher = base.GetComponent<PlayerSpecificUIBehaviour>();
|
|
this.playerWatcher.KKBAINBHLCK += this.HMGJMHANNCN;
|
|
}
|
|
|
|
// Token: 0x06027EEC RID: 163564 RVA: 0x00B1ECC4 File Offset: 0x00B1CEC4
|
|
private void JPLHGLLAELO()
|
|
{
|
|
LNPBGKENDPK.HBBDEELDEMH += this.CLJPOCIAKIE;
|
|
this.HMGJMHANNCN();
|
|
}
|
|
|
|
// Token: 0x06027EED RID: 163565 RVA: 0x00B1ECE0 File Offset: 0x00B1CEE0
|
|
private void IEOCOHOBEOC()
|
|
{
|
|
LNPBGKENDPK.HBBDEELDEMH -= this.CLJPOCIAKIE;
|
|
}
|
|
|
|
// Token: 0x06027EEE RID: 163566 RVA: 0x00B1ECF4 File Offset: 0x00B1CEF4
|
|
private void JJKNFHLOJPP()
|
|
{
|
|
if (this.playerWatcher.FDKMNNANOFN() == null)
|
|
{
|
|
this.tooltip.Message = string.Empty;
|
|
return;
|
|
}
|
|
string text = PlayerStatusText.IAKODNJELJG(this.playerWatcher.CNEINLCOBDF, this.playerWatcher.ODBKGKGFOKH);
|
|
if (!string.IsNullOrEmpty(text))
|
|
{
|
|
this.tooltip.Message = string.Format(this.CHCKNKHCHJL, this.playerWatcher.CNEINLCOBDF.GNGBHNKCECD(), text);
|
|
}
|
|
else
|
|
{
|
|
this.tooltip.Message = string.Format(this.FCCEGMLBJDE, this.playerWatcher.FDKMNNANOFN().CJEPDEPLGJJ());
|
|
}
|
|
}
|
|
|
|
// Token: 0x06027EEF RID: 163567 RVA: 0x00B1ED9C File Offset: 0x00B1CF9C
|
|
private void AEFJPCJBEOM()
|
|
{
|
|
if (this.playerWatcher != null)
|
|
{
|
|
this.playerWatcher.OMLJNAINNID(new Action(this.HMGJMHANNCN));
|
|
}
|
|
}
|
|
|
|
// Token: 0x06027EF0 RID: 163568 RVA: 0x00B1EDC8 File Offset: 0x00B1CFC8
|
|
private void PGIAPNBIIJG()
|
|
{
|
|
if (this.playerWatcher != null)
|
|
{
|
|
this.playerWatcher.OMLJNAINNID(new Action(this.JJKNFHLOJPP));
|
|
}
|
|
}
|
|
|
|
// Token: 0x06027EF1 RID: 163569 RVA: 0x00B1EDF4 File Offset: 0x00B1CFF4
|
|
private void Awake()
|
|
{
|
|
this.playerWatcher = base.GetComponent<PlayerSpecificUIBehaviour>();
|
|
this.playerWatcher.KKBAINBHLCK += this.KKBAINBHLCK;
|
|
}
|
|
|
|
// Token: 0x06027EF2 RID: 163570 RVA: 0x00B1EE1C File Offset: 0x00B1D01C
|
|
private void FHNCHPMIBJP()
|
|
{
|
|
if (this.playerWatcher != null)
|
|
{
|
|
this.playerWatcher.OMLJNAINNID(new Action(this.KKBAINBHLCK));
|
|
}
|
|
}
|
|
|
|
// Token: 0x06027EF3 RID: 163571 RVA: 0x00B1EE48 File Offset: 0x00B1D048
|
|
private void HMGJMHANNCN()
|
|
{
|
|
if (this.playerWatcher.CNEINLCOBDF == null)
|
|
{
|
|
this.tooltip.Message = string.Empty;
|
|
return;
|
|
}
|
|
string statusText = PlayerStatusText.GetStatusText(this.playerWatcher.FDKMNNANOFN(), this.playerWatcher.OEBDPFIFDOP());
|
|
if (!string.IsNullOrEmpty(statusText))
|
|
{
|
|
this.tooltip.Message = string.Format(this.CHCKNKHCHJL, this.playerWatcher.CNEINLCOBDF.ILNMPHDNCEO(), statusText);
|
|
}
|
|
else
|
|
{
|
|
this.tooltip.Message = string.Format(this.FCCEGMLBJDE, this.playerWatcher.FDKMNNANOFN().GNGBHNKCECD());
|
|
}
|
|
}
|
|
|
|
// Token: 0x06027EF4 RID: 163572 RVA: 0x00B1EEF0 File Offset: 0x00B1D0F0
|
|
private void POMCHIPOPEA()
|
|
{
|
|
this.playerWatcher = base.GetComponent<PlayerSpecificUIBehaviour>();
|
|
this.playerWatcher.PDNDCOGEIFG(new Action(this.JJKNFHLOJPP));
|
|
}
|
|
|
|
// Token: 0x06027EF5 RID: 163573 RVA: 0x00B1EF18 File Offset: 0x00B1D118
|
|
private void INGMCGGJGMA()
|
|
{
|
|
this.playerWatcher = base.GetComponent<PlayerSpecificUIBehaviour>();
|
|
this.playerWatcher.JNECEJBEIFL(new Action(this.HMGJMHANNCN));
|
|
}
|
|
|
|
// Token: 0x06027EF6 RID: 163574 RVA: 0x00B1EF40 File Offset: 0x00B1D140
|
|
private void FDIIOIENAEK()
|
|
{
|
|
if (this.playerWatcher.FDKMNNANOFN() == null)
|
|
{
|
|
this.tooltip.Message = string.Empty;
|
|
return;
|
|
}
|
|
string text = PlayerStatusText.LLMIHIPEAOM(this.playerWatcher.FDKMNNANOFN(), this.playerWatcher.OEBDPFIFDOP());
|
|
if (!string.IsNullOrEmpty(text))
|
|
{
|
|
this.tooltip.Message = string.Format(this.CHCKNKHCHJL, this.playerWatcher.CNEINLCOBDF.GNGBHNKCECD(), text);
|
|
}
|
|
else
|
|
{
|
|
this.tooltip.Message = string.Format(this.FCCEGMLBJDE, this.playerWatcher.CNEINLCOBDF.JNIKJPEHKAF());
|
|
}
|
|
}
|
|
|
|
// Token: 0x06027EF7 RID: 163575 RVA: 0x00B1EFE8 File Offset: 0x00B1D1E8
|
|
private void BJGJHPBABDB()
|
|
{
|
|
if (this.playerWatcher != null)
|
|
{
|
|
this.playerWatcher.KKBAINBHLCK -= this.KKBAINBHLCK;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06027EF8 RID: 163576 RVA: 0x00B1F014 File Offset: 0x00B1D214
|
|
private void KKBAINBHLCK()
|
|
{
|
|
if (this.playerWatcher.CNEINLCOBDF == null)
|
|
{
|
|
this.tooltip.Message = string.Empty;
|
|
return;
|
|
}
|
|
string statusText = PlayerStatusText.GetStatusText(this.playerWatcher.CNEINLCOBDF, this.playerWatcher.ODBKGKGFOKH);
|
|
if (!string.IsNullOrEmpty(statusText))
|
|
{
|
|
this.tooltip.Message = string.Format(this.CHCKNKHCHJL, this.playerWatcher.CNEINLCOBDF.LOEPMFKLBKM, statusText);
|
|
}
|
|
else
|
|
{
|
|
this.tooltip.Message = string.Format(this.FCCEGMLBJDE, this.playerWatcher.CNEINLCOBDF.LOEPMFKLBKM);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06027EF9 RID: 163577 RVA: 0x00B1F0BC File Offset: 0x00B1D2BC
|
|
private void GJKMFGNPMPB(long HPCOKMAPCHB)
|
|
{
|
|
long? num = this.playerWatcher.ICDMMMDEHLO();
|
|
if (num.GetValueOrDefault() != HPCOKMAPCHB || num != null)
|
|
{
|
|
this.FFMDJBNDGPL();
|
|
}
|
|
}
|
|
|
|
// Token: 0x06027EFA RID: 163578 RVA: 0x00B1F0F4 File Offset: 0x00B1D2F4
|
|
private void LPBGGKDFLLN()
|
|
{
|
|
this.playerWatcher = base.GetComponent<PlayerSpecificUIBehaviour>();
|
|
this.playerWatcher.PDNDCOGEIFG(new Action(this.FFMDJBNDGPL));
|
|
}
|
|
|
|
// Token: 0x06027EFB RID: 163579 RVA: 0x00B1F11C File Offset: 0x00B1D31C
|
|
private void NPMEAMPOCDB(long HPCOKMAPCHB)
|
|
{
|
|
if (this.playerWatcher.GDINIDIFDBE() == HPCOKMAPCHB)
|
|
{
|
|
this.FDIIOIENAEK();
|
|
}
|
|
}
|
|
|
|
// Token: 0x06027EFC RID: 163580 RVA: 0x00B1F154 File Offset: 0x00B1D354
|
|
private void OnDisable()
|
|
{
|
|
LNPBGKENDPK.HBBDEELDEMH -= this.GLMHCFDBCMC;
|
|
}
|
|
|
|
// Token: 0x06027EFD RID: 163581 RVA: 0x00B1F168 File Offset: 0x00B1D368
|
|
private void EBIHIJKFLDM()
|
|
{
|
|
if (this.playerWatcher != null)
|
|
{
|
|
this.playerWatcher.OMLJNAINNID(new Action(this.JJKNFHLOJPP));
|
|
}
|
|
}
|
|
|
|
// Token: 0x06027EFE RID: 163582 RVA: 0x00B1F194 File Offset: 0x00B1D394
|
|
private void CLJPOCIAKIE(long HPCOKMAPCHB)
|
|
{
|
|
long? num = this.playerWatcher.JFFNNICEAIJ();
|
|
if (num.GetValueOrDefault() != HPCOKMAPCHB || num != null)
|
|
{
|
|
this.FDIIOIENAEK();
|
|
}
|
|
}
|
|
|
|
// Token: 0x06027EFF RID: 163583 RVA: 0x00B1F1CC File Offset: 0x00B1D3CC
|
|
private void FFMDJBNDGPL()
|
|
{
|
|
if (this.playerWatcher.FDKMNNANOFN() == null)
|
|
{
|
|
this.tooltip.Message = string.Empty;
|
|
return;
|
|
}
|
|
string text = PlayerStatusText.BDKPCAFAGDA(this.playerWatcher.CNEINLCOBDF, this.playerWatcher.OEBDPFIFDOP());
|
|
if (!string.IsNullOrEmpty(text))
|
|
{
|
|
this.tooltip.Message = string.Format(this.CHCKNKHCHJL, this.playerWatcher.FDKMNNANOFN().CJEPDEPLGJJ(), text);
|
|
}
|
|
else
|
|
{
|
|
this.tooltip.Message = string.Format(this.FCCEGMLBJDE, this.playerWatcher.FDKMNNANOFN().JNIKJPEHKAF());
|
|
}
|
|
}
|
|
|
|
// Token: 0x06027F00 RID: 163584 RVA: 0x00B1F274 File Offset: 0x00B1D474
|
|
private void OnEnable()
|
|
{
|
|
LNPBGKENDPK.HBBDEELDEMH += this.GLMHCFDBCMC;
|
|
this.KKBAINBHLCK();
|
|
}
|
|
|
|
// Token: 0x06027F01 RID: 163585 RVA: 0x00B1F290 File Offset: 0x00B1D490
|
|
private void HMMAEPGEMEB(long HPCOKMAPCHB)
|
|
{
|
|
if (this.playerWatcher.JFFNNICEAIJ() == HPCOKMAPCHB)
|
|
{
|
|
this.FFMDJBNDGPL();
|
|
}
|
|
}
|
|
|
|
// Token: 0x040063A3 RID: 25507
|
|
[SerializeField]
|
|
[ENMFCLPAKBJ(FOGKDGELKHN.Self, false)]
|
|
private PlayerSpecificUIBehaviour playerWatcher;
|
|
|
|
// Token: 0x040063A4 RID: 25508
|
|
[SerializeField]
|
|
[ENMFCLPAKBJ(FOGKDGELKHN.Self, false)]
|
|
private Tooltip tooltip;
|
|
|
|
// Token: 0x040063A5 RID: 25509
|
|
private string CHCKNKHCHJL = "<i>@A{0}</i>\n{1}";
|
|
|
|
// Token: 0x040063A6 RID: 25510
|
|
private string FCCEGMLBJDE = "<i>@A{0}</i>";
|
|
}
|