Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
NotificationGuest.cs
Go to the documentation of this file.
1using System;
2using System.Collections.Generic;
3
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}
void Focus(Int3 ints)
Definition: Chara.cs:10
override bool IsAliveInCurrentZone
Definition: Chara.cs:546
bool IsGuest()
Definition: Chara.cs:5967
Definition: EClass.cs:5
static Map _map
Definition: EClass.cs:18
static bool AdvMode
Definition: EClass.cs:10
static BaseGameScreen screen
Definition: EClass.cs:32
List< Chara > charas
Definition: Map.cs:81
virtual WidgetNotice widget
override int idSprite
override bool Visible
override Action< UITooltip > onShowTooltip
override void OnClick()
override void OnRefresh()