Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
InspectGroupChara.cs
Go to the documentation of this file.
1using System;
2
3public class InspectGroupChara : InspectGroup<Chara>
4{
5 public override string MultiName => "Chara";
6
7 public override void OnSetActions()
8 {
9 Chara first = base.FirstTarget;
10 string text = "charaInfo".lang();
11 if (!first.IsHomeMember())
12 {
13 text = text + "(" + "unidentified".lang() + ")";
14 }
15 if (first.IsHomeMember())
16 {
17 Add("tTalk".lang(), "", (Action)delegate
18 {
19 first.ShowDialog();
20 }, sound: false, 0, auto: false);
21 return;
22 }
23 Add(text, "", (Action)delegate
24 {
25 if (!first.IsHomeMember())
26 {
27 SE.Beep();
28 }
29 }, sound: false, 0, auto: false);
30 }
31}
Definition: Chara.cs:10
void ShowDialog()
Definition: Chara.cs:6368
bool IsHomeMember()
Definition: Chara.cs:5942
override void OnSetActions()
override string MultiName
Item Add(string text, string idSprite, Action action, bool sound=false, int priority=0, bool auto=false)