Skip to content

Commit

Permalink
OpenMainUi validation fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hunter2actual committed Apr 3, 2024
1 parent df9d32b commit 6c4b722
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 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": "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": [
Expand All @@ -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"
}
]
2 changes: 1 addition & 1 deletion DalamudMinesweeper/DalamudMinesweeper.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<PropertyGroup>
<Authors></Authors>
<Company></Company>
<Version>0.0.0.10</Version>
<Version>0.0.0.11</Version>
<Description>A logic puzzle featuring hidden mines.</Description>
<Copyright></Copyright>
<PackageProjectUrl>https://github.com/hunter2actual/DalamudMinesweeper</PackageProjectUrl>
Expand Down
6 changes: 6 additions & 0 deletions DalamudMinesweeper/Plugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ public Plugin(
});

PluginInterface.UiBuilder.Draw += DrawUI;
PluginInterface.UiBuilder.OpenMainUi += DrawMainUI;
PluginInterface.UiBuilder.OpenConfigUi += DrawConfigUI;
}

Expand All @@ -64,6 +65,11 @@ private void DrawUI()
WindowSystem.Draw();
}

private void DrawMainUI()
{
_mainWindow.IsOpen = true;
}

public void DrawConfigUI()
{
_configWindow.IsOpen = true;
Expand Down

0 comments on commit 6c4b722

Please sign in to comment.