feat: add config debug to DataWindow

This commit is contained in:
goat 2021-09-29 02:36:38 +02:00
parent a432218127
commit c9d998dfce
No known key found for this signature in database
GPG key ID: F18F057873895461

View file

@ -3,6 +3,7 @@ using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Numerics; using System.Numerics;
using Dalamud.Configuration.Internal;
using Dalamud.Data; using Dalamud.Data;
using Dalamud.Game; using Dalamud.Game;
using Dalamud.Game.ClientState; using Dalamud.Game.ClientState;
@ -135,6 +136,7 @@ namespace Dalamud.Interface.Internal.Windows
Tex, Tex,
KeyState, KeyState,
Gamepad, Gamepad,
Configuration,
} }
/// <inheritdoc/> /// <inheritdoc/>
@ -298,6 +300,10 @@ namespace Dalamud.Interface.Internal.Windows
case DataKind.Gamepad: case DataKind.Gamepad:
this.DrawGamepad(); this.DrawGamepad();
break; break;
case DataKind.Configuration:
this.DrawConfiguration();
break;
} }
} }
else else
@ -1244,6 +1250,12 @@ namespace Dalamud.Interface.Internal.Windows
$"RightStickDown {gamepadState.RightStickDown:0.00} "); $"RightStickDown {gamepadState.RightStickDown:0.00} ");
} }
private void DrawConfiguration()
{
var config = Service<DalamudConfiguration>.Get();
Util.ShowObject(config);
}
private void Load() private void Load()
{ {
var dataManager = Service<DataManager>.Get(); var dataManager = Service<DataManager>.Get();