Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
LayerHelp.cs
Go to the documentation of this file.
1public class LayerHelp : ELayer
2{
3 public static string lastIdFile;
4
5 public static string lastIdTopic;
6
7 public UIBook book;
8
9 public override bool blockWidgetClick => false;
10
11 public override void OnInit()
12 {
13 if (book.mode == UIBook.Mode.Book)
14 {
15 SkinManager.LimitFontSizeMod_UI = -2;
16 }
17 }
18
19 public override void OnAfterInit()
20 {
21 switch (book.mode)
22 {
23 case UIBook.Mode.Announce:
24 book.Show("version" + (ELayer.core.version.demo ? "_demo" : ""));
25 break;
26 case UIBook.Mode.About:
27 book.Show("about_EA");
28 break;
29 }
30 }
31
32 public static void Toggle(string idFile, string idTopic = null)
33 {
35 if (layerHelp != null)
36 {
37 layerHelp.book.Show(idFile, idTopic);
38 }
39 }
40
41 public override void OnRightClick()
42 {
43 if ((bool)book.inputSearch && book.transSearchResult.gameObject.activeSelf)
44 {
45 book.showSearchResult = false;
46 }
47 else
48 {
49 base.OnRightClick();
50 }
51 }
52
53 private void OnDestroy()
54 {
55 if (book.mode == UIBook.Mode.Help)
56 {
59 }
60 SkinManager.LimitFontSizeMod_UI = 999;
61 }
62}
Version version
Definition: BaseCore.cs:17
Definition: ELayer.cs:4
static Core core
Definition: ELayer.cs:7
static UI ui
Definition: ELayer.cs:21
override void OnAfterInit()
Definition: LayerHelp.cs:19
override bool blockWidgetClick
Definition: LayerHelp.cs:9
void OnDestroy()
Definition: LayerHelp.cs:53
static void Toggle(string idFile, string idTopic=null)
Definition: LayerHelp.cs:32
static string lastIdTopic
Definition: LayerHelp.cs:5
UIBook book
Definition: LayerHelp.cs:7
static string lastIdFile
Definition: LayerHelp.cs:3
override void OnRightClick()
Definition: LayerHelp.cs:41
override void OnInit()
Definition: LayerHelp.cs:11
void ToggleLayer(string id)
Definition: Layer.cs:426
Definition: UIBook.cs:9
Mode
Definition: UIBook.cs:11
string idTopic
Definition: UIBook.cs:288
Mode mode
Definition: UIBook.cs:261
void Show(string _idFile=null, string _idTopic=null, string title=null, BookList.Item _bookItem=null)
Definition: UIBook.cs:457
InputField inputSearch
Definition: UIBook.cs:312
string idFile
Definition: UIBook.cs:285
Transform transSearchResult
Definition: UIBook.cs:318
bool demo
Definition: Version.cs:14