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
UIBestiaryTest.cs
Go to the documentation of this file.
1using System;
11using Terraria.UI;
12
14{
15 // Token: 0x02000A6F RID: 2671
16 public class UIBestiaryTest : UIState
17 {
18 // Token: 0x06004EB9 RID: 20153 RVA: 0x00277CA0 File Offset: 0x00275EA0
29
30 // Token: 0x06004EBA RID: 20154 RVA: 0x00277CE4 File Offset: 0x00275EE4
31 public void OnOpenPage()
32 {
34 }
35
36 // Token: 0x06004EBB RID: 20155 RVA: 0x00277CF8 File Offset: 0x00275EF8
59
60 // Token: 0x06004EBC RID: 20156 RVA: 0x00277D7C File Offset: 0x00275F7C
61 private void FillProgressBottomBar(UIElement container)
62 {
63 }
64
65 // Token: 0x06004EBD RID: 20157 RVA: 0x00277D8C File Offset: 0x00275F8C
66 private void ShowStats_Completion(UIElement element)
67 {
69 {
71 if ("Only TraceListeners can be added to a TraceListenerCollection." == null)
72 {
73 }
74 }
75 }
76
77 // Token: 0x06004EBE RID: 20158 RVA: 0x00277DB0 File Offset: 0x00275FB0
78 private string GetCompletionPercentText()
79 {
80 if (!true)
81 {
82 }
83 float num;
84 string text = Utils.PrettifyPercentDisplay(num, "P2");
85 string text2;
86 return text2;
87 }
88
89 // Token: 0x06004EBF RID: 20159 RVA: 0x000021DB File Offset: 0x000003DB
90 private float GetProgressPercent()
91 {
92 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
93 }
94
95 // Token: 0x06004EC0 RID: 20160 RVA: 0x00277DD0 File Offset: 0x00275FD0
96 private void EmptyInteraction(float input)
97 {
98 }
99
100 // Token: 0x06004EC1 RID: 20161 RVA: 0x00277DE0 File Offset: 0x00275FE0
101 private void EmptyInteraction2()
102 {
103 }
104
105 // Token: 0x06004EC2 RID: 20162 RVA: 0x00277DF0 File Offset: 0x00275FF0
107 {
108 Color color;
109 return color;
110 }
111
112 // Token: 0x06004EC3 RID: 20163 RVA: 0x00277E0C File Offset: 0x0027600C
114 {
115 if (!true)
116 {
117 }
118 }
119
120 // Token: 0x06004EC4 RID: 20164 RVA: 0x00277E48 File Offset: 0x00276048
122 {
123 if (!true)
124 {
125 }
126 }
127
128 // Token: 0x06004EC5 RID: 20165 RVA: 0x00277E88 File Offset: 0x00276088
130 {
131 if (!true)
132 {
133 }
134 }
135
136 // Token: 0x06004EC6 RID: 20166 RVA: 0x00277EF0 File Offset: 0x002760F0
142
143 // Token: 0x06004EC7 RID: 20167 RVA: 0x00277F14 File Offset: 0x00276114
147
148 // Token: 0x06004EC8 RID: 20168 RVA: 0x00277F24 File Offset: 0x00276124
150 {
151 string <Value>k__BackingField = Language.GetText("UI.PlayerNameSlot").<Value>k__BackingField;
152 }
153
154 // Token: 0x06004EC9 RID: 20169 RVA: 0x00277F44 File Offset: 0x00276144
155 private void OnFinishedSettingName(string name)
156 {
157 string text = name.Trim();
159 long num = 0L;
160 searchBar.SetContents(text, num != 0L);
161 }
162
163 // Token: 0x06004ECA RID: 20170 RVA: 0x00277F6C File Offset: 0x0027616C
164 private void GoBackHere()
165 {
166 if (!true)
167 {
168 }
170 }
171
172 // Token: 0x06004ECB RID: 20171 RVA: 0x00277F88 File Offset: 0x00276188
173 private void OnStartTakingInput()
174 {
176 if (!true)
177 {
178 }
180 }
181
182 // Token: 0x06004ECC RID: 20172 RVA: 0x00277FA8 File Offset: 0x002761A8
183 private void OnEndTakingInput()
184 {
186 }
187
188 // Token: 0x06004ECD RID: 20173 RVA: 0x00277FBC File Offset: 0x002761BC
189 private void OnSearchContentsChanged(string contents)
190 {
191 this._searchString = contents;
192 this._filterer.SetSearchFilter(contents);
194 }
195
196 // Token: 0x06004ECE RID: 20174 RVA: 0x00277FE4 File Offset: 0x002761E4
198 {
199 UIElement target = evt.Target;
201 UIElement <Parent>k__BackingField = target.<Parent>k__BackingField;
204 }
205
206 // Token: 0x06004ECF RID: 20175 RVA: 0x00278018 File Offset: 0x00276218
207 public override void LeftClick(UIMouseEvent evt)
208 {
209 base.LeftClick(evt);
211 }
212
213 // Token: 0x06004ED0 RID: 20176 RVA: 0x00278034 File Offset: 0x00276234
214 public override void RightClick(UIMouseEvent evt)
215 {
216 base.RightClick(evt);
218 }
219
220 // Token: 0x06004ED1 RID: 20177 RVA: 0x00278050 File Offset: 0x00276250
225
226 // Token: 0x06004ED2 RID: 20178 RVA: 0x00278064 File Offset: 0x00276264
227 public override void Update(GameTime gameTime)
228 {
229 base.Update(gameTime);
230 if (this._didClickSomething && !this._didClickSearchBar)
231 {
233 if (searchBar.isWritingText)
234 {
236 }
237 }
238 }
239
240 // Token: 0x06004ED3 RID: 20179 RVA: 0x000021DB File Offset: 0x000003DB
241 private void FilterEntries()
242 {
243 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
244 }
245
246 // Token: 0x06004ED4 RID: 20180 RVA: 0x002780A0 File Offset: 0x002762A0
247 private void SortEntries()
248 {
249 while (this._workingSetEntries == null)
250 {
251 }
252 }
253
254 // Token: 0x06004ED5 RID: 20181 RVA: 0x002780FC File Offset: 0x002762FC
268
269 // Token: 0x06004ED6 RID: 20182 RVA: 0x00278140 File Offset: 0x00276340
271 {
273 string rangeText = this._entryGrid.GetRangeText();
274 indexesRangeText.SetText(rangeText);
275 }
276
277 // Token: 0x06004ED7 RID: 20183 RVA: 0x00278168 File Offset: 0x00276368
278 public override void Recalculate()
279 {
280 base.Recalculate();
282 }
283
284 // Token: 0x06004ED8 RID: 20184 RVA: 0x00278184 File Offset: 0x00276384
285 private void GetEntriesToShow([Out] int maxEntriesWidth, [Out] int maxEntriesHeight, [Out] int maxEntriesToHave)
286 {
287 float x = this._bestiarySpace._dimensions.X;
288 int num = 36409;
291 }
292
293 // Token: 0x06004ED9 RID: 20185 RVA: 0x002781B8 File Offset: 0x002763B8
295 {
296 LocalizedText text = Language.GetText("UI.Back");
297 }
298
299 // Token: 0x06004EDA RID: 20186 RVA: 0x002781D8 File Offset: 0x002763D8
301 {
302 if (!true)
303 {
304 }
305 bool gameMenu = Main.gameMenu;
306 if (!true)
307 {
308 }
309 Main.menuMode = 0;
310 }
311
312 // Token: 0x06004EDB RID: 20187 RVA: 0x00278204 File Offset: 0x00276404
332
333 // Token: 0x06004EDC RID: 20188 RVA: 0x00278274 File Offset: 0x00276474
354
355 // Token: 0x06004EDD RID: 20189 RVA: 0x002782F4 File Offset: 0x002764F4
361
362 // Token: 0x06004EDE RID: 20190 RVA: 0x0027832C File Offset: 0x0027652C
370
371 // Token: 0x06004EDF RID: 20191 RVA: 0x00278354 File Offset: 0x00276554
390
391 // Token: 0x06004EE0 RID: 20192 RVA: 0x002783D8 File Offset: 0x002765D8
397
398 // Token: 0x06004EE1 RID: 20193 RVA: 0x00278410 File Offset: 0x00276610
406
407 // Token: 0x06004EE2 RID: 20194 RVA: 0x00278438 File Offset: 0x00276638
409 {
410 UIElement target = evt.Target;
411 if (target != null)
412 {
413 }
414 if (evt.Target != null)
415 {
416 }
417 }
418
419 // Token: 0x06004EE3 RID: 20195 RVA: 0x00278474 File Offset: 0x00276674
421 {
422 int num = 1;
423 UIElement target = evt.Target;
424 if (num == 0)
425 {
426 }
427 if (target != null)
428 {
429 }
430 if (evt.Target != null)
431 {
432 }
433 }
434
435 // Token: 0x06004EE4 RID: 20196 RVA: 0x002784AC File Offset: 0x002766AC
437 {
438 if (listeningElement != null)
439 {
440 return;
441 }
442 }
443
444 // Token: 0x06004EE5 RID: 20197 RVA: 0x002784C4 File Offset: 0x002766C4
453
454 // Token: 0x06004EE6 RID: 20198 RVA: 0x002784F4 File Offset: 0x002766F4
455 private void DeselectEntryButton()
456 {
458 }
459
460 // Token: 0x06004EE7 RID: 20199 RVA: 0x00278508 File Offset: 0x00276708
462 {
463 /*
464An exception occurred when decompiling this method (06004EE7)
465
466ICSharpCode.Decompiler.DecompilerException: Error decompiling Terraria.GameContent.Bestiary.BestiaryUnlockProgressReport Terraria.GameContent.UI.States.UIBestiaryTest::GetUnlockProgress()
467
468 ---> System.Exception: Basic block has to end with unconditional control flow.
469{
470 Block_0:
471 stloc:class [mscorlib]System.Collections.Generic.List`1<class Terraria.GameContent.Bestiary.BestiaryEntry>(var_0_06, ldfld:class [mscorlib]System.Collections.Generic.List`1<class Terraria.GameContent.Bestiary.BestiaryEntry>(UIBestiaryTest::_originalEntriesList, ldloc:UIBestiaryTest(this)))
472 stloc:int32(var_1_0D, ldfld:int32(List`1::_size, ldloc:class [mscorlib]System.Collections.Generic.List`1<class Terraria.GameContent.Bestiary.BestiaryEntry>[exp:List`1](var_0_06)))
473 stloc:object(var_3_16, ldfld:object(List`1::_syncRoot, ldloc:class [mscorlib]System.Collections.Generic.List`1<class Terraria.GameContent.Bestiary.BestiaryEntry>[exp:List`1](var_0_06)))
474 stloc:int32(var_4_1D, ldfld:int32(List`1::_size, ldloc:class [mscorlib]System.Collections.Generic.List`1<class Terraria.GameContent.Bestiary.BestiaryEntry>[exp:List`1](var_0_06)))
475}
476
477 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
478 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
479 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
480 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
481 --- End of inner exception stack trace ---
482 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
483 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
484*/;
485 }
486
487 // Token: 0x06004EE8 RID: 20200 RVA: 0x00278534 File Offset: 0x00276734
488 public override void Draw(SpriteBatch spriteBatch)
489 {
490 base.Draw(spriteBatch);
491 }
492
493 // Token: 0x040087CF RID: 34767
495
496 // Token: 0x040087D0 RID: 34768
498
499 // Token: 0x040087D1 RID: 34769
501
502 // Token: 0x040087D2 RID: 34770
504
505 // Token: 0x040087D3 RID: 34771
507
508 // Token: 0x040087D4 RID: 34772
510
511 // Token: 0x040087D5 RID: 34773
513
514 // Token: 0x040087D6 RID: 34774
516
517 // Token: 0x040087D7 RID: 34775
519
520 // Token: 0x040087D8 RID: 34776
522
523 // Token: 0x040087D9 RID: 34777
525
526 // Token: 0x040087DA RID: 34778
528
529 // Token: 0x040087DB RID: 34779
531
532 // Token: 0x040087DC RID: 34780
534
535 // Token: 0x040087DD RID: 34781
537
538 // Token: 0x040087DE RID: 34782
539 private string _searchString;
540
541 // Token: 0x040087DF RID: 34783
543
544 // Token: 0x040087E0 RID: 34784
546
547 // Token: 0x040087E1 RID: 34785
549
550 // Token: 0x040087E2 RID: 34786
551 private bool _didClickSomething;
552
553 // Token: 0x040087E3 RID: 34787
554 private bool _didClickSearchBar;
555 }
556}
class f__AnonymousType0<< Count > j__TPar
void SetSearchFilter(string searchFilter)
void SetContents(string contents, bool forced=false)
void FadedMouseOver(UIMouseEvent evt, UIElement listeningElement)
void searchCancelButton_OnClick(UIMouseEvent evt, UIElement listeningElement)
void GetEntriesToShow([Out] int maxEntriesWidth, [Out] int maxEntriesHeight, [Out] int maxEntriesToHave)
EntryFilterer< BestiaryEntry, IBestiaryEntryFilter > _filterer
void FillProgressBottomBar(UIElement container)
void searchCancelButton_OnMouseOver(UIMouseEvent evt, UIElement listeningElement)
void Click_SelectEntryButton(UIMouseEvent evt, UIElement listeningElement)
EntrySorter< BestiaryEntry, IBestiarySortStep > _sorter
void Click_SearchArea(UIMouseEvent evt, UIElement listeningElement)
void AddBackAndForwardButtons(UIElement innerTopContainer)
void AddSortAndFilterButtons(UIElement innerTopContainer, UIBestiaryEntryInfoPage infoSpace)
override void RightClick(UIMouseEvent evt)
override void Update(GameTime gameTime)
BestiaryUnlockProgressReport _progressReport
void SelectEntryButton(UIBestiaryEntryButton button)
void Click_CloseSortingGrid(UIMouseEvent evt, UIElement listeningElement)
void AddSearchBar(UIElement innerTopContainer, UIBestiaryEntryInfoPage infoSpace)
override void Draw(SpriteBatch spriteBatch)
UIBestiaryFilteringOptionsGrid _filteringGrid
BestiaryUnlockProgressReport GetUnlockProgress()
void Click_CloseFilteringGrid(UIMouseEvent evt, UIElement listeningElement)
void Click_GoBack(UIMouseEvent evt, UIElement listeningElement)
void OpenOrCloseSortingOptions(UIMouseEvent evt, UIElement listeningElement)
override void LeftClick(UIMouseEvent evt)
void FadedMouseOut(UIMouseEvent evt, UIElement listeningElement)
void MakeExitButton(UIElement outerContainer)
void OpenOrCloseFilteringGrid(UIMouseEvent evt, UIElement listeningElement)
static LocalizedText GetText(string key)
Definition Language.cs:44
static bool gameMenu
Definition Main.cs:2673
void Append(UIElement element)
Definition UIElement.cs:412
UIElement< Parent > k__BackingField
void RemoveChild(UIElement child)
Definition UIElement.cs:429
CalculatedStyle _dimensions
static string PrettifyPercentDisplay(float percent, string originalFormat)
Definition Utils.cs:474