diff options
| author | Pinapelz <yukais@pinapelz.com> | 2024-09-03 21:31:11 -0700 |
|---|---|---|
| committer | Pinapelz <yukais@pinapelz.com> | 2024-09-03 21:35:52 -0700 |
| commit | 14a3bd895f297bbf503cf3734b65b4957b0b4ebe (patch) | |
| tree | a6186c85382d736c6ed137dce4c851099b54732e /Malmstone/Windows/MainWindow.cs | |
| parent | effd23c9e254792d636ac43b17cb712a3fd49b1b (diff) | |
add option to automatically open malmstone calculator when viewing series malmstone
Diffstat (limited to 'Malmstone/Windows/MainWindow.cs')
| -rw-r--r-- | Malmstone/Windows/MainWindow.cs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Malmstone/Windows/MainWindow.cs b/Malmstone/Windows/MainWindow.cs index 3cd53a4..4d4ca4c 100644 --- a/Malmstone/Windows/MainWindow.cs +++ b/Malmstone/Windows/MainWindow.cs @@ -1,5 +1,7 @@ using System; using System.Numerics; +using Dalamud.Game.Addon.Lifecycle.AddonArgTypes; +using Dalamud.Game.Addon.Lifecycle; using Dalamud.Interface.Windowing; using ImGuiNET; using Malmstone.Services; @@ -124,6 +126,15 @@ namespace Malmstone.Windows ImGui.Text("PvP Profile is not loaded."); } } + public void OnOpenPVPRewardWindow(AddonEvent eventType, AddonArgs addonInfo) + { + IsOpen = true; + } + + public void OnClosePVPRewardWindow(AddonEvent eventType, AddonArgs addonInfo) + { + IsOpen = false; + } } } |
