Add user configurable tooltip offset

This commit is contained in:
Infi
2024-04-07 19:01:41 +02:00
parent a3bf0cabf5
commit d9114aeb0e
6 changed files with 126 additions and 88 deletions
+1 -1
View File
@@ -250,7 +250,7 @@ public sealed class PayloadHandler {
var x = isLeft ? window.X : LogWindow.LastWindowPos.X - atkSize.X;
var y = Math.Clamp(window.Y - atkSize.Y, 0, float.MaxValue);
y -= isTop ? 0 : 10; // small offset to prevent cut-off on the bottom
y -= isTop ? 0 : LogWindow.Plugin.Config.TooltipOffset; // offset to prevent cut-off on the bottom
atk->SetPosition((short) x, (short) y);
}