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
UIEmotesMenu.cs
Go to the documentation of this file.
1using System;
7using Terraria.UI;
8
10{
11 // Token: 0x02000A76 RID: 2678
12 public class UIEmotesMenu : UIState
13 {
14 // Token: 0x06004F09 RID: 20233 RVA: 0x00278A64 File Offset: 0x00276C64
15 public override void OnActivate()
16 {
17 int num = 1;
18 this.InitializePage();
19 if (num == 0)
20 {
21 }
22 bool gameMenu = Main.gameMenu;
25 }
26
27 // Token: 0x06004F0A RID: 20234 RVA: 0x00278A94 File Offset: 0x00276C94
28 public void InitializePage()
29 {
30 base.RemoveAllChildren();
31 if (49884 == 0)
32 {
33 }
35 long num = 0L;
36 LocalizedText text2 = Language.GetText("UI.EmoteCategoryGeneral");
37 int num2 = 10;
39 this.TryAddingList(text2, (int)num, num2, list);
40 LocalizedText text3 = Language.GetText("UI.EmoteCategoryRPS");
41 int num3 = 10;
43 this.TryAddingList(text3, (int)num, num3, list2);
44 LocalizedText text4 = Language.GetText("UI.EmoteCategoryItems");
45 int num4 = 11;
47 this.TryAddingList(text4, (int)num, num4, list3);
48 LocalizedText text5 = Language.GetText("UI.EmoteCategoryBiomesAndEvents");
49 int num5 = 8;
51 this.TryAddingList(text5, (int)num, num5, list4);
52 LocalizedText text6 = Language.GetText("UI.EmoteCategoryTownNPCs");
53 int num6 = 9;
55 this.TryAddingList(text6, (int)num, num6, list5);
56 LocalizedText text7 = Language.GetText("UI.EmoteCategoryCritters");
57 int num7 = 7;
59 this.TryAddingList(text7, (int)num, num7, list6);
60 LocalizedText text8 = Language.GetText("UI.EmoteCategoryBosses");
61 int num8 = 8;
63 this.TryAddingList(text8, (int)num, num8, list7);
64 }
65
66 // Token: 0x06004F0B RID: 20235 RVA: 0x00278B9C File Offset: 0x00276D9C
68 {
69 if (emoteIds != null && emoteIds._size != 0)
70 {
71 UIList list = this._list;
72 return;
73 }
74 }
75
76 // Token: 0x06004F0C RID: 20236 RVA: 0x000021DB File Offset: 0x000003DB
78 {
79 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
80 }
81
82 // Token: 0x06004F0D RID: 20237 RVA: 0x00278BC0 File Offset: 0x00276DC0
84 {
85 }
86
87 // Token: 0x06004F0E RID: 20238 RVA: 0x000021DB File Offset: 0x000003DB
89 {
90 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
91 }
92
93 // Token: 0x06004F0F RID: 20239 RVA: 0x000021DB File Offset: 0x000003DB
95 {
96 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
97 }
98
99 // Token: 0x06004F10 RID: 20240 RVA: 0x000021DB File Offset: 0x000003DB
101 {
102 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
103 }
104
105 // Token: 0x06004F11 RID: 20241 RVA: 0x00278BD4 File Offset: 0x00276DD4
107 {
108 int num = 1;
109 if (num == 0)
110 {
111 }
112 if (num != 0)
113 {
114 }
115 if (num == 0)
116 {
117 }
118 if (num != 0)
119 {
120 }
121 if (num == 0)
122 {
123 }
124 if (num != 0)
125 {
126 }
127 if (num == 0)
128 {
129 return;
130 }
131 }
132
133 // Token: 0x06004F12 RID: 20242 RVA: 0x00278C10 File Offset: 0x00276E10
135 {
136 /*
137An exception occurred when decompiling this method (06004F12)
138
139ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Collections.Generic.List`1<System.Int32> Terraria.GameContent.UI.States.UIEmotesMenu::GetEmotesBosses()
140
141 ---> System.Exception: Basic block has to end with unconditional control flow.
142{
143 IL_00F1:
144 stloc:bool(var_25_F9, callgetter:bool(DD2Event::get_DownedInvasionAnyDifficulty))
145}
146
147 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
148 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
149 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
150 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
151 --- End of inner exception stack trace ---
152 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
153 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
154*/;
155 }
156
157 // Token: 0x06004F13 RID: 20243 RVA: 0x00278D20 File Offset: 0x00276F20
158 public override void Recalculate()
159 {
161 if (scrollBar != null)
162 {
163 if (this._isScrollbarAttached)
164 {
165 bool canScroll = scrollBar.CanScroll;
166 if (this._isScrollbarAttached)
167 {
168 goto IL_0079;
169 }
170 }
171 bool canScroll2 = this._scrollBar.CanScroll;
172 UIElement container = this._container;
174 container.Append(scrollBar2);
175 UIList list = this._list;
176 int num = 1;
177 this._isScrollbarAttached = num != 0;
178 return;
179 }
180 IL_0079:
181 base.Recalculate();
182 }
183
184 // Token: 0x06004F14 RID: 20244 RVA: 0x00278DAC File Offset: 0x00276FAC
186 {
187 if (!true)
188 {
189 }
190 Main.menuMode = 0;
192 }
193
194 // Token: 0x06004F15 RID: 20245 RVA: 0x00278DCC File Offset: 0x00276FCC
196 {
197 UIElement target = evt.Target;
198 if (target != null)
199 {
200 }
201 if (evt.Target != null)
202 {
203 }
204 }
205
206 // Token: 0x06004F16 RID: 20246 RVA: 0x00278E08 File Offset: 0x00277008
208 {
209 int num = 1;
210 UIElement target = evt.Target;
211 if (num == 0)
212 {
213 }
214 if (target != null)
215 {
216 }
217 if (evt.Target != null)
218 {
219 }
220 }
221
222 // Token: 0x06004F17 RID: 20247 RVA: 0x00278E40 File Offset: 0x00277040
223 public override void Draw(SpriteBatch spriteBatch)
224 {
225 base.Draw(spriteBatch);
226 }
227
228 // Token: 0x06004F18 RID: 20248 RVA: 0x00278E54 File Offset: 0x00277054
230 {
231 }
232
233 // Token: 0x04008809 RID: 34825
235
236 // Token: 0x0400880A RID: 34826
238
239 // Token: 0x0400880B RID: 34827
241
242 // Token: 0x0400880C RID: 34828
243 private UIList _list;
244
245 // Token: 0x0400880D RID: 34829
247
248 // Token: 0x0400880E RID: 34830
250 }
251}
class f__AnonymousType0<< Count > j__TPar
void FadedMouseOut(UIMouseEvent evt, UIElement listeningElement)
void FadedMouseOver(UIMouseEvent evt, UIElement listeningElement)
void GoBackClick(UIMouseEvent evt, UIElement listeningElement)
void TryAddingList(LocalizedText title, int currentGroupIndex, int maxEmotesPerRow, List< int > emoteIds)
override void Draw(SpriteBatch spriteBatch)
static LocalizedText GetText(string key)
Definition Language.cs:44
static bool gameMenu
Definition Main.cs:2673
void Append(UIElement element)
Definition UIElement.cs:412