Elin Decompiled Documentation EA 23.197 Nightly Patch 1
Loading...
Searching...
No Matches
NotificationCooldown.cs
Go to the documentation of this file.
1using UnityEngine;
2
4{
5 public int idEle;
6
7 public SourceElement.Row row => EClass.sources.elements.map.TryGetValue(idEle, 0);
8
9 public override bool Visible => true;
10
11 public override bool Interactable => false;
12
13 public override Sprite Sprite => null;
14
15 public override ItemNotice GetMold()
16 {
18 }
19
20 public override int GetSortVal()
21 {
22 return 1000000 + idEle;
23 }
24
25 public override void OnRefresh()
26 {
27 if (EClass.pc._cooldowns != null)
28 {
29 int cooldown = EClass.pc.GetCooldown(idEle);
30 if (cooldown != 0)
31 {
32 text = cooldown.ToString() ?? "";
33 item.button.subText.text = row.GetName();
34 }
35 }
36 }
37
38 public override bool ShouldRemove()
39 {
40 if (EClass.pc._cooldowns != null)
41 {
42 return !EClass.pc.HasCooldown(idEle);
43 }
44 return true;
45 }
46}
List< int > _cooldowns
Definition: Chara.cs:58
int GetCooldown(int idEle)
Definition: Chara.cs:8338
bool HasCooldown(int idEle)
Definition: Chara.cs:8333
Definition: EClass.cs:5
static SourceManager sources
Definition: EClass.cs:42
static Chara pc
Definition: EClass.cs:14
override bool ShouldRemove()
override ItemNotice GetMold()
SourceElement.Row row
SourceElement elements
static WidgetStats Instance
Definition: WidgetStats.cs:12
ItemNotice moldCooldown
Definition: WidgetStats.cs:22