Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
UIZoneInfo Class Reference
Inheritance diagram for UIZoneInfo:
EMono

Public Member Functions

void SetZone (Zone _zone)
 

Public Attributes

UINote note
 
UIButton buttonBuy
 
UIButton buttonVisit
 
UIButton buttonExplore
 
int gx
 
int gy
 
Zone zone
 

Properties

EloMap elomap [get]
 
EloMapActor actor [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

- Static Public Member Functions inherited from EMono
static int rnd (int a)
 
- Static Public Attributes inherited from EMono
static Core core
 

Detailed Description

Definition at line 1 of file UIZoneInfo.cs.

Member Function Documentation

◆ SetZone()

void UIZoneInfo.SetZone ( Zone  _zone)
inline

Definition at line 21 of file UIZoneInfo.cs.

22 {
23 zone = _zone;
24 gx = zone.x;
25 gy = zone.y;
27 note.Clear();
28 GetComponentInParent<Window>().SetCaption(zone.Name);
29 note.AddHeaderTopic("mainFaction".lang());
31 note.Space();
32 note.AddHeaderTopic("listRoamers".lang());
33 int num = 0;
34 foreach (Chara value in EMono.game.cards.globalCharas.Values)
35 {
36 if (value.currentZone == zone)
37 {
38 note.AddText(value.Name);
39 num++;
40 if (num > 5)
41 {
42 break;
43 }
44 }
45 }
46 if (num == 0)
47 {
48 note.AddText("????????");
49 }
50 note.Build();
51 }
GlobalCharaList globalCharas
Definition: CardManager.cs:46
string Name
Definition: Card.cs:2013
Definition: Chara.cs:10
Zone currentZone
Definition: Chara.cs:240
Definition: EMono.cs:4
static Zone _zone
Definition: EMono.cs:19
static Game game
Definition: EMono.cs:7
Cell GetCell(Point pos)
Definition: EloMap.cs:273
string name
Definition: FACTION.cs:133
CardManager cards
Definition: Game.cs:155
virtual string Name
Definition: Spatial.cs:495
Faction mainFaction
Definition: Spatial.cs:430
int y
Definition: Spatial.cs:106
int x
Definition: Spatial.cs:94
UIItem AddHeaderTopic(string text, Sprite sprite=null)
Definition: UINote.cs:89
void Clear()
Definition: UINote.cs:35
UIItem AddText(string text, FontColor color=FontColor.DontChange)
Definition: UINote.cs:113
void Space(int sizeY=0, int sizeX=1)
Definition: UINote.cs:62
void Build()
Definition: UINote.cs:49
UINote note
Definition: UIZoneInfo.cs:3
Zone zone
Definition: UIZoneInfo.cs:15
EloMap elomap
Definition: UIZoneInfo.cs:17

References EMono._zone, UINote.AddHeaderTopic(), UINote.AddText(), UINote.Build(), Game.cards, UINote.Clear(), Chara.currentZone, elomap, EMono.game, EloMap.GetCell(), CardManager.globalCharas, gx, gy, Spatial.mainFaction, Card.Name, Faction.name, Spatial.Name, note, UINote.Space(), Spatial.x, Spatial.y, and zone.

Referenced by LayerLocation.RefreshZones().

Member Data Documentation

◆ buttonBuy

UIButton UIZoneInfo.buttonBuy

Definition at line 5 of file UIZoneInfo.cs.

◆ buttonExplore

UIButton UIZoneInfo.buttonExplore

Definition at line 9 of file UIZoneInfo.cs.

◆ buttonVisit

UIButton UIZoneInfo.buttonVisit

Definition at line 7 of file UIZoneInfo.cs.

◆ gx

int UIZoneInfo.gx

Definition at line 11 of file UIZoneInfo.cs.

Referenced by SetZone().

◆ gy

int UIZoneInfo.gy

Definition at line 13 of file UIZoneInfo.cs.

Referenced by SetZone().

◆ note

UINote UIZoneInfo.note

Definition at line 3 of file UIZoneInfo.cs.

Referenced by SetZone().

◆ zone

Zone UIZoneInfo.zone

Definition at line 15 of file UIZoneInfo.cs.

Referenced by SetZone().

Property Documentation

◆ actor

EloMapActor UIZoneInfo.actor
get

Definition at line 19 of file UIZoneInfo.cs.

◆ elomap

EloMap UIZoneInfo.elomap
get

Definition at line 17 of file UIZoneInfo.cs.

Referenced by SetZone().


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