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
UIBestiaryEntryInfoPage.cs
Go to the documentation of this file.
1using System;
3using System.Linq;
7using Terraria.UI;
8
10{
11 // Token: 0x02000AA0 RID: 2720
13 {
14 // Token: 0x06005039 RID: 20537 RVA: 0x0027CAB0 File Offset: 0x0027ACB0
16 {
17 int num = 17254;
18 this.BorderColor = num;
20 if (num == 0)
21 {
22 }
23 UIList list = this._list;
24 this.CheckScrollBar();
26 }
27
28 // Token: 0x0600503A RID: 20538 RVA: 0x0027CB18 File Offset: 0x0027AD18
30 {
32 if (scrollbar != null)
33 {
35 return;
36 }
37 }
38
39 // Token: 0x0600503B RID: 20539 RVA: 0x0027CB38 File Offset: 0x0027AD38
41 {
42 if (!true)
43 {
44 }
45 }
46
47 // Token: 0x0600503C RID: 20540 RVA: 0x0027CB48 File Offset: 0x0027AD48
51
52 // Token: 0x0600503D RID: 20541 RVA: 0x0027CB58 File Offset: 0x0027AD58
53 public override void Recalculate()
54 {
55 base.Recalculate();
56 this.CheckScrollBar();
57 }
58
59 // Token: 0x0600503E RID: 20542 RVA: 0x0027CB74 File Offset: 0x0027AD74
60 private void CheckScrollBar()
61 {
63 if (scrollbar != null)
64 {
66 if (!this._isScrollbarAttached)
67 {
69 base.Append(scrollbar2);
70 UIList list = this._list;
71 int num = 1;
73 return;
74 }
75 }
76 }
77
78 // Token: 0x0600503F RID: 20543 RVA: 0x0027CBBC File Offset: 0x0027ADBC
80 {
81 UIList list = this._list;
82 if (entry != null)
83 {
84 return;
85 }
86 }
87
88 // Token: 0x06005040 RID: 20544 RVA: 0x0027CBD4 File Offset: 0x0027ADD4
90 {
91 /*
92An exception occurred when decompiling this method (06005040)
93
94ICSharpCode.Decompiler.DecompilerException: Error decompiling Terraria.GameContent.Bestiary.BestiaryUICollectionInfo Terraria.GameContent.UI.Elements.UIBestiaryEntryInfoPage::GetUICollectionInfo(Terraria.GameContent.Bestiary.BestiaryEntry,Terraria.GameContent.UI.Elements.ExtraBestiaryInfoPageInformation)
95
96 ---> System.Exception: Basic block has to end with unconditional control flow.
97{
98 IL_0000:
99 brtrue(IL_0000, logicnot:bool(ldfld:IBestiaryUICollectionInfoProvider[exp:bool](BestiaryEntry::UIInfoProvider, ldloc:BestiaryEntry(entry))))
100}
101
102 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
103 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
104 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
105 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
106 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
107 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
108 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
109 --- End of inner exception stack trace ---
110 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
111 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
112*/;
113 }
114
115 // Token: 0x06005041 RID: 20545 RVA: 0x0027CBE8 File Offset: 0x0027ADE8
120
121 // Token: 0x06005042 RID: 20546 RVA: 0x0027CCA0 File Offset: 0x0027AEA0
123 {
124 /*
125An exception occurred when decompiling this method (06005042)
126
127ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Single Terraria.GameContent.UI.Elements.UIBestiaryEntryInfoPage::GetIndividualElementPriority(Terraria.GameContent.Bestiary.IBestiaryInfoElement)
128
129 ---> System.Exception: Basic block has to end with unconditional control flow.
130{
131 IL_0000:
132 brtrue(IL_0000, logicnot:bool(ldloc:IBestiaryInfoElement[exp:bool](element)))
133}
134
135 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
136 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
137 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
138 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
139 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
140 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
141 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
142 --- End of inner exception stack trace ---
143 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
144 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
145*/;
146 }
147
148 // Token: 0x06005043 RID: 20547 RVA: 0x0027CCB0 File Offset: 0x0027AEB0
150 {
151 if (element != null)
152 {
153 return;
154 }
155 }
156
157 // Token: 0x0400890B RID: 35083
158 private UIList _list;
159
160 // Token: 0x0400890C RID: 35084
162
163 // Token: 0x0400890D RID: 35085
165
166 // Token: 0x02000AA1 RID: 2721
168 {
169 // Token: 0x0400890F RID: 35087
170 Nameplate,
171 // Token: 0x04008910 RID: 35088
172 Portrait,
173 // Token: 0x04008911 RID: 35089
175 // Token: 0x04008912 RID: 35090
176 Stats,
177 // Token: 0x04008913 RID: 35091
179 // Token: 0x04008914 RID: 35092
181 // Token: 0x04008915 RID: 35093
182 Misc
183 }
184
185 // Token: 0x02000AA2 RID: 2722
187 [Serializable]
188 private sealed class <>c
189 {
190 // Token: 0x06005044 RID: 20548 RVA: 0x0027CCD4 File Offset: 0x0027AED4
191 // Note: this type is marked as 'beforefieldinit'.
192 static <>c()
193 {
194 }
195
196 // Token: 0x06005045 RID: 20549 RVA: 0x0027CCE4 File Offset: 0x0027AEE4
197 public <>c()
198 {
199 }
200
201 // Token: 0x06005046 RID: 20550 RVA: 0x000021DB File Offset: 0x000003DB
203 {
204 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
205 }
206
207 // Token: 0x04008916 RID: 35094
208 public static readonly UIBestiaryEntryInfoPage.<>c <>9;
209
210 // Token: 0x04008917 RID: 35095
211 public static Func<IGrouping<UIBestiaryEntryInfoPage.BestiaryInfoCategory, IBestiaryInfoElement>, UIBestiaryEntryInfoPage.BestiaryInfoCategory> <>9__11_0;
212 }
213 }
214}
class f__AnonymousType0<< Count > j__TPar
void FillInfoForEntry(BestiaryEntry entry, ExtraBestiaryInfoPageInformation extraInfo)
BestiaryUICollectionInfo GetUICollectionInfo(BestiaryEntry entry, ExtraBestiaryInfoPageInformation extraInfo)
UIBestiaryEntryInfoPage.BestiaryInfoCategory GetBestiaryInfoCategory(IBestiaryInfoElement element)
void AddInfoToList(BestiaryEntry entry, ExtraBestiaryInfoPageInformation extraInfo)
void Append(UIElement element)
Definition UIElement.cs:412
UIElement< Parent > k__BackingField