From dae105d157b9c4e9ad4f1b1d5c9ef397be3e44d7 Mon Sep 17 00:00:00 2001 From: MidoriKami <9083275+MidoriKami@users.noreply.github.com> Date: Wed, 20 Sep 2023 13:19:06 -0700 Subject: [PATCH] Account for UiScale when moving nodes --- Dalamud/Game/Gui/Dtr/DtrBar.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dalamud/Game/Gui/Dtr/DtrBar.cs b/Dalamud/Game/Gui/Dtr/DtrBar.cs index 8882088ef..880bc0625 100644 --- a/Dalamud/Game/Gui/Dtr/DtrBar.cs +++ b/Dalamud/Game/Gui/Dtr/DtrBar.cs @@ -235,7 +235,7 @@ public sealed unsafe class DtrBar : IDisposable, IServiceType, IDtrBar else { // If we want the node hidden, shift it up, to prevent collision conflicts - data.TextNode->AtkResNode.SetY(-collisionNode->Height); + data.TextNode->AtkResNode.SetY(-collisionNode->Height * dtr->RootNode->ScaleX); } } } @@ -264,7 +264,7 @@ public sealed unsafe class DtrBar : IDisposable, IServiceType, IDtrBar if (!this.configuration.DtrSwapDirection) { var targetSize = (ushort)this.CalculateTotalSize(); - var sizeDelta = targetSize - addon->RootNode->Width; + var sizeDelta = MathF.Round((targetSize - addon->RootNode->Width) * addon->RootNode->ScaleX); if (addon->RootNode->Width != targetSize) {