add support for checking client conditions

This commit is contained in:
NotAdam 2020-05-26 23:13:39 +10:00
parent e6512d5f48
commit c6d46f9aea
7 changed files with 587 additions and 3 deletions

View file

@ -145,6 +145,8 @@ namespace Dalamud {
IsReady = true;
});
this.conditionDebugWindow = new ConditionDebugWindow( this );
}
public void Start() {
@ -209,6 +211,7 @@ namespace Dalamud {
private DalamudCreditsWindow creditsWindow;
private DalamudSettingsWindow settingsWindow;
private PluginInstallerWindow pluginWindow;
private ConditionDebugWindow conditionDebugWindow;
private void BuildDalamudUi()
{
@ -268,6 +271,16 @@ namespace Dalamud {
ImGui.EndMenu();
}
if( ImGui.BeginMenu( "Game" ) )
{
if( ImGui.MenuItem( "Condition Debug" ) )
{
this.conditionDebugWindow.Enabled = !this.conditionDebugWindow.Enabled;
}
ImGui.EndMenu();
}
if (ImGui.BeginMenu("Plugins"))
{
if (ImGui.MenuItem("Open Plugin installer"))
@ -372,6 +385,11 @@ namespace Dalamud {
if (this.isImguiDrawDemoWindow)
ImGui.ShowDemoWindow();
if( this.conditionDebugWindow.Enabled )
{
this.conditionDebugWindow.Draw();
}
}
#endregion