Elin Decompiled Documentation EA 23.284 Nightly Patch 2
Loading...
Searching...
No Matches
ListPeopleParty Class Reference
Inheritance diagram for ListPeopleParty:
BaseListPeople ListOwner< Chara, ItemGeneral > EClass

Public Member Functions

override void OnCreate ()
 
override void OnInstantiate (Chara c, ItemGeneral i)
 
override void OnClick (Chara c, ItemGeneral i)
 
override void OnList ()
 
HireInfo GetInfo (Chara c)
 
- Public Member Functions inherited from BaseListPeople
virtual bool IsDisabled (Chara c)
 
override void List ()
 
override void OnInstantiate (Chara a, ItemGeneral b)
 
void AddSubButtonWork (ItemGeneral b, Chara a)
 
void WriteHobbies (UITooltip t, Chara a, BaseArea roomWork)
 
virtual void SetSubText (Chara a, ItemGeneral b)
 
override void OnClick (Chara c, ItemGeneral i)
 
override void OnList ()
 
override void OnRefreshMenu ()
 
- Public Member Functions inherited from ListOwner< Chara, ItemGeneral >
virtual void OnClick (T1 a, T2 b)
 
virtual void OnInstantiate (T1 a, T2 b)
 
virtual void OnList ()
 
virtual void List ()
 
virtual void OnCreate ()
 
virtual void OnSwitchContent ()
 
void RefreshCaption ()
 
virtual void OnRefreshMenu ()
 
void RefreshTab ()
 
void MoveToOther (object c)
 
void RefreshAll (bool freeze=true)
 

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 (long _a, int start, int step, int rate=75)
 
static int sqrt (int a)
 
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)
 
- Public Attributes inherited from BaseListPeople
Chara owner
 
FactionMemberType memberType
 
- Public Attributes inherited from ListOwner< Chara, ItemGeneral >
Layer layer
 
Window window
 
UIMultiList multi
 
ListOwner other
 
UIList list
 
WindowMenu menu
 
Window.Setting.Tab tab
 
string textTab
 
string textHeader
 
bool main
 
int index
 
Func< string > funcHeader
 
- Static Public Attributes inherited from EClass
static Core core
 
- Properties inherited from BaseListPeople
new LayerPeople layer [get]
 
override string IdHeaderRow [get]
 
virtual bool ShowCharaSheet [get]
 
virtual bool ShowShowMode [get]
 
virtual LayerPeople.ShowMode ShowMode [get]
 
virtual bool ShowGoto [get]
 
virtual bool ShowHome [get]
 
- Properties inherited from ListOwner< Chara, ItemGeneral >
ListOwner Main [get]
 
virtual string IdTitle [get]
 
virtual string IdHeaderRow [get]
 
virtual string TextTab [get]
 
virtual string TextHeader [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]
 

Detailed Description

Definition at line 3 of file ListPeopleParty.cs.

Member Function Documentation

◆ GetInfo()

HireInfo ListPeopleParty.GetInfo ( Chara  c)
inline

Definition at line 86 of file ListPeopleParty.cs.

87 {
88 return EClass.Home.listReserve.First((HireInfo a) => a.chara == c);
89 }
Definition: EClass.cs:6
static Faction Home
Definition: EClass.cs:27
List< HireInfo > listReserve
Definition: FACTION.cs:138
Chara chara
Definition: HireInfo.cs:6

References HireInfo.chara, EClass.Home, and Faction.listReserve.

◆ OnClick()

override void ListPeopleParty.OnClick ( Chara  c,
ItemGeneral  i 
)
inline

Definition at line 33 of file ListPeopleParty.cs.

34 {
35 if (main)
36 {
37 if (c.isDead || c.HasCondition<ConSuspend>() || c.currentZone == null)
38 {
39 SE.Beep();
40 return;
41 }
42 if (c.currentZone != EClass._zone)
43 {
45 c.MoveImmediate(EClass.pc.pos.GetNearestPoint(allowBlock: false, allowChara: false) ?? EClass.pc.pos);
46 }
48 }
49 else
50 {
51 if (c.IsPC)
52 {
53 SE.Beep();
54 return;
55 }
57 if (c.homeZone != EClass._zone)
58 {
59 c.MoveZone(c.homeZone);
60 }
61 }
62 MoveToOther(c);
63 base.Main.OnRefreshMenu();
64 }
Point pos
Definition: Card.cs:60
void MoveImmediate(Point p, bool focus=true, bool cancelAI=true)
Definition: Card.cs:5931
override bool IsPC
Definition: Chara.cs:626
Party party
Definition: Chara.cs:43
bool HasCondition(string alias)
Definition: Chara.cs:9593
Zone currentZone
Definition: Chara.cs:257
Zone homeZone
Definition: Chara.cs:269
bool isDead
Definition: Chara.cs:391
void MoveZone(string alias)
Definition: Chara.cs:3373
static Zone _zone
Definition: EClass.cs:21
static Chara pc
Definition: EClass.cs:15
void RemoveMember(Chara c)
Definition: Party.cs:102
void AddMemeber(Chara c, bool showMsg=false)
Definition: Party.cs:57
Point GetNearestPoint(bool allowBlock=false, bool allowChara=true, bool allowInstalled=true, bool ignoreCenter=false, int minRadius=0)
Definition: Point.cs:619

