terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches
Alert.cs
Go to the documentation of this file.
1using System;
3using UnityEngine;
4
5// Token: 0x02000022 RID: 34
6public class Alert : Singleton<Alert>
7{
8 // Token: 0x060000A2 RID: 162 RVA: 0x00003458 File Offset: 0x00001658
9 public override void Init()
10 {
11 }
12
13 // Token: 0x060000A3 RID: 163 RVA: 0x00003468 File Offset: 0x00001668
14 public override void Shutdown()
15 {
16 }
17
18 // Token: 0x060000A4 RID: 164 RVA: 0x00003478 File Offset: 0x00001678
19 private void PCDismissCallback(int index)
20 {
21 if (this.DismissedWithButton != null)
22 {
23 return;
24 }
25 }
26
27 // Token: 0x060000A5 RID: 165 RVA: 0x00003490 File Offset: 0x00001690
28 public void InternalShowDelayed(Alert.AlertShownReason reason, string title, string message, string button, string hapticId = "")
29 {
30 this._defaultButton = button;
31 }
32
33 // Token: 0x060000A6 RID: 166 RVA: 0x000034A8 File Offset: 0x000016A8
34 public void InternalShowDelayed(Alert.AlertShownReason reason, string title, string message, string button1, string button2, string buttonDefault, string hapticId = "")
35 {
36 this._defaultButton = buttonDefault;
37 }
38
39 // Token: 0x060000A7 RID: 167 RVA: 0x000034C0 File Offset: 0x000016C0
41 {
43 if (!true)
44 {
45 }
47 }
48
49 // Token: 0x060000A8 RID: 168 RVA: 0x000034E4 File Offset: 0x000016E4
50 public void Show(Alert.AlertShownReason reason, string title, string message, string button, string hapticId = "")
51 {
57 alertDelayObject.delayTime = (float)16000;
60 }
61
62 // Token: 0x060000A9 RID: 169 RVA: 0x00003530 File Offset: 0x00001730
63 public void Show(Alert.AlertShownReason reason, string title, string message, string button1, string button2, string buttonDefault, string hapticId = "")
64 {
70 alertDelayObject.buttonDefault = buttonDefault;
71 alertDelayObject.delayTime = (float)16000;
74 }
75
76 // Token: 0x14000001 RID: 1
77 // (add) Token: 0x060000AA RID: 170 RVA: 0x00003584 File Offset: 0x00001784
78 // (remove) Token: 0x060000AB RID: 171 RVA: 0x000035AC File Offset: 0x000017AC
80 {
82 add
83 {
85 if (@delegate != null && @delegate == null)
86 {
87 return;
88 }
89 }
91 remove
92 {
94 if (@delegate != null && @delegate == null)
95 {
96 return;
97 }
98 }
99 }
100
101 // Token: 0x060000AC RID: 172 RVA: 0x000035D4 File Offset: 0x000017D4
102 private void AlertButtonClicked(string button)
103 {
105 if (this.DismissedWithButton != null)
106 {
107 string[] buttons = this._buttons;
108 string[] buttons2 = this._buttons;
109 return;
110 }
111 }
112
113 // Token: 0x060000AD RID: 173 RVA: 0x00003608 File Offset: 0x00001808
114 private void AlertCancelled()
115 {
117 if (this._buttons != null)
118 {
119 string defaultButton = this._defaultButton;
120 this.AlertButtonClicked(defaultButton);
121 return;
122 }
123 }
124
125 // Token: 0x060000AE RID: 174 RVA: 0x00003634 File Offset: 0x00001834
126 public Alert()
127 {
128 }
129
130 // Token: 0x0400006B RID: 107
133
134 // Token: 0x0400006C RID: 108
135 private string[] _buttons;
136
137 // Token: 0x0400006D RID: 109
138 private string _defaultButton = "";
139
140 // Token: 0x0400006E RID: 110
142
143 // Token: 0x02000023 RID: 35
145 {
146 // Token: 0x04000070 RID: 112
148 // Token: 0x04000071 RID: 113
150 // Token: 0x04000072 RID: 114
151 DebugIAP,
152 // Token: 0x04000073 RID: 115
154 // Token: 0x04000074 RID: 116
156 }
157}
class f__AnonymousType0<< Count > j__TPar
GameObject _delayObject
Definition Alert.cs:141
void PCDismissCallback(int index)
Definition Alert.cs:19
void AlertButtonClicked(string button)
Definition Alert.cs:102
override void Init()
Definition Alert.cs:9
Action< int > DismissedWithButton
Definition Alert.cs:80
void InternalShowDelayed(Alert.AlertShownReason reason, string title, string message, string button1, string button2, string buttonDefault, string hapticId="")
Definition Alert.cs:34
void InternalShowDelayed(Alert.AlertShownReason reason, string title, string message, string button, string hapticId="")
Definition Alert.cs:28
void Show(Alert.AlertShownReason reason, string title, string message, string button1, string button2, string buttonDefault, string hapticId="")
Definition Alert.cs:63
void Show(Alert.AlertShownReason reason, string title, string message, string button, string hapticId="")
Definition Alert.cs:50
string _defaultButton
Definition Alert.cs:138
AlertDelayer GetAlertDelayObject()
Definition Alert.cs:40
override void Shutdown()
Definition Alert.cs:14
void AlertCancelled()
Definition Alert.cs:114
AlertShownReason
Definition Alert.cs:145
string[] _buttons
Definition Alert.cs:135
Alert()
Definition Alert.cs:126
Definition Alert.cs:7
static void Activate()
static Delegate Combine(Delegate a, Delegate b)
Definition Delegate.cs:255
static Delegate Remove(Delegate source, Delegate value)
Definition Delegate.cs:278
Component GetComponent(Type type)
Definition GameObject.cs:27