mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-01-03 14:23:40 +01:00
add support for checking client conditions
This commit is contained in:
parent
e6512d5f48
commit
c6d46f9aea
7 changed files with 587 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue