-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUpdateGUI.cs
More file actions
56 lines (36 loc) · 1.48 KB
/
UpdateGUI.cs
File metadata and controls
56 lines (36 loc) · 1.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
using System;
using UnityEngine;
using MonoMod.RuntimeDetour;
using System.Reflection;
using Dungeonator;
namespace HiddenStats
{
internal class UpdateGUI : MonoBehaviour
{
public PlayerStats p;
public Dungeon d;
// Token: 0x06000019 RID: 25 RVA: 0x00002E64 File Offset: 0x00001064
private void Update()
{
try
{
p = ETGModMainBehaviour.FindObjectOfType<PlayerStats>();
d = ETGModMainBehaviour.FindObjectOfType<Dungeon>();
if (p != null)
{
HiddenStats.floorMagnificence.text = "Floor Magnificence: " + p.m_floorMagnificence.ToString();
HiddenStats.Magnificence.text = "Magnificence: " + p.m_magnificence.ToString();
}
HiddenStats.HeartMagnificence.text = "Heart Magnificence: " + RewardManager.AdditionalHeartTierMagnificence.ToString();
HiddenStats.SynergyFactor.text = "Synergy Factor: " + SynergyFactorConstants.GetSynergyFactor().ToString();
if (d != null)
{
HiddenStats.generatedMagnificence.text = "Chest Magnificence: " + d.GeneratedMagnificence.ToString();
HiddenStats.TotalMagnificence.text = "Total Magnificence: " + (d.GeneratedMagnificence + p.Magnificence).ToString();
}
} catch (Exception e)
{
}
}
}
}