From c85d8daf2d3cfd9eaa24da1a786c980264c2edd2 Mon Sep 17 00:00:00 2001 From: hunter2actual Date: Thu, 25 Apr 2024 23:58:35 +0100 Subject: [PATCH] Minor UI tweaks --- DalamudMinesweeper.json | 8 ++++---- DalamudMinesweeper/Components/Footer.cs | 18 +++++++++++++++++- DalamudMinesweeper/DalamudMinesweeper.csproj | 2 +- DalamudMinesweeper/Windows/ConfigWindow.cs | 7 ++++--- 4 files changed, 26 insertions(+), 9 deletions(-) diff --git a/DalamudMinesweeper.json b/DalamudMinesweeper.json index e8c72d7..d10f897 100644 --- a/DalamudMinesweeper.json +++ b/DalamudMinesweeper.json @@ -3,7 +3,7 @@ "Author": "hunter2_", "Name": "Minesweeper", "InternalName": "DalamudMinesweeper", - "AssemblyVersion": "1.1.0.0", + "AssemblyVersion": "1.1.0.1", "Description": "Logic puzzle in which you find and flag hidden mines.\n\nLeft click to uncover a square, right click to place a flag.\nThe game ends when all mines are flagged and all safe squares have been uncovered.\nClick the smiley face to start a new game.", "ApplicableVersion": "any", "Tags": [ @@ -18,9 +18,9 @@ "LoadPriority": 0, "Punchline": "Classic puzzle game.", "AcceptsFeedback": true, - "DownloadLinkInstall": "https://github.com/hunter2actual/DalamudMinesweeper/releases/download/1.1.0.0/latest.zip", - "DownloadLinkUpdate": "https://github.com/hunter2actual/DalamudMinesweeper/releases/download/1.1.0.0/latest.zip", + "DownloadLinkInstall": "https://github.com/hunter2actual/DalamudMinesweeper/releases/download/1.1.0.1/latest.zip", + "DownloadLinkUpdate": "https://github.com/hunter2actual/DalamudMinesweeper/releases/download/1.1.0.1/latest.zip", "IconUrl": "https://raw.githubusercontent.com/hunter2actual/DalamudMinesweeper/master/images/icon.png", - "Changelog": "Configurable shortcuts" + "Changelog": "Minor UI tweaks" } ] \ No newline at end of file diff --git a/DalamudMinesweeper/Components/Footer.cs b/DalamudMinesweeper/Components/Footer.cs index b700e12..f49861a 100644 --- a/DalamudMinesweeper/Components/Footer.cs +++ b/DalamudMinesweeper/Components/Footer.cs @@ -33,21 +33,37 @@ public void Draw(Vector2 start) { _drawScoresAction(); }; + if (ImGui.IsItemHovered()) + { + ImGui.SetTooltip("View high scores"); + } ImGui.SameLine(); if (ImGuiComponents.IconButton(FontAwesomeIcon.Cog)) { _drawConfigAction(); - } + } + if (ImGui.IsItemHovered()) + { + ImGui.SetTooltip("Settings"); + } ImGui.SameLine(); if (ImGuiComponents.IconButton(FontAwesomeIcon.Plus) && _configuration.Zoom < 5) { _configuration.Zoom++; } + if (ImGui.IsItemHovered()) + { + ImGui.SetTooltip("Zoom in"); + } ImGui.SameLine(); if (ImGuiComponents.IconButton(FontAwesomeIcon.Minus) && _configuration.Zoom > 1) { _configuration.Zoom--; } + if (ImGui.IsItemHovered()) + { + ImGui.SetTooltip("Zoom out"); + } ImGui.SameLine(); if (!Game.NoGuessValid) diff --git a/DalamudMinesweeper/DalamudMinesweeper.csproj b/DalamudMinesweeper/DalamudMinesweeper.csproj index 7000704..24a8d0e 100644 --- a/DalamudMinesweeper/DalamudMinesweeper.csproj +++ b/DalamudMinesweeper/DalamudMinesweeper.csproj @@ -3,7 +3,7 @@ - 1.1.0.0 + 1.1.0.1 A logic puzzle featuring hidden mines. https://github.com/hunter2actual/DalamudMinesweeper AGPL-3.0-or-later diff --git a/DalamudMinesweeper/Windows/ConfigWindow.cs b/DalamudMinesweeper/Windows/ConfigWindow.cs index 38358d1..035eaa9 100644 --- a/DalamudMinesweeper/Windows/ConfigWindow.cs +++ b/DalamudMinesweeper/Windows/ConfigWindow.cs @@ -13,10 +13,11 @@ public class ConfigWindow : Window, IDisposable public ConfigWindow(Plugin plugin) : base( "Minesweeper Settings", ImGuiWindowFlags.NoScrollbar | - ImGuiWindowFlags.NoScrollWithMouse) + ImGuiWindowFlags.NoScrollWithMouse | + ImGuiWindowFlags.NoResize) { - Size = new Vector2(380, 380); - SizeCondition = ImGuiCond.Once; + Size = new Vector2(390, 420); + SizeCondition = ImGuiCond.Always; _configuration = plugin.Configuration; }