Thread Tools Display Modes
Prev Previous Post   Next Post Next
06-16-10, 04:42 AM   #1
mankeluvsit
An Onyxian Warder
 
mankeluvsit's Avatar
Join Date: Sep 2008
Posts: 354
Lightbulb hiding own buffs if targeting yourself

okay, i dont know if this is possible, to what i think, if i just if unit=="player" while targeting myself, it would deleted that "targets" buffs. but its only hiding my actual buffs. i know its not necessary to do this, but i really want to make it this way.

so how do i go along if i target myself, it wont show my buffs.
-- TARGET

if unit=="target" then
-- TARGET DEBUFF

self.Debuffs = CreateFrame("Frame", nil, self)
self.Debuffs.size = 22
self.Debuffs:SetHeight(self.Debuffs.size)
self.Debuffs:SetWidth(self.Debuffs.size * 11)
self.Debuffs:SetPoint("TOPLEFT", self, "TOPLEFT", -1,28)
self.Debuffs.initialAnchor = "TOPLEFT"
self.Debuffs["growth-y"] = "UP"
self.Debuffs["growth-x"] = "RIGHT"
self.Debuffs.cols = 1
self.Debuffs.num = 20
self.Debuffs.spacing = 1

-- TARGET BUFF


self.Auras = CreateFrame("Frame", nil, self)
self.Auras.size = 22
self.Auras:SetHeight(self.Auras.size)
self.Auras:SetWidth(self.Auras.size * 11)
self.Auras:SetPoint("TOPLEFT", self.Debuffs, "TOPLEFT", -1,28)
self.Auras.initialAnchor = "TOPLEFT"
self.Auras["growth-y"] = "UP"
self.Auras["growth-x"] = "RIGHT"
self.Auras.cols = 1
self.Auras.num = 20
self.Auras.spacing = 1

else

if unit=="player" then

self.Auras:Hide()

end

end
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » hiding own buffs if targeting yourself


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