Thread Tools Display Modes
Prev Previous Post   Next Post Next
10-17-12, 08:38 PM   #1
bacardee
A Defias Bandit
Join Date: Nov 2010
Posts: 2
Hide player frame out of combat

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))
  Reply With Quote
 

WoWInterface » Featured Projects » oUF (Otravi Unit Frames) » Hide player frame out of combat


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off