void PostEventHUDDrawTick(object sender, EventArgs e) { if (HoverChestValue != null && HoverChestValue != "" && Game1.activeClickableMenu == null) { SpeederIClickableMenu.drawSimpleTooltip(Game1.spriteBatch, HoverChestValue, Game1.smallFont); } }
void PostEventGUIDrawTick(object sender, EventArgs e) { if (labelButton != null) { Utility.drawWithShadow(Game1.spriteBatch, labelButton.texture, new Vector2((float)labelButton.bounds.X + (float)(labelButton.sourceRect.Width / 2) * labelButton.baseScale, (float)labelButton.bounds.Y + (float)(labelButton.sourceRect.Height / 2) * labelButton.baseScale), labelButton.sourceRect, Color.White, 0f, new Vector2((float)(labelButton.sourceRect.Width / 2), (float)(labelButton.sourceRect.Height / 2)), labelButton.scale, false, 0, -1, -1, 0.35f); chestNameBox.Draw(Game1.spriteBatch, false); if (hovered) { SpeederIClickableMenu.drawSimpleTooltip(Game1.spriteBatch, labelButton.hoverText, Game1.smallFont); } Game1.spriteBatch.Draw(Game1.mouseCursors, new Vector2(Game1.getOldMouseX(), Game1.getOldMouseY()), new Microsoft.Xna.Framework.Rectangle?(Game1.getSourceRectForStandardTileSheet(Game1.mouseCursors, 0, 16, 16)), Color.White, 0f, Vector2.Zero, 4f + Game1.dialogueButtonScale / 150f, SpriteEffects.None, 0); } }