private void DrawHoverText(SpriteBatch b) { if (!string.IsNullOrEmpty(HoverText)) { IClickableMenu.drawToolTip(b, HoveredItem?.getDescription() ?? HoverText, HoverText, HoveredItem); } }
private void DrawHoverText(SpriteBatch b) { if (!string.IsNullOrEmpty(HoverText)) { if (HoveredItem != null) { IClickableMenu.drawToolTip(b, HoveredItem.getDescription(), HoverText, HoveredItem); } else { IClickableMenu.drawHoverText(Game1.spriteBatch, HoverText, Game1.dialogueFont); } } }