public override void draw(SpriteBatch spriteBatch) { if (_debounceTimer > 0) { _debounceTimer--; } Game1.drawDialogueBox(xPositionOnScreen, yPositionOnScreen, width, height, false, true); int textPadding = 2 * Game1.pixelZoom; Game1.spriteBatch.DrawString(Game1.dialogueFont, _message.WrapText(Game1.dialogueFont, width - spaceToClearSideBorder * 2), new Vector2(xPositionOnScreen + spaceToClearSideBorder * 2 + textPadding, yPositionOnScreen + spaceToClearTopBorder + textPadding), Game1.textColor); upperRightCloseButton?.draw(spriteBatch); if (!_buttonsInstantiated) { InstantiateButtons(); } _okayButton.Draw(spriteBatch); _cancelButton.Draw(spriteBatch); _okayButton.DrawHoverText(spriteBatch); _cancelButton.DrawHoverText(spriteBatch); Mouse.DrawCursor(spriteBatch); }
private void DrawButtonHoverText(SpriteBatch spriteBatch) { foreach (var button in _professionButtons) { button.DrawHoverText(spriteBatch); } _prestigeButton.DrawHoverText(spriteBatch); _settingsButton.DrawHoverText(spriteBatch); }
public override void draw(SpriteBatch spriteBatch) { if (_debounceTimer > 0) { _debounceTimer--; } Game1.drawDialogueBox(xPositionOnScreen, yPositionOnScreen, width, height, false, true); upperRightCloseButton?.draw(spriteBatch); DrawDecorations(spriteBatch); DrawMessage(spriteBatch); if (!_buttonInstantiated) { InstantiateButtons(); } _okayButton.Draw(spriteBatch); _okayButton.DrawHoverText(spriteBatch); Mouse.DrawCursor(spriteBatch); }