Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
WidgetNotice Class Reference
Inheritance diagram for WidgetNotice:
BaseWidgetNotice Widget EMono IChangeResolution ISkinRoot

Classes

class  Extra
 

Public Member Functions

override object CreateExtra ()
 
override void _OnActivate ()
 
override void OnRefresh ()
 
override void OnSetContextMenu (UIContextMenu m)
 
- Public Member Functions inherited from BaseWidgetNotice
sealed override void OnActivate ()
 
virtual void _OnActivate ()
 
void _RefreshAll ()
 
virtual void OnRefresh ()
 
ItemNotice Add (BaseNotification n, Transform parent=null)
 
void Remove (BaseNotification n)
 
override void OnFlip ()
 
override void OnSetContextMenu (UIContextMenu m)
 
void RefreshLayout ()
 
override void OnApplySkin ()
 
- Public Member Functions inherited from Widget
void Test ()
 
bool IsInRightMode ()
 
void Activate ()
 
void RefreshOrder ()
 
virtual void OnActivate ()
 
virtual object CreateExtra ()
 
void Deactivate ()
 
virtual void OnDeactivate ()
 
void Close ()
 
void Reactivate ()
 
virtual void OnManagerActivate ()
 
virtual void OnManagerDeactivate ()
 
void SetAnchor (RectPosition p)
 
void SetPivot (RectPosition p)
 
virtual void OnChangePivot ()
 
void UpdateConfig ()
 
virtual void OnUpdateConfig ()
 
void ClampToScreen ()
 
virtual void OnChangeResolution ()
 
void OnChangePosition ()
 
virtual void OnChangeActionMode ()
 
virtual void OnFlip ()
 
bool IsAlignTop ()
 
Layer AddLayer (Layer l, Transform trans)
 
void RefreshTipPivotPosition ()
 
SkinSet GetSkin ()
 
SkinConfig GetSkinConfig ()
 
void SetSkin (int id, int v=0)
 
void TestSkin ()
 
virtual void ApplySkin ()
 
virtual void OnApplySkin ()
 
void InstantiateDeco (SkinDeco deco)
 
void AddDeco (SkinDeco deco)
 
void RemoveDeco (SkinDeco deco)
 
virtual bool CanShowContextMenu ()
 
void ShowContextMenu ()
 
void SetBaseContextMenu (UIContextMenu m)
 
virtual void OnSetContextMenu (UIContextMenu m)
 
void SetGridContextMenu (UIContextMenu m)
 
void SoundActivate ()
 
void OnChangeResolution ()
 
SkinSet GetSkin ()
 
SkinConfig GetSkinConfig ()
 

Static Public Member Functions

static void RefreshAll ()
 
- Static Public Member Functions inherited from EMono
static int rnd (int a)
 

Public Attributes

Transform H1
 
Transform H2
 
Transform H3
 
Transform H4
 
ItemNotice itemBattle
 
ItemNotice itemGuest
 
int battles
 
int guests
 
- Public Attributes inherited from BaseWidgetNotice
Sprite[] sprites
 
List< BaseNotificationlist = new List<BaseNotification>()
 
VerticalLayoutGroup layout
 
VerticalLayoutGroup layout2
 
ItemNotice mold
 
- Public Attributes inherited from Widget
Image imageBG
 
SoundData soundActivate
 
UIDragPanel dragPanel
 
RectTransform tipPivotLeft
 
RectTransform tipPivotRight
 

Static Public Attributes

static WidgetNotice Instance
 
- Static Public Attributes inherited from EMono
static Core core
 

Properties

Extra extra [get]
 
- Properties inherited from Widget
string ID [get]
 
Config config [get]
 
SkinRoot skinRoot [get]
 
bool IsSealed [get]
 
virtual bool ShowStyleMenu [get]
 
virtual bool AlwaysTop [get]
 
virtual bool IsStaticPosition [get]
 
virtual bool AlwaysBottom [get]
 
virtual Type SetSiblingAfter [get]
 
virtual bool ShowInBuildMode [get]
 
virtual bool RightClickToClose [get]
 
virtual bool AllowRightClickToClose [get]
 
- Properties inherited from EMono
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 Scene scene [get]
 
static BaseGameScreen screen [get]
 
static GameSetting setting [get]
 
static GameData gamedata [get]
 
static ColorProfile Colors [get]
 
static World world [get]
 
static SoundManager Sound [get]
 
static SourceManager sources [get]
 
static SourceManager editorSources [get]
 
static CoreDebug debug [get]
 

Additional Inherited Members

- Public Types inherited from Widget
enum  WidgetType { Default , ZoomMenu }
 
enum  State { Active , Inactive }
 
- Protected Member Functions inherited from Widget
void ClampToScreenEnsured (Component c, Vector2 anchoredPos)
 
void ClampToScreen (RectTransform rect, float margin=10f)
 
- Protected Attributes inherited from BaseWidgetNotice
bool dirty
 
- Protected Attributes inherited from Widget
bool flip
 

Detailed Description

Definition at line 4 of file WidgetNotice.cs.

