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

Classes

class  Extra
 

Public Member Functions

override object CreateExtra ()
 
override void OnActivate ()
 
override void OnDeactivate ()
 
void Talk (Card c, string id)
 
PopItem SayRaw (Card c, string text)
 
void SayRaw (string idPortrait, string text, string _idPop)
 
void Nerun (string text, string idPortrait="UN_nerun")
 
void System (string text)
 
override void OnSetContextMenu (UIContextMenu m)
 
- 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 ()
 

Public Attributes

GameObject goDummy
 
PopManager pop
 
string[] idPop
 
string idPopGod
 
string idPopSystem
 
- Public Attributes inherited from Widget
Image imageBG
 
SoundData soundActivate
 
UIDragPanel dragPanel
 
RectTransform tipPivotLeft
 
RectTransform tipPivotRight
 

Static Public Attributes

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

Properties

static bool Intercept [get]
 
Extra extra [get]
 
override bool AlwaysTop [get]
 
override bool ShowStyleMenu [get]
 
bool IgnoreFeed [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 }
 
- Static Public Member Functions inherited from EMono
static int rnd (int a)
 
- Protected Member Functions inherited from Widget
void ClampToScreenEnsured (Component c, Vector2 anchoredPos)
 
void ClampToScreen (RectTransform rect, float margin=10f)
 
- Protected Attributes inherited from Widget
bool flip
 

Detailed Description

Definition at line 3 of file WidgetFeed.cs.

Member Function Documentation

◆ CreateExtra()

override object WidgetFeed.CreateExtra ( )
inlinevirtual

Reimplemented from Widget.

Definition at line 56 of file WidgetFeed.cs.

57 {
58 return new Extra();
59 }

◆ Nerun()

void WidgetFeed.Nerun ( string  text,
string  idPortrait = "UN_nerun" 
)
inline

Definition at line 93 of file WidgetFeed.cs.

94 {
95 SayRaw(idPortrait, text, null);
96 }
PopItem SayRaw(Card c, string text)
Definition: WidgetFeed.cs:81

References SayRaw().

Referenced by Msg.Nerun(), Msg.SayHomeMember(), and CoreDebug.UpdateInput().

◆ OnActivate()

override void WidgetFeed.OnActivate ( )
inlinevirtual

Reimplemented from Widget.

Definition at line 61 of file WidgetFeed.cs.

62 {
63 Instance = this;
64 System("Elin's Inn version " + EMono.core.version.GetText());
65 System("Welcome, wanderer! Press '?' for help.");
67 }
Version version
Definition: BaseCore.cs:17
Definition: EMono.cs:4
static Core core
Definition: EMono.cs:5
void System(string text)
Definition: WidgetFeed.cs:98
static WidgetFeed Instance
Definition: WidgetFeed.cs:14
static void Refresh()
string GetText()
Definition: Version.cs:16

References EMono.core, Version.GetText(), Instance, WidgetMainText.Refresh(), System(), and BaseCore.version.

◆ OnDeactivate()

override void WidgetFeed.OnDeactivate ( )
inlinevirtual

Reimplemented from Widget.

Definition at line 69 of file WidgetFeed.cs.

70 {
71 Instance = null;
73 }

References Instance, and WidgetMainText.Refresh().

◆ OnSetContextMenu()

override void WidgetFeed.OnSetContextMenu ( UIContextMenu  m)
inlinevirtual

Reimplemented from Widget.

Definition at line 106 of file WidgetFeed.cs.

107 {
108 m.AddChild("setting").AddSlider("style", (float a) => idPop[(int)a], extra.style, delegate(float a)
109 {
110 extra.style = (int)a;
111 Msg.Nerun("this");
112 }, 0f, idPop.Length - 1, isInt: true);
114 }
Definition: Msg.cs:5
static void Nerun(string lang, string idPortrait="UN_nerun")
Definition: Msg.cs:145
UIContextMenuItem AddSlider(string text, Func< float, string > textFunc, float value, Action< float > action, float min=0f, float max=1f, bool isInt=false, bool hideOther=true, bool useInput=false)
UIContextMenu AddChild(string idLang, TextAnchor anchor)
Extra extra
Definition: WidgetFeed.cs:38
string[] idPop
Definition: WidgetFeed.cs:20
void SetBaseContextMenu(UIContextMenu m)
Definition: Widget.cs:608

References UIContextMenu.AddChild(), UIContextMenu.AddSlider(), extra, idPop, Msg.Nerun(), Widget.SetBaseContextMenu(), and WidgetFeed.Extra.style.

