mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-13 12:14:16 +01:00
29 lines
636 B
C#
29 lines
636 B
C#
using Dalamud.Configuration.Internal;
|
|
using Dalamud.Utility;
|
|
|
|
namespace Dalamud.Interface.Internal.Windows.Data;
|
|
|
|
/// <summary>
|
|
/// Widget for displaying configuration info.
|
|
/// </summary>
|
|
internal class ConfigurationWidget : IDataWindowWidget
|
|
{
|
|
/// <inheritdoc/>
|
|
public DataKind DataKind { get; init; } = DataKind.Configuration;
|
|
|
|
/// <inheritdoc/>
|
|
public bool Ready { get; set; }
|
|
|
|
/// <inheritdoc/>
|
|
public void Load()
|
|
{
|
|
this.Ready = true;
|
|
}
|
|
|
|
/// <inheritdoc/>
|
|
public void Draw()
|
|
{
|
|
var config = Service<DalamudConfiguration>.Get();
|
|
Util.ShowObject(config);
|
|
}
|
|
}
|