Elin Modding Docs Doc
Loading...
Searching...
No Matches
PopupManager.cs
1
using
System;
2
using
System.Collections.Generic;
3
using
Newtonsoft.Json;
4
using
UnityEngine;
5
6
// Token: 0x02000630 RID: 1584
7
public
class
PopupManager
:
EClass
8
{
9
// Token: 0x17000CA6 RID: 3238
10
// (get) Token: 0x06002C61 RID: 11361 RVA: 0x000F8FF3 File Offset: 0x000F71F3
11
public
WidgetPopup
Instance
12
{
13
get
14
{
15
return
WidgetPopup
.Instance;
16
}
17
}
18
19
// Token: 0x06002C62 RID: 11362 RVA: 0x000F8FFC File Offset: 0x000F71FC
20
public
void
Add(
string
id
)
21
{
22
string
text =
GameLang
.Convert(Resources.Load<TextAsset>(CorePath.Text_Popup +
id
).text);
23
this.Add(
new
PopupManager
.
Item
24
{
25
text = text
26
});
27
}
28
29
// Token: 0x06002C63 RID: 11363 RVA: 0x000F9038 File Offset: 0x000F7238
30
public
void
Add(
PopupManager
.
Item
item)
31
{
32
this.items.Add(item);
33
if
(
EClass
.debug.ignorePopup)
34
{
35
return
;
36
}
37
if
(!this.Instance)
38
{
39
EClass
.ui.widgets.ActivateWidget(
"Popup"
);
40
}
41
else
42
{
43
this.Instance.OnAddItem(item);
44
}
45
EClass
.Sound.Play(
"popup_add"
);
46
}
47
48
// Token: 0x06002C64 RID: 11364 RVA: 0x000F909E File Offset: 0x000F729E
49
public
void
Remove(
int
index)
50
{
51
}
52
53
// Token: 0x040018DE RID: 6366
54
[JsonProperty]
55
public
List<
PopupManager
.
Item
> items =
new
List<
PopupManager
.
Item
>();
56
57
// Token: 0x02000B9B RID: 2971
58
public
class
Item
59
{
60
// Token: 0x04002E82 RID: 11906
61
[JsonProperty]
62
public
string
text;
63
}
64
}
EClass
Definition
EClass.cs:7
GameLang
Definition
GameLang.cs:6
PopupManager.Item
Definition
PopupManager.cs:59
PopupManager
Definition
PopupManager.cs:8
WidgetPopup
Definition
WidgetPopup.cs:7
Elin
PopupManager.cs
Generated by
1.12.0