◆ SayRaw() [1/2]

PopItem WidgetFeed.SayRaw ( Card  c,
string  text 
)
inline

Definition at line 81 of file WidgetFeed.cs.

82 {
83 PopItemText popItemText = pop.PopText(text, null, idPop[extra.style]);
84 popItemText.GetComponentInChildren<Portrait>().SetChara(c as Chara);
85 return popItemText;
86 }
Definition: Chara.cs:10
PopItemText PopText(string text, Sprite sprite=null, string id="PopText", Color c=default(Color), Vector3 destPos=default(Vector3), float duration=0f)
Definition: PopManager.cs:41
PopManager pop
Definition: WidgetFeed.cs:18

References extra, idPop, pop, PopManager.PopText(), and WidgetFeed.Extra.style.

Referenced by Nerun(), Msg.SayPic(), Msg.Talk(), and Talk().

◆ SayRaw() [2/2]

void WidgetFeed.SayRaw ( string  idPortrait,
string  text,
string  _idPop 
)
inline

Definition at line 88 of file WidgetFeed.cs.

89 {
90 pop.PopText(text, null, _idPop.IsEmpty(idPop[extra.style])).GetComponentInChildren<Portrait>().SetPortrait(idPortrait);
91 }

References extra, idPop, pop, PopManager.PopText(), and WidgetFeed.Extra.style.

◆ System()

void WidgetFeed.System ( string  text)
inline

Definition at line 98 of file WidgetFeed.cs.

99 {
100 if (extra.intercept)
101 {
102 pop.PopText(text, null, idPopSystem, Msg.currentColor);
103 }
104 }
static Color currentColor
Definition: Msg.cs:10
string idPopSystem
Definition: WidgetFeed.cs:24

References Msg.currentColor, extra, idPopSystem, WidgetFeed.Extra.intercept, pop, and PopManager.PopText().

Referenced by OnActivate(), and Msg.SayRaw().

◆ Talk()

void WidgetFeed.Talk ( Card  c,
string  id 
)
inline

Definition at line 75 of file WidgetFeed.cs.

76 {
77 string text = GameLang.Convert(c.GetTalkText(id, stripPun: true));
78 SayRaw(c, text);
79 }
string GetTalkText(string idTopic, bool stripPun=false, bool useDefault=true)
Definition: Card.cs:6073
static string Convert(string text)
Definition: GameLang.cs:106

References GameLang.Convert(), Card.GetTalkText(), and SayRaw().

Member Data Documentation

◆ goDummy

GameObject WidgetFeed.goDummy

Definition at line 16 of file WidgetFeed.cs.

◆ idPop

string [] WidgetFeed.idPop

Definition at line 20 of file WidgetFeed.cs.

Referenced by OnSetContextMenu(), and SayRaw().

◆ idPopGod

string WidgetFeed.idPopGod

Definition at line 22 of file WidgetFeed.cs.

◆ idPopSystem

string WidgetFeed.idPopSystem

Definition at line 24 of file WidgetFeed.cs.

Referenced by System().

◆ Instance

◆ pop

PopManager WidgetFeed.pop

Definition at line 18 of file WidgetFeed.cs.

Referenced by WidgetMainText._ToggleLog(), ELayer.Kill(), SayRaw(), and System().

Property Documentation

◆ AlwaysTop

override bool WidgetFeed.AlwaysTop
get

Definition at line 40 of file WidgetFeed.cs.

◆ extra

Extra WidgetFeed.extra
get

Definition at line 38 of file WidgetFeed.cs.

Referenced by OnSetContextMenu(), SayRaw(), and System().

◆ IgnoreFeed

bool WidgetFeed.IgnoreFeed
get

Definition at line 44 of file WidgetFeed.cs.

45 {
46 get
47 {
48 if ((bool)WidgetMainText.Instance)
49 {
51 }
52 return false;
53 }
54 }
bool isShowingLog
Definition: MsgBox.cs:55
static WidgetMainText Instance

◆ Intercept

bool WidgetFeed.Intercept
staticget

Definition at line 26 of file WidgetFeed.cs.

27 {
28 get
29 {
30 if ((bool)Instance)
31 {
33 }
34 return false;
35 }
36 }

Referenced by WidgetMainText._Refresh().

◆ ShowStyleMenu

override bool WidgetFeed.ShowStyleMenu
get

Definition at line 42 of file WidgetFeed.cs.


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