References EClass._zone, Party.AddMemeber(), Chara.currentZone, Point.GetNearestPoint(), Chara.HasCondition(), Chara.homeZone, Chara.isDead, Chara.IsPC, Card.MoveImmediate(), Chara.MoveZone(), Chara.party, EClass.pc, Card.pos, and Party.RemoveMember().

◆ OnCreate()

override void ListPeopleParty.OnCreate ( )
inlinevirtual

Reimplemented from ListOwner< Chara, ItemGeneral >.

Definition at line 5 of file ListPeopleParty.cs.

6 {
7 list.sorts = new UIList.SortMode[3]
8 {
9 UIList.SortMode.ByFeat,
10 UIList.SortMode.ByJob,
11 UIList.SortMode.ByRace
12 };
13 list.sortMode = UIList.SortMode.ByFeat;
14 }
Definition: UIList.cs:9
SortMode
Definition: UIList.cs:27

◆ OnInstantiate()

override void ListPeopleParty.OnInstantiate ( Chara  c,
ItemGeneral  i 
)
inline

Definition at line 16 of file ListPeopleParty.cs.

17 {
18 Zone zone = (main ? c.currentZone : c.homeZone);
19 i.SetSubText((zone == null) ? "???" : zone.Name, 240);
20 if (!c.IsPC)
21 {
22 UIButton uIButton = i.AddSubButton(EClass.core.refs.icons.fav, delegate
23 {
24 SE.ClickGeneral();
25 c.isFav = !c.isFav;
26 RefreshAll();
27 });
28 uIButton.icon.SetAlpha(c.isFav ? 1f : 0.3f);
29 uIButton.icon.SetNativeSize();
30 }
31 }
bool isFav
Definition: Card.cs:927
Sprite fav
Definition: CoreRef.cs:112
Icons icons
Definition: CoreRef.cs:355
CoreRef refs
Definition: Core.cs:51
static Core core
Definition: EClass.cs:7
UIButton AddSubButton(Sprite sprite, Action action, string lang=null, Action< UITooltip > onTooltip=null)
Definition: ItemGeneral.cs:86
UIButton SetSubText(string lang, int x, FontColor c=FontColor.Default, TextAnchor align=TextAnchor.MiddleLeft)
Definition: ItemGeneral.cs:129
void RefreshAll(bool freeze=true)
Definition: ListOwner.cs:125
virtual string Name
Definition: Spatial.cs:509
Image icon
Definition: UIButton.cs:110
Definition: Zone.cs:12

References ItemGeneral.AddSubButton(), EClass.core, CoreRef.Icons.fav, Chara.homeZone, UIButton.icon, CoreRef.icons, Card.isFav, Chara.IsPC, ListOwner< Chara, ItemGeneral >.main, Spatial.Name, ListOwner< Chara, ItemGeneral >.RefreshAll(), Core.refs, and ItemGeneral.SetSubText().

◆ OnList()

override void ListPeopleParty.OnList ( )
inlinevirtual

Reimplemented from BaseListPeople.

Definition at line 66 of file ListPeopleParty.cs.

67 {
68 if (main)
69 {
70 foreach (Chara value in EClass.game.cards.globalCharas.Values)
71 {
72 if (value.IsPCFaction && !value.IsPCParty && value.memberType == FactionMemberType.Default)
73 {
74 list.Add(value);
75 }
76 }
77 return;
78 }
79 foreach (Chara member in EClass.pc.party.members)
80 {
81 list.Add(member);
82 }
83 list.sortMode = UIList.SortMode.ByNone;
84 }
FactionMemberType
GlobalCharaList globalCharas
Definition: CardManager.cs:46
Definition: Chara.cs:10
override bool IsPCParty
Definition: Chara.cs:629
override bool IsPCFaction
Definition: Chara.cs:685
FactionMemberType memberType
Definition: Chara.cs:46
static Game game
Definition: EClass.cs:9
CardManager cards
Definition: Game.cs:156
List< Chara > members
Definition: Party.cs:19
override void Add(object item)
Definition: UIList.cs:353

References Game.cards, EClass.game, CardManager.globalCharas, Chara.IsPCFaction, Chara.IsPCParty, Party.members, Chara.memberType, Chara.party, and EClass.pc.


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