- Cleanup
This commit is contained in:
Infi
2025-03-26 21:12:41 +01:00
parent a6b71f50e6
commit c9674b0646
15 changed files with 56 additions and 115 deletions
+3 -3
View File
@@ -277,10 +277,10 @@ public sealed class PayloadHandler
var atkPos = new Vector2(component.ScreenX, component.ScreenY);
var atkSize = new Vector2(component.GetWidth() * component.ScaleX, component.GetHeight() * component.GetScaleY());
var chatRect = MathUtil.Rectangle.FromPosAndSize(LogWindow.LastWindowPos, LogWindow.LastWindowSize);
var addonRect = MathUtil.Rectangle.FromPosAndSize(atkPos, atkSize);
var chatRect = new MathUtil.Rectangle(LogWindow.LastWindowPos, LogWindow.LastWindowSize);
var addonRect = new MathUtil.Rectangle(atkPos, atkSize);
if (!MathUtil.CheckRectOverlap(chatRect, addonRect))
if (!chatRect.HasOverlap(addonRect))
return;
var viewportSize = ImGuiHelpers.MainViewport.Size;