mirror of
https://github.com/OMGeeky/ItemChecklist.git
synced 2025-12-27 06:29:25 +01:00
24 lines
467 B
C#
24 lines
467 B
C#
using Microsoft.Xna.Framework.Graphics;
|
|
|
|
namespace ItemChecklist.UIElements
|
|
{
|
|
internal class UIHoverImageButton : UIImageButton
|
|
{
|
|
internal string hoverText;
|
|
|
|
public UIHoverImageButton(Texture2D texture, string hoverText) : base(texture)
|
|
{
|
|
this.hoverText = hoverText;
|
|
}
|
|
|
|
protected override void DrawSelf(SpriteBatch spriteBatch)
|
|
{
|
|
base.DrawSelf(spriteBatch);
|
|
if (IsMouseHovering)
|
|
{
|
|
ItemChecklistUI.hoverText = hoverText;
|
|
}
|
|
}
|
|
}
|
|
}
|