mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 10:17:22 +01:00
feat: add OpenMainUi event on UiBuilder, respective button in PI
This commit is contained in:
parent
c027aacde2
commit
3272dbb0e2
3 changed files with 69 additions and 4 deletions
|
|
@ -7,6 +7,7 @@ using Dalamud.Interface.Windowing;
|
|||
using Dalamud.Logging;
|
||||
using Dalamud.Plugin;
|
||||
using Dalamud.Utility;
|
||||
using Serilog;
|
||||
|
||||
namespace Dalamud.CorePlugin
|
||||
{
|
||||
|
|
@ -66,6 +67,7 @@ namespace Dalamud.CorePlugin
|
|||
|
||||
this.Interface.UiBuilder.Draw += this.OnDraw;
|
||||
this.Interface.UiBuilder.OpenConfigUi += this.OnOpenConfigUi;
|
||||
this.Interface.UiBuilder.OpenMainUi += this.OnOpenMainUi;
|
||||
|
||||
Service<CommandManager>.Get().AddHandler("/coreplug", new(this.OnCommand) { HelpMessage = $"Access the {this.Name} plugin." });
|
||||
|
||||
|
|
@ -143,6 +145,11 @@ namespace Dalamud.CorePlugin
|
|||
// this.window.IsOpen = true;
|
||||
}
|
||||
|
||||
private void OnOpenMainUi()
|
||||
{
|
||||
Log.Verbose("Opened main UI");
|
||||
}
|
||||
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue