Skip to content

Commit

Permalink
Minor UI tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
hunter2actual committed Apr 25, 2024
1 parent 5e7f792 commit c85d8da
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 9 deletions.
8 changes: 4 additions & 4 deletions DalamudMinesweeper.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand All @@ -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"
}
]
18 changes: 17 additions & 1 deletion DalamudMinesweeper/Components/Footer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion DalamudMinesweeper/DalamudMinesweeper.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<Import Project="Dalamud.Plugin.Bootstrap.targets" />

<PropertyGroup>
<Version>1.1.0.0</Version>
<Version>1.1.0.1</Version>
<Description>A logic puzzle featuring hidden mines.</Description>
<PackageProjectUrl>https://github.com/hunter2actual/DalamudMinesweeper</PackageProjectUrl>
<PackageLicenseExpression>AGPL-3.0-or-later</PackageLicenseExpression>
Expand Down
7 changes: 4 additions & 3 deletions DalamudMinesweeper/Windows/ConfigWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit c85d8da

Please sign in to comment.