Ejemplo n.º 1
0
 protected override void DrawChildren(SpriteBatch spriteBatch)
 {
     base.DrawChildren(spriteBatch);
     if (tMLUpdateRequired?.IsMouseHovering == true)
     {
         UICommon.DrawHoverStringInBounds(spriteBatch, Language.GetTextValue("tModLoader.MBClickToUpdate"), GetInnerDimensions().ToRectangle());
     }
 }
Ejemplo n.º 2
0
 public override void Draw(SpriteBatch spriteBatch)
 {
     tooltip = null;
     base.Draw(spriteBatch);
     if (!string.IsNullOrEmpty(tooltip))
     {
         UICommon.DrawHoverStringInBounds(spriteBatch, tooltip, GetDimensions().ToRectangle());
     }
 }
Ejemplo n.º 3
0
 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;
 }
Ejemplo n.º 4
0
 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);
     }
 }
Ejemplo n.º 5
0
        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);
            }
        }