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

◆ DrawSelf()

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

Reimplemented from Terraria.GameContent.UI.Elements.UIPanel.

Definition at line 212 of file UIModDownloadItem.cs.

213 {
214 //IL_0067: Unknown result type (might be due to invalid IL or missing references)
215 //IL_0071: Unknown result type (might be due to invalid IL or missing references)
216 //IL_007b: Unknown result type (might be due to invalid IL or missing references)
217 //IL_0099: Unknown result type (might be due to invalid IL or missing references)
218 //IL_00d1: Unknown result type (might be due to invalid IL or missing references)
219 base.DrawSelf(spriteBatch);
220 if (HasModIcon && ModIconStatus == ModIconStatus.UNKNOWN)
221 {
223 }
225 float leftOffset = (HasModIcon ? ModIconAdjust : 0f);
226 Vector2 drawPos = default(Vector2);
227 ((Vector2)(ref drawPos))._002Ector(innerDimensions.X + 5f + leftOffset, innerDimensions.Y + 30f);
228 spriteBatch.Draw(_dividerTexture.Value, drawPos, (Rectangle?)null, Color.White, 0f, Vector2.Zero, new Vector2((innerDimensions.Width - 10f - leftOffset) / 8f, 1f), (SpriteEffects)0, 0f);
229 ((Vector2)(ref drawPos))._002Ector(innerDimensions.X + innerDimensions.Width - 125f, innerDimensions.Y + 45f);
230 DrawTimeText(spriteBatch, drawPos);
232 if (updateButton != null && updateButton.IsMouseHovering)
233 {
234 tooltip = Language.GetTextValue("tModLoader.BrowserRejectWarning");
235 return;
236 }
238 if (updateWithDepsButton != null && updateWithDepsButton.IsMouseHovering)
239 {
241 return;
242 }
244 if (moreInfoButton != null && moreInfoButton.IsMouseHovering)
245 {
247 }
248 }
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 DrawTimeText(SpriteBatch spriteBatch, Vector2 drawPos)
CalculatedStyle GetInnerDimensions()
Definition UIElement.cs:455

References Terraria.ModLoader.UI.ModBrowser.UIModDownloadItem._dividerTexture, Terraria.ModLoader.UI.ModBrowser.UIModDownloadItem._moreInfoButton, Terraria.ModLoader.UI.ModBrowser.UIModDownloadItem._updateButton, Terraria.ModLoader.UI.ModBrowser.UIModDownloadItem._updateWithDepsButton, Terraria.ModLoader.UI.ModBrowser.UIModDownloadItem.DrawTimeText(), Terraria.UI.UIElement.GetInnerDimensions(), Terraria.Localization.Language.GetTextValue(), Terraria.ModLoader.UI.ModBrowser.UIModDownloadItem.HasModIcon, Terraria.ModLoader.UI.ModBrowser.UIModDownloadItem.ModIconAdjust, Terraria.ModLoader.UI.ModBrowser.UIModDownloadItem.RequestModIcon(), Terraria.ModLoader.UI.ModBrowser.UIModDownloadItem.tooltip, Terraria.ModLoader.UI.ModBrowser.UIModDownloadItem.UpdateWithDepsText, and Terraria.ModLoader.UI.ModBrowser.UIModDownloadItem.ViewModInfoText.

+ Here is the call graph for this function: