fix: addon outlines in UiDebug

This commit is contained in:
goat 2021-04-05 23:33:50 +02:00
parent 303ddf8d27
commit 5f03654eee

View file

@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Numerics;
@ -512,7 +512,10 @@ namespace Dalamud.Interface {
var size = new Vector2(node->Width, node->Height) * scale;
var nodeVisible = GetNodeVisible(node);
ImGui.GetForegroundDrawList().AddRect(position, position + size, nodeVisible ? 0xFF00FF00 : 0xFF0000FF);
position += ImGuiHelpers.MainViewport.Pos;
ImGui.GetForegroundDrawList(ImGuiHelpers.MainViewport).AddRect(position, position + size, nodeVisible ? 0xFF00FF00 : 0xFF0000FF);
}
private static void ClickToCopyText(string text, string textCopy = null) {