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

◆ DrawChildren()

override void Terraria.ModLoader.UI.ModBrowser.UIModDownloadItem.DrawChildren ( SpriteBatch spriteBatch)
inlineprotectedvirtual

Reimplemented from Terraria.UI.UIElement.

Definition at line 265 of file UIModDownloadItem.cs.

266 {
267 //IL_002f: Unknown result type (might be due to invalid IL or missing references)
268 //IL_006a: Unknown result type (might be due to invalid IL or missing references)
269 base.DrawChildren(spriteBatch);
271 if (uIAutoScaleTextTextPanel != null && uIAutoScaleTextTextPanel.IsMouseHovering)
272 {
273 UICommon.DrawHoverStringInBounds(spriteBatch, Language.GetTextValue("tModLoader.MBClickToUpdate"), GetInnerDimensions().ToRectangle());
274 }
275 if (_modName.IsMouseHovering)
276 {
277 UICommon.DrawHoverStringInBounds(spriteBatch, Language.GetTextValue("tModLoader.ModsByline", ModDownload.Author), GetInnerDimensions().ToRectangle());
278 }
279 }
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
readonly UIAutoScaleTextTextPanel< string > tMLUpdateRequired
CalculatedStyle GetInnerDimensions()
Definition UIElement.cs:455

References Terraria.ModLoader.UI.ModBrowser.UIModDownloadItem._modName, Terraria.ModLoader.UI.UICommon.DrawHoverStringInBounds(), Terraria.UI.UIElement.GetInnerDimensions(), Terraria.Localization.Language.GetTextValue(), Terraria.ModLoader.UI.ModBrowser.UIModDownloadItem.ModDownload, and Terraria.ModLoader.UI.ModBrowser.UIModDownloadItem.tMLUpdateRequired.

+ Here is the call graph for this function: