Sometimes source Flags will return a string (usually when it's a negative number, this tends to happen when I'm coming out of stealth) which will really screw you up if you're using bit.band (which only takes numbers).
Maybe I should clarify. I don't want the debuffs on the player frame larger. I want the debuffs on the target frame that I apply to be larger than the debuffs I didn't apply.
Hey all, I'm trying to write a function to make MY debuffs bigger than others (think X-Perl), this is what I have so far:
local auraSize = function(self, icons, unit, icon, index, offset, filter, isDebuff)
if ( isDebuff ) then
local _, _, _, _, _, _, timeLeft = UnitDebuff(unit, index, filter)
if ( timeLeft ) then
icons.size = 36
else
icons.size = 22
end
else
icons.size = 22
end
end
I'm unable to test this because I don't actually have WoW installed on the computer I'm using, but I'm still fairly sure that it won't work (it's meant to be used in the PostUpdateAuraIcon function).
If anyone could try this out and tell me what happens, or can give me pointers on how to do what I'm trying to do I'd really appreciate it.
local auraIcon = function(self, button, icons, index, isDebuff)
button.icon:SetTexCoord(.07, .93, .07, .93)
local tex = button:CreateTexture(nil, "OVERLAY")
tex:SetTexture(buffborder)
tex:SetAllPoints(button)
if isDebuff then
button.overlay:Hide()
tex:SetVertexColor(1,0,0)
else
tex:SetVertexColor(0,1,0)
end
end
try
Nope. =/ Also the tooltip problem is happening again too.
But this is the problem I have now with the borders. They start out green when I log in or ReloadUI, but once oUF creates the first debuff (with a red border), then all the buff borders become red as well.
local auraIcon = function(self, button, icons, index, isDebuff)
button.icon:SetTexCoord(.07, .93, .07, .93)
local tex = button:CreateTexture(nil, "OVERLAY")
tex:SetTexture(buffborder)
tex:SetAllPoints(button)
tex:SetVertexColor(0,1,0)
if isDebuff then
button.overlay:Hide()
tex:SetVertexColor(1,0,0)
end
end
I'm having trouble with my auras and my party frames.
Problem with my auras, is that with the buffs, after the first 2 buffs, the PostCreateAuraIcon doesn't seem to be skinning them. I have it set up to but a green border around buffs, and a debuff-type colored border around debuffs. The green border works fine for the first 2 buffs, but every buff after that has a white border (with a different texture than mine), and when I mouseover it it uses the same tooltip as the FIRST buff.
Sorry if that's confusing. =/
My 2nd problem, is that my party frames aren't showing up at all. I never really worried about it before, but now that I'm getting into Outlands and am grouping up more, I'm thinking I should get this fixed.
Here is my code. I highlighted the aura and party stuff to make it easier to find. http://ace.pastey.net/87988
I don't know tbh. I had that code commented out because it hadn't worked for me. I got rid of the filters line, commented out the buffs & debuffs code and it worked. /shrug
Ok auras.filter doesn't do anything for Auras only buffs/debuffs. Other than that either I'm being completely dense or I can't see any reason why it shouldn't work. Unless the self you have isn't the oUF spawned frame.
Maybe take a look at Auras["growth-x"], Auras["growth-x"] or Auras.initialAnchor
Would you mind putting the whole thing on pastey?
Already talked with Haste on this one, I got it working now. Thanks though.
I'm having some trouble using the Auras. I want buffs and debuffs to be in the same frame, so I set it up like Haste has his in oUF Lily (obviously tweaked to how I wanted it) but nothing happened. No buffs/debuffs and no errors.
Where do you learn to make these codes and where to put em? Im trying and trying and gets more confused by the second :/ i really wanna learn how to do it but its so confusing ^^
Like Slakah said, learn the Tutorials from WoWWiki and other sites, and then try and make your own addons. They don't have to do much, just to get the hang of it. The absolute best way to learn is by doing it yourself.
0
0
Maybe I should clarify. I don't want the debuffs on the player frame larger. I want the debuffs on the target frame that I apply to be larger than the debuffs I didn't apply.
0
I'm unable to test this because I don't actually have WoW installed on the computer I'm using, but I'm still fairly sure that it won't work (it's meant to be used in the PostUpdateAuraIcon function).
If anyone could try this out and tell me what happens, or can give me pointers on how to do what I'm trying to do I'd really appreciate it.
0
It works so far, I'm gonna see how it holds up.
0
Well that answers my question then. I've been using this with .Auras
0
Nope. =/ Also the tooltip problem is happening again too.
I'm going to reinstall oUF just in case.
0
Party frames are working now, thanks.
But this is the problem I have now with the borders. They start out green when I log in or ReloadUI, but once oUF creates the first debuff (with a red border), then all the buff borders become red as well.
0
Turns the border on my buffs red too. =/
This is for PostCreateAuraIcon right?
No dice.
0
Problem with my auras, is that with the buffs, after the first 2 buffs, the PostCreateAuraIcon doesn't seem to be skinning them. I have it set up to but a green border around buffs, and a debuff-type colored border around debuffs. The green border works fine for the first 2 buffs, but every buff after that has a white border (with a different texture than mine), and when I mouseover it it uses the same tooltip as the FIRST buff.
Sorry if that's confusing. =/
My 2nd problem, is that my party frames aren't showing up at all. I never really worried about it before, but now that I'm getting into Outlands and am grouping up more, I'm thinking I should get this fixed.
Here is my code. I highlighted the aura and party stuff to make it easier to find.
http://ace.pastey.net/87988
Thank you in advance.
0
I don't know tbh. I had that code commented out because it hadn't worked for me. I got rid of the filters line, commented out the buffs & debuffs code and it worked. /shrug
0
0
Already talked with Haste on this one, I got it working now. Thanks though.
0
0
Anyone got other examples I could look at?
0
Like Slakah said, learn the Tutorials from WoWWiki and other sites, and then try and make your own addons. They don't have to do much, just to get the hang of it. The absolute best way to learn is by doing it yourself.
Other addons that might be helpful in learning are evl's and Lolzen's:
http://evladdons.googlecode.com/
http://fizz.googlecode.com/