feat(DTR): configurable spacing

This commit is contained in:
goaaats 2022-02-02 21:36:56 +01:00
parent e90ef9da9e
commit 976c26e544
No known key found for this signature in database
GPG key ID: 49E2AA8C6A76498B
3 changed files with 18 additions and 7 deletions

View file

@ -19,11 +19,6 @@ namespace Dalamud.Game.Gui.Dtr
[InterfaceVersion("1.0")]
public sealed unsafe class DtrBar : IDisposable
{
/// <summary>
/// The amount of padding between Server Info UI elements.
/// </summary>
private const int ElementPadding = 30;
private List<DtrBarEntry> entries = new();
private uint runningNodeIds = 1000;
@ -174,7 +169,7 @@ namespace Dalamud.Game.Gui.Dtr
if (!isHide)
{
runningXPos -= data.TextNode->AtkResNode.Width + ElementPadding;
runningXPos -= data.TextNode->AtkResNode.Width + configuration.DtrSpacing;
data.TextNode->AtkResNode.SetPositionFloat(runningXPos, 2);
}