From 7590907b203583f187d934984a9050bf9262adef Mon Sep 17 00:00:00 2001 From: dvaer Date: Mon, 19 Aug 2024 01:10:57 +0300 Subject: [PATCH 1/2] base --- MonogameLibrary/UI/Elements/HoverWindow.cs | 91 ++++++++++++++ ...mDisplayButton.cs => ItemDisplayButton.cs} | 50 +++++++- .../UI/Elements/ItemDisplayLabel.cs | 1 + ZoFo/Content/Content.mgcb | 7 ++ ZoFo/Content/Fonts/Font4.spritefont | 64 ++++++++++ ZoFo/Content/Fonts/Troubleside-lgjxX.ttf | Bin 0 -> 370264 bytes ZoFo/GameCore/GUI/BaseGUI.cs | 118 ++++++++++++------ ZoFo/GameCore/GameManagers/AppManager.cs | 1 + .../GameManagers/ItemManager/ItemInfo.cs | 6 +- .../GameManagers/ItemManager/ItemManager.cs | 10 +- .../GameManagers/ItemManager/PlayerData.cs | 6 +- 11 files changed, 306 insertions(+), 48 deletions(-) create mode 100644 MonogameLibrary/UI/Elements/HoverWindow.cs rename MonogameLibrary/UI/Elements/{itemDisplayButton.cs => ItemDisplayButton.cs} (61%) create mode 100644 ZoFo/Content/Fonts/Font4.spritefont create mode 100644 ZoFo/Content/Fonts/Troubleside-lgjxX.ttf diff --git a/MonogameLibrary/UI/Elements/HoverWindow.cs b/MonogameLibrary/UI/Elements/HoverWindow.cs new file mode 100644 index 0000000..d6efed9 --- /dev/null +++ b/MonogameLibrary/UI/Elements/HoverWindow.cs @@ -0,0 +1,91 @@ +using Microsoft.Xna.Framework.Graphics; +using MonogameLibrary.UI.Base; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using MonogameLibrary.UI.Enums; +using System; +using System.Collections.Generic; +using System.Security.Cryptography.X509Certificates; +using System.Text; +using System.Threading; +using Microsoft.Xna.Framework.Content; + +namespace MonogameLibrary.UI.Elements; + +public class HoverWindow : DrawableUIElement +{ + public string tagItem; + public string discriptions; + public Dictionary resourcesNeededToCraft; + private List