Elin Decompiled Documentation EA 23.197 Nightly Patch 1
Loading...
Searching...
No Matches
NotificationCooldown Class Reference
Inheritance diagram for NotificationCooldown:
BaseNotification EClass

Public Member Functions

override ItemNotice GetMold ()
 
override int GetSortVal ()
 
override void OnRefresh ()
 
override bool ShouldRemove ()
 
- Public Member Functions inherited from BaseNotification
virtual ItemNotice GetMold ()
 
virtual LayoutGroup GetLayoutGroup ()
 
virtual int GetSortVal ()
 
void Refresh ()
 
virtual void OnClick ()
 
virtual void OnRefresh ()
 
virtual bool ShouldRemove ()
 
virtual void OnInstantiate ()
 

Public Attributes

int idEle
 
- Public Attributes inherited from BaseNotification
ItemNotice item
 
string text
 
string lastText
 

Properties

SourceElement.Row row [get]
 
override bool Visible [get]
 
override bool Interactable [get]
 
override Sprite Sprite [get]
 
- Properties inherited from BaseNotification
virtual Sprite Sprite [get]
 
virtual int idSprite [get]
 
virtual bool Visible [get]
 
virtual bool Interactable [get]
 
virtual Action< UITooltiponShowTooltip [get]
 
- Properties inherited from EClass
static Game game [get]
 
static bool AdvMode [get]
 
static Player player [get]
 
static Chara pc [get]
 
static UI ui [get]
 
static Map _map [get]
 
static Zone _zone [get]
 
static FactionBranch Branch [get]
 
static FactionBranch BranchOrHomeBranch [get]
 
static Faction Home [get]
 
static Faction Wilds [get]
 
static Scene scene [get]
 
static BaseGameScreen screen [get]
 
static GameSetting setting [get]
 
static GameData gamedata [get]
 
static ColorProfile Colors [get]
 
static World world [get]
 
static SourceManager sources [get]
 
static SourceManager editorSources [get]
 
static SoundManager Sound [get]
 
static CoreDebug debug [get]
 

Additional Inherited Members

- Static Public Member Functions inherited from EClass
static int rndSeed (int a, int seed)
 
static int rnd (long a)
 
static int rnd (int a)
 
static int curve (int a, int start, int step, int rate=75)
 
static int rndHalf (int a)
 
static float rndf (float a)
 
static int rndSqrt (int a)
 
static void Wait (float a, Card c)
 
static void Wait (float a, Point p)
 
static int Bigger (int a, int b)
 
static int Smaller (int a, int b)
 
- Static Public Attributes inherited from EClass
static Core core
 

Detailed Description

Definition at line 3 of file NotificationCooldown.cs.

Member Function Documentation

◆ GetMold()

override ItemNotice NotificationCooldown.GetMold ( )
inlinevirtual

Reimplemented from BaseNotification.

Definition at line 15 of file NotificationCooldown.cs.

16 {
18 }
static WidgetStats Instance
Definition: WidgetStats.cs:12
ItemNotice moldCooldown
Definition: WidgetStats.cs:22

References WidgetStats.Instance, and WidgetStats.moldCooldown.

◆ GetSortVal()

override int NotificationCooldown.GetSortVal ( )
inlinevirtual

Reimplemented from BaseNotification.

Definition at line 20 of file NotificationCooldown.cs.

21 {
22 return 1000000 + idEle;
23 }

References idEle.

◆ OnRefresh()

override void NotificationCooldown.OnRefresh ( )
inlinevirtual

Reimplemented from BaseNotification.

Definition at line 25 of file NotificationCooldown.cs.

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 }
List< int > _cooldowns
Definition: Chara.cs:58
int GetCooldown(int idEle)
Definition: Chara.cs:8338
Definition: EClass.cs:5
static Chara pc
Definition: EClass.cs:14
SourceElement.Row row

References Chara._cooldowns, Chara.GetCooldown(), idEle, EClass.pc, row, and BaseNotification.text.

◆ ShouldRemove()

override bool NotificationCooldown.ShouldRemove ( )
inlinevirtual

Reimplemented from BaseNotification.

Definition at line 38 of file NotificationCooldown.cs.

39 {
40 if (EClass.pc._cooldowns != null)
41 {
42 return !EClass.pc.HasCooldown(idEle);
43 }
44 return true;
45 }
bool HasCooldown(int idEle)
Definition: Chara.cs:8333

References Chara._cooldowns, Chara.HasCooldown(), idEle, and EClass.pc.

Member Data Documentation

◆ idEle

int NotificationCooldown.idEle

Definition at line 5 of file NotificationCooldown.cs.

Referenced by GetSortVal(), OnRefresh(), WidgetStats.OnRefresh(), and ShouldRemove().

Property Documentation

◆ Interactable

override bool NotificationCooldown.Interactable
get

Definition at line 11 of file NotificationCooldown.cs.

◆ row

SourceElement.Row NotificationCooldown.row
get

Definition at line 7 of file NotificationCooldown.cs.

Referenced by OnRefresh().

◆ Sprite

override Sprite NotificationCooldown.Sprite
get

Definition at line 13 of file NotificationCooldown.cs.

◆ Visible

override bool NotificationCooldown.Visible
get

Definition at line 9 of file NotificationCooldown.cs.


The documentation for this class was generated from the following file: