Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
BaseNotification Class Reference
Inheritance diagram for BaseNotification:
EClass NotificationCondition NotificationExceedParty NotificationGlobal NotificationStats NotificationBuff NotificationStance NotificationBattle NotificationGuest NotificationHome NotificationStatsMana

Public Member Functions

virtual ItemNotice GetMold ()
 
virtual LayoutGroup GetLayoutGroup ()
 
void Refresh ()
 
virtual void OnClick ()
 
virtual void OnRefresh ()
 
virtual bool ShouldRemove ()
 
virtual void OnInstantiate ()
 

Public Attributes

ItemNotice item
 
string text
 
string lastText
 

Properties

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 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 5 of file BaseNotification.cs.

Member Function Documentation

◆ GetLayoutGroup()

virtual LayoutGroup BaseNotification.GetLayoutGroup ( )
inlinevirtual

Reimplemented in NotificationBuff.

Definition at line 28 of file BaseNotification.cs.

29 {
30 return null;
31 }

Referenced by BaseWidgetNotice.Add().

◆ GetMold()

virtual ItemNotice BaseNotification.GetMold ( )
inlinevirtual

Reimplemented in NotificationBuff, and NotificationStance.

Definition at line 23 of file BaseNotification.cs.

24 {
25 return null;
26 }

Referenced by BaseWidgetNotice.Add().

◆ OnClick()

virtual void BaseNotification.OnClick ( )
inlinevirtual

Reimplemented in NotificationBattle, NotificationCondition, NotificationGuest, NotificationHome, and NotificationStats.

Definition at line 47 of file BaseNotification.cs.

48 {
49 EClass.ui.AddLayer<LayerJournal>();
50 }
Definition: EClass.cs:5
static UI ui
Definition: EClass.cs:16

References EClass.ui.

◆ OnInstantiate()

virtual void BaseNotification.OnInstantiate ( )
inlinevirtual

Reimplemented in NotificationBuff.

Definition at line 61 of file BaseNotification.cs.

62 {
63 }

Referenced by BaseWidgetNotice.Add().

◆ OnRefresh()

virtual void BaseNotification.OnRefresh ( )
inlinevirtual

◆ Refresh()

void BaseNotification.Refresh ( )
inline

Definition at line 33 of file BaseNotification.cs.

34 {
35 OnRefresh();
36 if (text != lastText)
37 {
38 item.button.mainText.text = text;
39 lastText = text;
40 if (item.gameObject.activeInHierarchy)
41 {
42 item.button.RebuildLayout(recursive: true);
43 }
44 }
45 }
virtual void OnRefresh()
UIButton button
Definition: ItemNotice.cs:11

References ItemNotice.button, item, lastText, OnRefresh(), and text.

Referenced by BaseWidgetNotice._RefreshAll(), and BaseWidgetNotice.Add().

◆ ShouldRemove()

virtual bool BaseNotification.ShouldRemove ( )
inlinevirtual

Reimplemented in NotificationCondition.

Definition at line 56 of file BaseNotification.cs.

57 {
58 return false;
59 }

Member Data Documentation

◆ item

◆ lastText

string BaseNotification.lastText

Definition at line 11 of file BaseNotification.cs.

Referenced by Refresh().

◆ text

Property Documentation

◆ idSprite

virtual int BaseNotification.idSprite
get

Definition at line 15 of file BaseNotification.cs.

Referenced by BaseWidgetNotice.Add().

◆ Interactable

virtual bool BaseNotification.Interactable
get

Definition at line 19 of file BaseNotification.cs.

Referenced by BaseWidgetNotice.Add().

◆ onShowTooltip

virtual Action<UITooltip> BaseNotification.onShowTooltip
get

Definition at line 21 of file BaseNotification.cs.

Referenced by BaseWidgetNotice.Add().

◆ Sprite

virtual Sprite BaseNotification.Sprite
get

Definition at line 13 of file BaseNotification.cs.

Referenced by BaseWidgetNotice.Add().

◆ Visible

virtual bool BaseNotification.Visible
get

Definition at line 17 of file BaseNotification.cs.

Referenced by BaseWidgetNotice._RefreshAll().


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