Member Function Documentation

◆ _OnActivate()

override void WidgetNotice._OnActivate ( )
inlinevirtual

Reimplemented from BaseWidgetNotice.

Definition at line 46 of file WidgetNotice.cs.

47 {
48 Instance = this;
49 LittlePopper.showStock = extra.showStock;
50 Add(new NotificationHome(), H1);
53 }
ItemNotice Add(BaseNotification n, Transform parent=null)
Transform H1
Definition: WidgetNotice.cs:13
static WidgetNotice Instance
Definition: WidgetNotice.cs:11
Transform H4
Definition: WidgetNotice.cs:19
ItemNotice itemGuest
Definition: WidgetNotice.cs:23
ItemNotice itemBattle
Definition: WidgetNotice.cs:21

References BaseWidgetNotice.Add(), extra, H1, H4, Instance, itemBattle, itemGuest, and WidgetNotice.Extra.showStock.

◆ CreateExtra()

override object WidgetNotice.CreateExtra ( )
inlinevirtual

Reimplemented from Widget.

Definition at line 33 of file WidgetNotice.cs.

34 {
35 return new Extra();
36 }

◆ OnRefresh()

override void WidgetNotice.OnRefresh ( )
inlinevirtual

Reimplemented from BaseWidgetNotice.

Definition at line 55 of file WidgetNotice.cs.

56 {
57 battles = 0;
58 guests = 0;
59 foreach (Chara chara in EMono._map.charas)
60 {
61 if (chara.IsHomeMember())
62 {
63 if (chara.enemy != null && chara.IsAliveInCurrentZone)
64 {
65 battles++;
66 }
67 }
68 else if (chara.IsGuest())
69 {
70 guests++;
71 }
72 }
73 H4.SetActive(itemBattle.gameObject.activeSelf || itemGuest.gameObject.activeSelf);
74 }
Definition: Chara.cs:10
override bool IsAliveInCurrentZone
Definition: Chara.cs:546
bool IsHomeMember()
Definition: Chara.cs:5942
bool IsGuest()
Definition: Chara.cs:5967
Chara enemy
Definition: Chara.cs:83
Definition: EMono.cs:4
static Map _map
Definition: EMono.cs:17
List< Chara > charas
Definition: Map.cs:81

References EMono._map, battles, Map.charas, Chara.enemy, guests, H4, Chara.IsAliveInCurrentZone, Chara.IsGuest(), Chara.IsHomeMember(), itemBattle, and itemGuest.

◆ OnSetContextMenu()

override void WidgetNotice.OnSetContextMenu ( UIContextMenu  m)
inlinevirtual

Reimplemented from BaseWidgetNotice.

Definition at line 76 of file WidgetNotice.cs.

77 {
78 m.AddToggle("showStockPop", extra.showStock, delegate(bool a)
79 {
80 extra.showStock = (LittlePopper.showStock = a);
81 });
82 base.OnSetContextMenu(m);
83 }
UIContextMenuItem AddToggle(string idLang="", bool isOn=false, UnityAction< bool > action=null)

References UIContextMenu.AddToggle(), extra, and WidgetNotice.Extra.showStock.

◆ RefreshAll()

static void WidgetNotice.RefreshAll ( )
inlinestatic

Definition at line 38 of file WidgetNotice.cs.

39 {
40 if ((bool)Instance)
41 {
43 }
44 }

References BaseWidgetNotice._RefreshAll(), and Instance.

Member Data Documentation

◆ battles

int WidgetNotice.battles

Definition at line 26 of file WidgetNotice.cs.

Referenced by NotificationBattle.OnRefresh(), and OnRefresh().

◆ guests

int WidgetNotice.guests

Definition at line 29 of file WidgetNotice.cs.

Referenced by NotificationGuest.OnRefresh(), and OnRefresh().

◆ H1

Transform WidgetNotice.H1

Definition at line 13 of file WidgetNotice.cs.

Referenced by _OnActivate().

◆ H2

Transform WidgetNotice.H2

Definition at line 15 of file WidgetNotice.cs.

◆ H3

Transform WidgetNotice.H3

Definition at line 17 of file WidgetNotice.cs.

◆ H4

Transform WidgetNotice.H4

Definition at line 19 of file WidgetNotice.cs.

Referenced by _OnActivate(), and OnRefresh().

◆ Instance

WidgetNotice WidgetNotice.Instance
static

Definition at line 11 of file WidgetNotice.cs.

Referenced by _OnActivate(), and RefreshAll().

◆ itemBattle

ItemNotice WidgetNotice.itemBattle

Definition at line 21 of file WidgetNotice.cs.

Referenced by _OnActivate(), and OnRefresh().

◆ itemGuest

ItemNotice WidgetNotice.itemGuest

Definition at line 23 of file WidgetNotice.cs.

Referenced by _OnActivate(), and OnRefresh().

Property Documentation

◆ extra

Extra WidgetNotice.extra
get

Definition at line 31 of file WidgetNotice.cs.

Referenced by _OnActivate(), and OnSetContextMenu().


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