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
UIBestiaryEntryGrid.cs
Go to the documentation of this file.
1using System;
6using Terraria.UI;
7
9{
10 // Token: 0x02000A98 RID: 2712
12 {
13 // Token: 0x1400005C RID: 92
14 // (add) Token: 0x06005007 RID: 20487 RVA: 0x0027C15C File Offset: 0x0027A35C
15 // (remove) Token: 0x06005008 RID: 20488 RVA: 0x0027C180 File Offset: 0x0027A380
17 {
19 add
20 {
21 if (Delegate.Combine(this.OnGridContentsChanged, value) != null)
22 {
23 }
24 }
26 remove
27 {
28 if (Delegate.Remove(this.OnGridContentsChanged, value) != null)
29 {
30 }
31 }
32 }
33
34 // Token: 0x06005009 RID: 20489 RVA: 0x0027C1A4 File Offset: 0x0027A3A4
47
48 // Token: 0x0600500A RID: 20490 RVA: 0x0027C1E4 File Offset: 0x0027A3E4
49 public void UpdateEntries()
50 {
51 int size = this._workingSetEntries._size;
52 this._lastEntry = size;
53 }
54
55 // Token: 0x0600500B RID: 20491 RVA: 0x0027C204 File Offset: 0x0027A404
57 {
58 base.RemoveAllChildren();
60 float x = this._dimensions.X;
61 int size = workingSetEntries._size;
62 this._lastEntry = size;
63 int num = 36409;
64 long num2 = 0L;
65 int atEntryIndex = this._atEntryIndex;
66 int lastEntry = this._lastEntry;
67 if (num == 0)
68 {
69 }
70 int num3 = Math.Min(lastEntry, (int)num2);
72 }
73
74 // Token: 0x0600500C RID: 20492 RVA: 0x0027C27C File Offset: 0x0027A47C
75 public override void Recalculate()
76 {
77 base.Recalculate();
79 }
80
81 // Token: 0x0600500D RID: 20493 RVA: 0x0027C298 File Offset: 0x0027A498
82 public void GetEntriesToShow([Out] int maxEntriesWidth, [Out] int maxEntriesHeight, [Out] int maxEntriesToHave)
83 {
84 float x = this._dimensions.X;
85 int num = 36409;
88 }
89
90 // Token: 0x0600500E RID: 20494 RVA: 0x0027C2C8 File Offset: 0x0027A4C8
91 public string GetRangeText()
92 {
93 float x = this._dimensions.X;
94 long num = 0L;
95 int atEntryIndex = this._atEntryIndex;
96 int num2 = Math.Min(this._lastEntry, (int)num);
97 int num3 = Math.Min(num2, num2);
98 int lastEntry = this._lastEntry;
99 string text;
100 return text;
101 }
102
103 // Token: 0x0600500F RID: 20495 RVA: 0x0027C310 File Offset: 0x0027A510
105 {
106 }
107
108 // Token: 0x06005010 RID: 20496 RVA: 0x0027C320 File Offset: 0x0027A520
110 {
111 float x = this._dimensions.X;
112 long num = 0L;
113 this.OffsetLibrary((int)num);
114 }
115
116 // Token: 0x06005011 RID: 20497 RVA: 0x0027C344 File Offset: 0x0027A544
117 public void OffsetLibrary(int offset)
118 {
119 float x = this._dimensions.X;
121 }
122
123 // Token: 0x06005012 RID: 20498 RVA: 0x0027C364 File Offset: 0x0027A564
125 {
126 int num = 1;
127 int atEntryIndex = this._atEntryIndex;
128 int lastEntry = this._lastEntry;
129 if (num == 0)
130 {
131 }
132 int num2 = Math.Max(0, offset);
134 if (onGridContentsChanged != null)
135 {
136 IntPtr invoke_impl = onGridContentsChanged.invoke_impl;
137 IntPtr method_code = onGridContentsChanged.method_code;
138 IntPtr method = onGridContentsChanged.method;
139 return;
140 }
141 }
142
143 // Token: 0x040088E8 RID: 35048
145
146 // Token: 0x040088E9 RID: 35049
148
149 // Token: 0x040088EA RID: 35050
150 private int _atEntryIndex;
151
152 // Token: 0x040088EB RID: 35051
153 private int _lastEntry;
154
155 // Token: 0x040088EC RID: 35052
158
159 // Token: 0x02000A99 RID: 2713
161 private sealed class <>c__DisplayClass13_0
162 {
163 // Token: 0x06005013 RID: 20499 RVA: 0x0027C3B4 File Offset: 0x0027A5B4
165 {
166 }
167
168 // Token: 0x06005014 RID: 20500 RVA: 0x0027C3C8 File Offset: 0x0027A5C8
170 {
172 int num = this.howManyPages;
173 uibestiaryEntryGrid.OffsetLibraryByPages(num);
174 }
175
176 // Token: 0x040088ED RID: 35053
178
179 // Token: 0x040088EE RID: 35054
180 public int howManyPages;
181 }
182 }
183}
class f__AnonymousType0<< Count > j__TPar
static Delegate Combine(Delegate a, Delegate b)
Definition Delegate.cs:255
static Delegate Remove(Delegate source, Delegate value)
Definition Delegate.cs:278
static byte Min(byte val1, byte val2)
Definition Math.cs:152
static byte Max(byte val1, byte val2)
Definition Math.cs:111
void FixBestiaryRange(int offset, int maxEntriesToHave)
void GetEntriesToShow([Out] int maxEntriesWidth, [Out] int maxEntriesHeight, [Out] int maxEntriesToHave)
UIBestiaryEntryGrid(List< BestiaryEntry > workingSet, UIElement.MouseEvent clickOnEntryEvent)
void MakeButtonGoByOffset(UIElement element, int howManyPages)
CalculatedStyle _dimensions