Elin Modding Docs Doc
Loading...
Searching...
No Matches
WidgetSystemIndicator.cs
1using System;
2using UnityEngine;
3using UnityEngine.UI;
4
5// Token: 0x0200064E RID: 1614
7{
8 // Token: 0x06002D61 RID: 11617 RVA: 0x000FCD08 File Offset: 0x000FAF08
9 public static void Refresh()
10 {
11 if (!WidgetSystemIndicator.Instance)
12 {
13 return;
14 }
15 WidgetSystemIndicator.Instance._Refresh();
16 }
17
18 // Token: 0x06002D62 RID: 11618 RVA: 0x000FCD21 File Offset: 0x000FAF21
19 public override void OnActivate()
20 {
21 WidgetSystemIndicator.Instance = this;
22 this._Refresh();
23 }
24
25 // Token: 0x06002D63 RID: 11619 RVA: 0x000FCD30 File Offset: 0x000FAF30
26 public void _Refresh()
27 {
28 this.goMuteBGM.SetActive(EMono.Sound.muteBGM);
29 this.goHideBalloon.SetActive(!EMono.ui.rectDynamic.gameObject.activeSelf);
30 this.goLowBlock.SetActive(EMono.game.config.showRoof);
31 this.textDebug.SetActive(EMono.debug.enable);
32 this.textDebug.text = "*Debug* " + EMono.core.version.GetText();
33 this.RebuildLayout(true);
34 }
35
36 // Token: 0x06002D64 RID: 11620 RVA: 0x000FCDCE File Offset: 0x000FAFCE
37 public override void OnFlip()
38 {
39 base.GetComponent<HorizontalLayoutGroup>().childAlignment = (this.flip ? TextAnchor.LowerRight : TextAnchor.LowerLeft);
40 this.Rect().pivot = new Vector2((float)(this.flip ? 1 : 0), 0f);
41 }
42
43 // Token: 0x0400193C RID: 6460
44 public static WidgetSystemIndicator Instance;
45
46 // Token: 0x0400193D RID: 6461
47 public GameObject goMuteBGM;
48
49 // Token: 0x0400193E RID: 6462
50 public GameObject goHideBalloon;
51
52 // Token: 0x0400193F RID: 6463
53 public GameObject goLowBlock;
54
55 // Token: 0x04001940 RID: 6464
56 public UIText textDebug;
57}
Definition EMono.cs:6