62 {
63 if (
info.UnlockState == BestiaryEntryUnlockState.NotKnownAtAll_0)
64 {
65 return null;
66 }
69 {
72 };
73 int num = 99;
74 int num2 = 35;
75 int num3 = 3;
76 int num4 = 0;
78 {
81 };
83 {
86 };
88 {
91 };
93 {
96 };
98 uIElement.
Append(uIImage2);
99 uIElement.
Append(uIImage3);
100 uIElement.
Append(uIImage4);
101 int num5 = -10;
102 int num6 = 0;
104 string text = Utils.Clamp(num7 / 1000000, 0, 999).ToString();
105 string text2 = Utils.Clamp(num7 % 1000000 / 10000, 0, 99).ToString();
106 string text3 = Utils.Clamp(num7 % 10000 / 100, 0, 99).ToString();
107 string text4 = Utils.Clamp(num7 % 100 / 1, 0, 99).ToString();
108 if (num7 / 1000000 < 1)
109 {
111 }
112 if (num7 / 10000 < 1)
113 {
114 text2 = "-";
115 }
116 if (num7 / 100 < 1)
117 {
118 text3 = "-";
119 }
120 if (num7 < 1)
121 {
122 text4 = "-";
123 }
124 string text5 =
LifeMax.ToString();
125 string text6 =
Damage.ToString();
126 string text7 =
Defense.ToString();
128 if (
info.UnlockState < BestiaryEntryUnlockState.CanShowStats_2)
129 {
130 text = (text2 = (text3 = (text4 =
"?")));
131 text5 = (text6 = (text7 = (text8 = "???")));
132 }
134 {
135 HAlign = 1f,
136 VAlign = 0.5f,
139 IgnoresMouseInteraction = true
140 };
142 {
143 HAlign = 1f,
144 VAlign = 0.5f,
147 IgnoresMouseInteraction = true
148 };
150 {
151 HAlign = 1f,
152 VAlign = 0.5f,
155 IgnoresMouseInteraction = true
156 };
158 {
159 HAlign = 1f,
160 VAlign = 0.5f,
163 IgnoresMouseInteraction = true
164 };
166 uIImage2.
Append(element3);
167 uIImage3.
Append(element4);
168 uIImage4.
Append(element2);
169 int num8 = 66;
170 if (num7 > 0)
171 {
173 {
178 };
179 uIElement.
Append(element5);
180 num8 += 4;
181 int num9 = num3;
182 int num10 = num8 + 8;
183 int num11 = 49;
185 {
188 };
190 {
193 };
195 {
198 };
200 {
203 };
204 if (text != "-")
205 {
206 uIElement.
Append(uIImage5);
207 }
208 if (text2 != "-")
209 {
210 uIElement.
Append(uIImage6);
211 }
212 if (text3 != "-")
213 {
214 uIElement.
Append(uIImage7);
215 }
216 if (text4 != "-")
217 {
218 uIElement.
Append(uIImage8);
219 }
220 int num12 = num5 + 3;
221 float textScale = 0.85f;
223 {
224 HAlign = 1f,
225 VAlign = 0.5f,
228 };
230 {
231 HAlign = 1f,
232 VAlign = 0.5f,
235 };
237 {
238 HAlign = 1f,
239 VAlign = 0.5f,
242 };
244 {
245 HAlign = 1f,
246 VAlign = 0.5f,
249 };
250 uIImage5.
Append(element6);
251 uIImage6.
Append(element7);
252 uIImage7.
Append(element8);
253 uIImage8.
Append(element9);
254 num8 += 34;
255 }
256 num8 += 4;
257 uIElement.Height.Pixels = num8;
262 return uIElement;
263 }
void ShowStats_Knockback(UIElement element)
void ShowStats_Attack(UIElement element)
void ShowStats_Defense(UIElement element)
void ShowStats_Life(UIElement element)
void RefreshStats(GameModeData gameModeFound, NPC instance)
static LocalizedText GetText(string key)
void Append(UIElement element)
static StyleDimension FromPixelsAndPercent(float pixels, float percent)