mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
- The widget will now only check the `FFXIVClientStructs` assembly for addon type information. - Updated ImRaii usage - Clarified suppression in `NodeTree.Text.cs` - Restored the original Addon Inspector in the Data window, so that both versions can coexist for the time being
35 lines
782 B
C#
35 lines
782 B
C#
namespace Dalamud.Interface.Internal.Windows.Data.Widgets;
|
|
|
|
/// <summary>
|
|
/// Widget for displaying addon inspector.
|
|
/// </summary>
|
|
internal class AddonInspectorWidget : IDataWindowWidget
|
|
{
|
|
private UiDebug? addonInspector;
|
|
|
|
/// <inheritdoc/>
|
|
public string[]? CommandShortcuts { get; init; } = { "ai", "addoninspector" };
|
|
|
|
/// <inheritdoc/>
|
|
public string DisplayName { get; init; } = "Addon Inspector";
|
|
|
|
/// <inheritdoc/>
|
|
public bool Ready { get; set; }
|
|
|
|
/// <inheritdoc/>
|
|
public void Load()
|
|
{
|
|
this.addonInspector = new UiDebug();
|
|
|
|
if (this.addonInspector is not null)
|
|
{
|
|
this.Ready = true;
|
|
}
|
|
}
|
|
|
|
/// <inheritdoc/>
|
|
public void Draw()
|
|
{
|
|
this.addonInspector?.Draw();
|
|
}
|
|
}
|