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
UIBestiaryEntryIcon.cs
Go to the documentation of this file.
1using System;
6using Terraria.UI;
7
9{
10 // Token: 0x02000A9F RID: 2719
12 {
13 // Token: 0x06005035 RID: 20533 RVA: 0x0027C938 File Offset: 0x0027AB38
15 {
16 int num = 1;
17 if (num == 0)
18 {
19 }
20 base..ctor();
21 this._entry = entry;
22 int num2 = 1;
24 if (num == 0)
25 {
26 }
30 }
31
32 // Token: 0x06005036 RID: 20534 RVA: 0x0027C9A0 File Offset: 0x0027ABA0
37
38 // Token: 0x06005037 RID: 20535 RVA: 0x0027C9FC File Offset: 0x0027ABFC
39 protected override void DrawSelf(SpriteBatch spriteBatch)
40 {
41 float x = this._dimensions.X;
42 BestiaryEntry entry = this._entry;
45 IEntryIcon icon = entry.Icon;
46 }
47
48 // Token: 0x06005038 RID: 20536 RVA: 0x0027CA80 File Offset: 0x0027AC80
49 public string GetHoverText()
50 {
51 /*
52An exception occurred when decompiling this method (06005038)
53
54ICSharpCode.Decompiler.DecompilerException: Error decompiling System.String Terraria.GameContent.UI.Elements.UIBestiaryEntryIcon::GetHoverText()
55
56 ---> System.Exception: Basic block has to end with unconditional control flow.
57{
58 Block_0:
59 stloc:BestiaryEntry(var_0_06, ldfld:BestiaryEntry(UIBestiaryEntryIcon::_entry, ldloc:UIBestiaryEntryIcon(this)))
60 stloc:BestiaryUICollectionInfo(var_1_0D, ldfld:BestiaryUICollectionInfo(UIBestiaryEntryIcon::_collectionInfo, ldloc:UIBestiaryEntryIcon(this)))
61 stloc:BestiaryEntryUnlockState(var_2_19, ldfld:BestiaryEntryUnlockState(BestiaryUICollectionInfo::UnlockState, ldfld:BestiaryUICollectionInfo[exp:valuetype Terraria.GameContent.Bestiary.BestiaryUICollectionInfo&](UIBestiaryEntryIcon::_collectionInfo, ldloc:UIBestiaryEntryIcon(this))))
62 stloc:IEntryIcon(var_3_20, ldfld:IEntryIcon(BestiaryEntry::Icon, ldloc:BestiaryEntry(var_0_06)))
63}
64
65 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
66 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
67 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
68 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
69 --- End of inner exception stack trace ---
70 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
71 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
72*/;
73 }
74
75 // Token: 0x04008906 RID: 35078
77
78 // Token: 0x04008907 RID: 35079
80
81 // Token: 0x04008908 RID: 35080
82 private bool _isPortrait;
83
84 // Token: 0x04008909 RID: 35081
85 public bool ForceHover;
86
87 // Token: 0x0400890A RID: 35082
89 }
90}
class f__AnonymousType0<< Count > j__TPar
IBestiaryUICollectionInfoProvider UIInfoProvider
override void DrawSelf(SpriteBatch spriteBatch)
UIBestiaryEntryIcon(BestiaryEntry entry, bool isPortrait)
static SamplerState DefaultSamplerState
Definition Main.cs:5102
CalculatedStyle _dimensions