Elin Modding Docs Doc
Loading...
Searching...
No Matches
NotificationCondition.cs
1using System;
2using UnityEngine;
3
4// Token: 0x0200063F RID: 1599
6{
7 // Token: 0x17000CBC RID: 3260
8 // (get) Token: 0x06002CE7 RID: 11495 RVA: 0x000FB5AD File Offset: 0x000F97AD
9 public override bool Visible
10 {
11 get
12 {
13 return !this.text.IsEmpty();
14 }
15 }
16
17 // Token: 0x06002CE8 RID: 11496 RVA: 0x000FB5BD File Offset: 0x000F97BD
18 public override bool ShouldRemove()
19 {
20 return this.condition.IsKilled || (EClass.core.IsGameStarted && !EClass.pc.conditions.Contains(this.condition));
21 }
22
23 // Token: 0x17000CBD RID: 3261
24 // (get) Token: 0x06002CE9 RID: 11497 RVA: 0x000FB5F4 File Offset: 0x000F97F4
25 public override bool Interactable
26 {
27 get
28 {
29 return !this.condition.source.GetDetail().IsEmpty();
30 }
31 }
32
33 // Token: 0x17000CBE RID: 3262
34 // (get) Token: 0x06002CEA RID: 11498 RVA: 0x000FB60E File Offset: 0x000F980E
35 public override Action<UITooltip> onShowTooltip
36 {
37 get
38 {
39 return delegate(UITooltip t)
40 {
41 this.condition.WriteNote(t.note, null);
42 };
43 }
44 }
45
46 // Token: 0x17000CBF RID: 3263
47 // (get) Token: 0x06002CEB RID: 11499 RVA: 0x000FB61C File Offset: 0x000F981C
48 public override Sprite Sprite
49 {
50 get
51 {
52 return this.condition.GetSprite();
53 }
54 }
55
56 // Token: 0x06002CEC RID: 11500 RVA: 0x000FB62C File Offset: 0x000F982C
57 public override void OnClick()
58 {
59 if (this.condition.CanManualRemove)
60 {
61 SE.Trash();
62 this.condition.Kill(false);
63 WidgetStats.RefreshAll();
64 if (WidgetStats.Instance)
65 {
66 WidgetStats.Instance.layout.RebuildLayout(false);
67 return;
68 }
69 }
70 else
71 {
72 SE.Beep();
73 }
74 }
75
76 // Token: 0x06002CED RID: 11501 RVA: 0x000FB680 File Offset: 0x000F9880
77 public override void OnRefresh()
78 {
79 this.text = this.condition.GetText() + (EClass.debug.showExtra ? (" " + this.condition.value.ToString()) : "");
80 this.item.button.mainText.color = this.condition.GetColor(this.item.button.skinRoot.GetButton().colorProf);
81 }
82
83 // Token: 0x0400191D RID: 6429
84 public Condition condition;
85}