diff --git a/DalamudMinesweeper.json b/DalamudMinesweeper.json index 4bccc50..a3b0bd7 100644 --- a/DalamudMinesweeper.json +++ b/DalamudMinesweeper.json @@ -3,7 +3,7 @@ "Author": "hunter2_", "Name": "Minesweeper", "InternalName": "DalamudMinesweeper", - "AssemblyVersion": "0.0.0.10", + "AssemblyVersion": "0.0.0.11", "Description": "Logic puzzle in which you find and flag hidden mines. \nLeft click to uncover a square, right click to place a flag. \nClick a number that has the right amount of adjacent flags to reveal adjacent tiles. \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/0.0.0.10/latest.zip", - "DownloadLinkUpdate": "https://github.com/hunter2actual/DalamudMinesweeper/releases/download/0.0.0.10/latest.zip", + "DownloadLinkInstall": "https://github.com/hunter2actual/DalamudMinesweeper/releases/download/0.0.0.11/latest.zip", + "DownloadLinkUpdate": "https://github.com/hunter2actual/DalamudMinesweeper/releases/download/0.0.0.11/latest.zip", "IconUrl": "https://raw.githubusercontent.com/hunter2actual/DalamudMinesweeper/master/images/icon.png", - "Changelog": "Draw background and border" + "Changelog": "Draw background and border, add OpenMainUi button from Dalamud" } ] \ No newline at end of file diff --git a/DalamudMinesweeper/DalamudMinesweeper.csproj b/DalamudMinesweeper/DalamudMinesweeper.csproj index d241ad9..0cdfc1a 100644 --- a/DalamudMinesweeper/DalamudMinesweeper.csproj +++ b/DalamudMinesweeper/DalamudMinesweeper.csproj @@ -5,7 +5,7 @@ - 0.0.0.10 + 0.0.0.11 A logic puzzle featuring hidden mines. https://github.com/hunter2actual/DalamudMinesweeper diff --git a/DalamudMinesweeper/Plugin.cs b/DalamudMinesweeper/Plugin.cs index 03ec070..260d585 100644 --- a/DalamudMinesweeper/Plugin.cs +++ b/DalamudMinesweeper/Plugin.cs @@ -40,6 +40,7 @@ public Plugin( }); PluginInterface.UiBuilder.Draw += DrawUI; + PluginInterface.UiBuilder.OpenMainUi += DrawMainUI; PluginInterface.UiBuilder.OpenConfigUi += DrawConfigUI; } @@ -64,6 +65,11 @@ private void DrawUI() WindowSystem.Draw(); } + private void DrawMainUI() + { + _mainWindow.IsOpen = true; + } + public void DrawConfigUI() { _configWindow.IsOpen = true;