Elin Decompiled Documentation
EA 23.102 Nightly
Loading...
Searching...
No Matches
LayerLocation.cs
Go to the documentation of this file.
1
using
UnityEngine;
2
3
public
class
LayerLocation
:
ELayer
4
{
5
public
UIList
listZone
;
6
7
public
Sprite
spriteFaction
;
8
9
public
Sprite
spriteFaith
;
10
11
public
UIZoneInfo
info
;
12
13
public
override
bool
HeaderIsListOf
(
int
id
)
14
{
15
return
true
;
16
}
17
18
public
override
void
OnSwitchContent
(
Window
window)
19
{
20
if
(window.
windowIndex
== 1)
21
{
22
RefreshZones
();
23
}
24
}
25
26
public
void
RefreshZones
()
27
{
28
UIList
uIList =
listZone
;
29
uIList.
Clear
();
30
uIList.callbacks =
new
UIList
.
Callback
<
Spatial
,
ItemGeneral
>
31
{
32
onClick = delegate(
Spatial
a,
ItemGeneral
b)
33
{
34
if
(a is
Zone
)
35
{
36
info
.
SetZone
(a as
Zone
);
37
}
38
},
39
onInstantiate = delegate(
Spatial
a,
ItemGeneral
b)
40
{
41
b.
SetSound
();
42
b.
SetMainText
(a.
Name
);
43
b.
Build
();
44
}
45
};
46
foreach
(
Spatial
value
in
ELayer
.
game
.
spatials
.
map
.Values)
47
{
48
if
(!(value is
Zone
) || value.
parent
!=
ELayer
.
pc
.
currentZone
.
Region
)
49
{
50
continue
;
51
}
52
if
(
windows
[1].idTab == 0)
53
{
54
if
(!value.
IsPlayerFaction
)
55
{
56
continue
;
57
}
58
}
59
else
if
(value.
IsPlayerFaction
)
60
{
61
continue
;
62
}
63
uIList.Add(value);
64
}
65
uIList.Refresh();
66
}
67
}
Chara.currentZone
Zone currentZone
Definition:
Chara.cs:240
ELayer
Definition:
ELayer.cs:4
ELayer.pc
static Chara pc
Definition:
ELayer.cs:15
ELayer.game
static Game game
Definition:
ELayer.cs:9
Game.spatials
SpatialManager spatials
Definition:
Game.cs:152
ItemGeneral
Definition:
ItemGeneral.cs:6
ItemGeneral.Build
void Build()
Definition:
ItemGeneral.cs:161
ItemGeneral.SetMainText
void SetMainText(string lang, Sprite sprite=null, bool disableMask=true)
Definition:
ItemGeneral.cs:101
ItemGeneral.SetSound
void SetSound(SoundData data=null)
Definition:
ItemGeneral.cs:142
LayerLocation
Definition:
LayerLocation.cs:4
LayerLocation.spriteFaction
Sprite spriteFaction
Definition:
LayerLocation.cs:7
LayerLocation.spriteFaith
Sprite spriteFaith
Definition:
LayerLocation.cs:9
LayerLocation.info
UIZoneInfo info
Definition:
LayerLocation.cs:11
LayerLocation.OnSwitchContent
override void OnSwitchContent(Window window)
Definition:
LayerLocation.cs:18
LayerLocation.RefreshZones
void RefreshZones()
Definition:
LayerLocation.cs:26
LayerLocation.HeaderIsListOf
override bool HeaderIsListOf(int id)
Definition:
LayerLocation.cs:13
LayerLocation.listZone
UIList listZone
Definition:
LayerLocation.cs:5
Layer.windows
List< Window > windows
Definition:
Layer.cs:116
SpatialManager.map
GlobalSpatialList map
Definition:
SpatialManager.cs:17
Spatial
Definition:
Spatial.cs:8
Spatial.parent
Spatial parent
Definition:
Spatial.cs:10
Spatial.IsPlayerFaction
bool IsPlayerFaction
Definition:
Spatial.cs:443
Spatial.Name
virtual string Name
Definition:
Spatial.cs:495
UIList.Callback
Definition:
UIList.cs:53
UIList
Definition:
UIList.cs:9
UIList.Clear
override void Clear()
Definition:
UIList.cs:349
UIZoneInfo
Definition:
UIZoneInfo.cs:2
UIZoneInfo.SetZone
void SetZone(Zone _zone)
Definition:
UIZoneInfo.cs:21
Window
Definition:
Window.cs:13
Window.windowIndex
int windowIndex
Definition:
Window.cs:697
Zone
Definition:
Zone.cs:12
Zone.Region
Region Region
Definition:
Zone.cs:160
Elin
LayerLocation.cs
Generated by
1.9.6