TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches

◆ OnInitialize()

override void Terraria.ModLoader.UI.UIModInfo.OnInitialize ( )
inlinevirtual

Reimplemented from Terraria.UI.UIElement.

Definition at line 61 of file UIModInfo.cs.

62 {
63 //IL_00a1: Unknown result type (might be due to invalid IL or missing references)
64 //IL_00a6: Unknown result type (might be due to invalid IL or missing references)
65 //IL_0194: Unknown result type (might be due to invalid IL or missing references)
66 //IL_0199: Unknown result type (might be due to invalid IL or missing references)
67 //IL_022c: Unknown result type (might be due to invalid IL or missing references)
68 //IL_0232: Unknown result type (might be due to invalid IL or missing references)
69 //IL_0235: Unknown result type (might be due to invalid IL or missing references)
70 //IL_023b: Unknown result type (might be due to invalid IL or missing references)
71 //IL_023e: Unknown result type (might be due to invalid IL or missing references)
72 //IL_0244: Unknown result type (might be due to invalid IL or missing references)
73 //IL_0247: Unknown result type (might be due to invalid IL or missing references)
74 //IL_024d: Unknown result type (might be due to invalid IL or missing references)
75 //IL_02dd: Unknown result type (might be due to invalid IL or missing references)
76 //IL_02e3: Unknown result type (might be due to invalid IL or missing references)
77 //IL_02e6: Unknown result type (might be due to invalid IL or missing references)
78 //IL_02ec: Unknown result type (might be due to invalid IL or missing references)
79 //IL_02ef: Unknown result type (might be due to invalid IL or missing references)
80 //IL_02f5: Unknown result type (might be due to invalid IL or missing references)
81 //IL_02f8: Unknown result type (might be due to invalid IL or missing references)
82 //IL_02fe: Unknown result type (might be due to invalid IL or missing references)
83 //IL_038e: Unknown result type (might be due to invalid IL or missing references)
84 //IL_0394: Unknown result type (might be due to invalid IL or missing references)
85 //IL_0397: Unknown result type (might be due to invalid IL or missing references)
86 //IL_039d: Unknown result type (might be due to invalid IL or missing references)
87 //IL_03a0: Unknown result type (might be due to invalid IL or missing references)
88 //IL_03a6: Unknown result type (might be due to invalid IL or missing references)
89 //IL_03a9: Unknown result type (might be due to invalid IL or missing references)
90 //IL_03af: Unknown result type (might be due to invalid IL or missing references)
91 //IL_0448: Unknown result type (might be due to invalid IL or missing references)
92 //IL_044d: Unknown result type (might be due to invalid IL or missing references)
93 //IL_04b4: Unknown result type (might be due to invalid IL or missing references)
94 //IL_04ba: Unknown result type (might be due to invalid IL or missing references)
95 //IL_04bd: Unknown result type (might be due to invalid IL or missing references)
96 //IL_04c3: Unknown result type (might be due to invalid IL or missing references)
97 //IL_04c6: Unknown result type (might be due to invalid IL or missing references)
98 //IL_04cc: Unknown result type (might be due to invalid IL or missing references)
99 //IL_04cf: Unknown result type (might be due to invalid IL or missing references)
100 //IL_04d5: Unknown result type (might be due to invalid IL or missing references)
101 //IL_0568: Unknown result type (might be due to invalid IL or missing references)
102 //IL_056e: Unknown result type (might be due to invalid IL or missing references)
103 //IL_0571: Unknown result type (might be due to invalid IL or missing references)
104 //IL_0577: Unknown result type (might be due to invalid IL or missing references)
105 //IL_057a: Unknown result type (might be due to invalid IL or missing references)
106 //IL_0580: Unknown result type (might be due to invalid IL or missing references)
107 //IL_0583: Unknown result type (might be due to invalid IL or missing references)
108 //IL_0589: Unknown result type (might be due to invalid IL or missing references)
109 //IL_0619: Unknown result type (might be due to invalid IL or missing references)
110 //IL_061f: Unknown result type (might be due to invalid IL or missing references)
111 //IL_0622: Unknown result type (might be due to invalid IL or missing references)
112 //IL_0628: Unknown result type (might be due to invalid IL or missing references)
113 //IL_062b: Unknown result type (might be due to invalid IL or missing references)
114 //IL_0631: Unknown result type (might be due to invalid IL or missing references)
115 //IL_0634: Unknown result type (might be due to invalid IL or missing references)
116 //IL_063a: Unknown result type (might be due to invalid IL or missing references)
117 //IL_06d3: Unknown result type (might be due to invalid IL or missing references)
118 //IL_06d8: Unknown result type (might be due to invalid IL or missing references)
120 {
121 Width =
122 {
123 Percent = 0.8f
124 },
125 MaxWidth = new StyleDimension(800f, 0f),
126 Top =
127 {
128 Pixels = 220f
129 },
130 Height =
131 {
132 Pixels = -220f,
133 Percent = 1f
134 },
135 HAlign = 0.5f
136 };
137 UIPanel uIPanel = new UIPanel
138 {
139 Width =
140 {
141 Percent = 1f
142 },
143 Height =
144 {
145 Pixels = -110f,
146 Percent = 1f
147 },
148 BackgroundColor = UICommon.MainPanelBackground
149 };
150 _uIElement.Append(uIPanel);
151 _modInfo = new UIMessageBox(string.Empty)
152 {
153 Width =
154 {
155 Pixels = -25f,
156 Percent = 1f
157 },
158 Height =
159 {
160 Percent = 1f
161 }
162 };
163 uIPanel.Append(_modInfo);
164 UIScrollbar uIScrollbar = new UIScrollbar
165 {
166 Height =
167 {
168 Pixels = -12f,
169 Percent = 1f
170 },
171 VAlign = 0.5f,
172 HAlign = 1f
173 }.WithView(100f, 1000f);
174 uIPanel.Append(uIScrollbar);
175 _modInfo.SetScrollbar(uIScrollbar);
176 _uITextPanel = new UITextPanel<string>(Language.GetTextValue("tModLoader.ModInfoHeader"), 0.8f, large: true)
177 {
178 HAlign = 0.5f,
179 Top =
180 {
181 Pixels = -35f
182 },
183 BackgroundColor = UICommon.DefaultUIBlue
184 }.WithPadding(15f);
186 _modHomepageButton = new UIAutoScaleTextTextPanel<string>(Language.GetTextValue("tModLoader.ModInfoVisitHomepage"))
187 {
188 Width =
189 {
190 Pixels = -10f,
191 Percent = 0.333f
192 },
193 Height =
194 {
195 Pixels = 40f
196 },
197 HAlign = 0.5f,
198 VAlign = 1f,
199 Top =
200 {
201 Pixels = -65f
202 }
203 }.WithFadedMouseOver();
204 _modHomepageButton.OnLeftClick += VisitModHomePage;
205 _modSteamButton = new UIAutoScaleTextTextPanel<string>(Language.GetTextValue("tModLoader.ModInfoVisitSteampage"))
206 {
207 Width =
208 {
209 Pixels = -10f,
210 Percent = 0.333f
211 },
212 Height =
213 {
214 Pixels = 40f
215 },
216 HAlign = 0f,
217 VAlign = 1f,
218 Top =
219 {
220 Pixels = -65f
221 }
222 }.WithFadedMouseOver();
223 _modSteamButton.OnLeftClick += VisitModHostPage;
224 extractLocalizationButton = new UIAutoScaleTextTextPanel<string>(Language.GetTextValue("tModLoader.ModInfoExtractLocalization"))
225 {
226 Width =
227 {
228 Pixels = -10f,
229 Percent = 0.333f
230 },
231 Height =
232 {
233 Pixels = 40f
234 },
235 HAlign = 1f,
236 VAlign = 1f,
237 Top =
238 {
239 Pixels = -65f
240 }
241 }.WithFadedMouseOver();
242 extractLocalizationButton.OnLeftClick += ExtractLocalization;
243 fakeExtractLocalizationButton = new UIAutoScaleTextTextPanel<string>(Language.GetTextValue("tModLoader.ModInfoExtractLocalization"))
244 {
245 Width =
246 {
247 Pixels = -10f,
248 Percent = 0.333f
249 },
250 Height =
251 {
252 Pixels = 40f
253 },
254 HAlign = 1f,
255 VAlign = 1f,
256 Top =
257 {
258 Pixels = -65f
259 }
260 };
261 fakeExtractLocalizationButton.BackgroundColor = Color.Gray;
263 {
264 Width =
265 {
266 Pixels = -10f,
267 Percent = 0.333f
268 },
269 Height =
270 {
271 Pixels = 40f
272 },
273 VAlign = 1f,
274 Top =
275 {
276 Pixels = -20f
277 }
278 }.WithFadedMouseOver();
279 backButton.OnLeftClick += BackClick;
280 _uIElement.Append(backButton);
281 _extractButton = new UIAutoScaleTextTextPanel<string>(Language.GetTextValue("tModLoader.ModInfoExtract"))
282 {
283 Width =
284 {
285 Pixels = -10f,
286 Percent = 0.333f
287 },
288 Height =
289 {
290 Pixels = 40f
291 },
292 VAlign = 1f,
293 HAlign = 0.5f,
294 Top =
295 {
296 Pixels = -20f
297 }
298 }.WithFadedMouseOver();
299 _extractButton.OnLeftClick += ExtractMod;
301 {
302 Width =
303 {
304 Pixels = -10f,
305 Percent = 0.333f
306 },
307 Height =
308 {
309 Pixels = 40f
310 },
311 VAlign = 1f,
312 HAlign = 1f,
313 Top =
314 {
315 Pixels = -20f
316 }
317 }.WithFadedMouseOver();
318 _deleteButton.OnLeftClick += DeleteMod;
320 {
321 Width =
322 {
323 Pixels = -10f,
324 Percent = 0.333f
325 },
326 Height =
327 {
328 Pixels = 40f
329 },
330 VAlign = 1f,
331 HAlign = 1f,
332 Top =
333 {
334 Pixels = -20f
335 }
336 };
337 _fakeDeleteButton.BackgroundColor = Color.Gray;
339 }
static string GetTextValue(string key)
Retrieves the text value for a specified localization key. The text returned will be for the currentl...
Definition Language.cs:35
Contains methods to access or retrieve localization values. The Localization Guideteaches more about ...
Definition Language.cs:12
void SetScrollbar(UIScrollbar scrollbar)
UIAutoScaleTextTextPanel< string > _deleteButton
Definition UIModInfo.cs:35
void VisitModHostPage(UIMouseEvent evt, UIElement listeningElement)
Definition UIModInfo.cs:420
UITextPanel< string > _uITextPanel
Definition UIModInfo.cs:23
UIAutoScaleTextTextPanel< string > fakeExtractLocalizationButton
Definition UIModInfo.cs:31
UIAutoScaleTextTextPanel< string > extractLocalizationButton
Definition UIModInfo.cs:29
void ExtractLocalization(UIMouseEvent evt, UIElement listeningElement)
Definition UIModInfo.cs:341
UIAutoScaleTextTextPanel< string > _fakeDeleteButton
Definition UIModInfo.cs:37
void DeleteMod(UIMouseEvent evt, UIElement listeningElement)
Definition UIModInfo.cs:407
UIAutoScaleTextTextPanel< string > _extractButton
Definition UIModInfo.cs:33
UIAutoScaleTextTextPanel< string > _modSteamButton
Definition UIModInfo.cs:27
UIAutoScaleTextTextPanel< string > _modHomepageButton
Definition UIModInfo.cs:25
void VisitModHomePage(UIMouseEvent evt, UIElement listeningElement)
Definition UIModInfo.cs:414
void ExtractMod(UIMouseEvent evt, UIElement listeningElement)
Definition UIModInfo.cs:401
void BackClick(UIMouseEvent evt, UIElement listeningElement)
Definition UIModInfo.cs:395
StyleDimension Height
Definition UIElement.cs:29
StyleDimension MaxWidth
Definition UIElement.cs:31
void Append(UIElement element)
Definition UIElement.cs:194
StyleDimension Width
Definition UIElement.cs:27
StyleDimension Top
Definition UIElement.cs:23

