Hey guys, long time
I'm (still) loving LitePanels, but I have one issue - oUF.
The problem is that when I parent a frame to the player and target (in this case, I use oUF_Svelte, so its oUF_SveltePlayer/Target), it produces 20+ errors per second (OnUpdate I think).
I've got a workaround, though it's not ideal:
For player, I just position the panels at the same place as the Playerframe, because it's stationary.
But with the target, it's much more difficult:
Code:
{ name = "target1",
height = 30,
width = 210,
bg_alpha = 0,
y_off = 210,
x_off = 200,
anchor_to = "CENTER",
anchor_from = "BOTTOM",
border = "Interface\\AddOns\\Ferous Media\\Borders\\fer13.tga",
border_size = 5,
border_color = "0 0 0",
border_alpha = 1,
inset = 5,
OnLoad = function(self)
self:RegisterEvent("UNIT_TARGET")
self:Hide()
end,
OnEvent = function(self, unit)
local exist = UnitExists("target")
if (exist == 1) then
self:Show()
elseif (exist == nil) then
self:Hide()
end
end,
},
This shows and hides the frame, although, it hides/shows with a slight delay, 0.5 sec i think.
Any way you could help?
btw, I posted in the oUF_Svelte comment section, will post in oUF Core too