Hi, I'm simply trying to hide the player frame out of combat. I've tried creating events that trigger
oUF_Caellian_Player:Show and oUF_Caellian_Player:Hide, but I'm not really that good with LUA.
Also typing /script oUF_Caellian_Player:Hide in game only briefly hides it, it disappears for half a second then comes right back. If anyone else is using Caellian's oUF and knows how to hide the player frame out of combat I would greatly appreciate it. I'm trying to keep everything minimal.
Here's the code i was trying to add:
Code:
local inCombat = UnitAffectingCombat('player')
if(inCombat) then
oUF_Caellian_Player:Show()
else
oUF_Caellian_Player:Hide()
end
And here's where the playerframe is spawned (I think)
Code:
self:SetActiveStyle("Caellian")
self:Spawn("player", "oUF_Caellian_Player"):SetPoint("BOTTOM", UIParent, caelLib.scale(oUF_Caellian.config.coords.playerX), caelLib.scale(oUF_Caellian.config.coords.playerY))
self:Spawn("target", "oUF_Caellian_Target"):SetPoint("BOTTOM", UIParent, caelLib.scale(oUF_Caellian.config.coords.targetX), caelLib.scale(oUF_Caellian.config.coords.targetY))