References Terraria.ModLoader.UI.UIModInfo._deleteButton, Terraria.ModLoader.UI.UIModInfo._extractButton, Terraria.ModLoader.UI.UIModInfo._fakeDeleteButton, Terraria.ModLoader.UI.UIModInfo._modHomepageButton, Terraria.ModLoader.UI.UIModInfo._modInfo, Terraria.ModLoader.UI.UIModInfo._modSteamButton, Terraria.ModLoader.UI.UIModInfo._uIElement, Terraria.ModLoader.UI.UIModInfo._uITextPanel, Terraria.UI.UIElement.Append(), Terraria.ModLoader.UI.UIModInfo.BackClick(), Terraria.ModLoader.UI.UIModInfo.DeleteMod(), Terraria.ModLoader.UI.UIModInfo.ExtractLocalization(), Terraria.ModLoader.UI.UIModInfo.extractLocalizationButton, Terraria.ModLoader.UI.UIModInfo.ExtractMod(), Terraria.ModLoader.UI.UIModInfo.fakeExtractLocalizationButton, Terraria.Localization.Language.GetTextValue(), Terraria.UI.UIElement.HAlign, Terraria.UI.UIElement.Height, Terraria.UI.UIElement.MaxWidth, Terraria.ModLoader.UI.UIMessageBox.SetScrollbar(), Terraria.UI.UIElement.Top, Terraria.UI.UIElement.VAlign, Terraria.ModLoader.UI.UIModInfo.VisitModHomePage(), Terraria.ModLoader.UI.UIModInfo.VisitModHostPage(), and Terraria.UI.UIElement.Width.

+ Here is the call graph for this function: