Elin Decompiled Documentation
EA 23.102 Nightly
Loading...
Searching...
No Matches
NotificationGuest.cs
Go to the documentation of this file.
1
using
System;
2
using
System.Collections.Generic;
3
4
public
class
NotificationGuest
:
NotificationGlobal
5
{
6
public
int
index
;
7
8
public
override
int
idSprite
=> 3;
9
10
public
override
bool
Visible
=> widget.guests > 0;
11
12
public
override
Action<UITooltip>
onShowTooltip
=> delegate(
UITooltip
a)
13
{
14
a.textMain.text =
"guests"
.lang() +
": "
+
widget
.
guests
;
15
};
16
17
public
override
void
OnRefresh
()
18
{
19
text
=
widget
.
guests
.ToString() ??
""
;
20
}
21
22
public
override
void
OnClick
()
23
{
24
if
(
EClass
.
AdvMode
)
25
{
26
return
;
27
}
28
List<Chara> list =
new
List<Chara>();
29
foreach
(
Chara
chara
in
EClass
.
_map
.
charas
)
30
{
31
if
(chara.
IsGuest
() && chara.
IsAliveInCurrentZone
)
32
{
33
list.Add(chara);
34
}
35
}
36
index
++;
37
if
(
index
>= list.Count)
38
{
39
index
= 0;
40
}
41
EClass
.
screen
.
Focus
(list[
index
]);
42
}
43
}
BaseGameScreen.Focus
void Focus(Int3 ints)
Definition:
BaseGameScreen.cs:733
BaseNotification.text
string text
Definition:
BaseNotification.cs:9
Chara
Definition:
Chara.cs:10
Chara.IsAliveInCurrentZone
override bool IsAliveInCurrentZone
Definition:
Chara.cs:546
Chara.IsGuest
bool IsGuest()
Definition:
Chara.cs:5967
EClass
Definition:
EClass.cs:5
EClass._map
static Map _map
Definition:
EClass.cs:18
EClass.AdvMode
static bool AdvMode
Definition:
EClass.cs:10
EClass.screen
static BaseGameScreen screen
Definition:
EClass.cs:32
Map.charas
List< Chara > charas
Definition:
Map.cs:81
NotificationGlobal
Definition:
NotificationGlobal.cs:2
NotificationGlobal.widget
virtual WidgetNotice widget
Definition:
NotificationGlobal.cs:3
NotificationGuest
Definition:
NotificationGuest.cs:5
NotificationGuest.index
int index
Definition:
NotificationGuest.cs:6
NotificationGuest.idSprite
override int idSprite
Definition:
NotificationGuest.cs:8
NotificationGuest.Visible
override bool Visible
Definition:
NotificationGuest.cs:10
NotificationGuest.onShowTooltip
override Action< UITooltip > onShowTooltip
Definition:
NotificationGuest.cs:12
NotificationGuest.OnClick
override void OnClick()
Definition:
NotificationGuest.cs:22
NotificationGuest.OnRefresh
override void OnRefresh()
Definition:
NotificationGuest.cs:17
UITooltip
Definition:
UITooltip.cs:6
WidgetNotice.guests
int guests
Definition:
WidgetNotice.cs:29
Elin
NotificationGuest.cs
Generated by
1.9.6