protected override void DrawChildren(SpriteBatch spriteBatch) { base.DrawChildren(spriteBatch); if (tMLUpdateRequired?.IsMouseHovering == true) { UICommon.DrawHoverStringInBounds(spriteBatch, Language.GetTextValue("tModLoader.MBClickToUpdate"), GetInnerDimensions().ToRectangle()); } }
public override void Draw(SpriteBatch spriteBatch) { tooltip = null; base.Draw(spriteBatch); if (!string.IsNullOrEmpty(tooltip)) { UICommon.DrawHoverStringInBounds(spriteBatch, tooltip, GetDimensions().ToRectangle()); } }
public override void Draw(SpriteBatch spriteBatch) { tooltip = null; base.Draw(spriteBatch); if (!string.IsNullOrEmpty(tooltip)) { UICommon.DrawHoverStringInBounds(spriteBatch, tooltip, GetDimensions().ToRectangle()); } UILinkPointNavigator.Shortcuts.BackButtonCommand = 100; UILinkPointNavigator.Shortcuts.BackButtonGoto = Interface.modsMenuID; }
public override void Draw(SpriteBatch spriteBatch) { tooltip = null; base.Draw(spriteBatch); if (!string.IsNullOrEmpty(tooltip)) { var bounds = GetOuterDimensions().ToRectangle(); bounds.Height += 16; UICommon.DrawHoverStringInBounds(spriteBatch, tooltip, bounds); } }
protected override void DrawChildren(SpriteBatch spriteBatch) { base.DrawChildren(spriteBatch); // show authors on mod title hover, after everything else // main.hoverItemName isn't drawn in UI if (modName.IsMouseHovering) { string text = Language.GetTextValue("tModLoader.ModsByline", author); UICommon.DrawHoverStringInBounds(spriteBatch, text); } }