Neon Theme Debuff Icon - Code?

23 views
Skip to first unread message

Misa

unread,
Jul 11, 2011, 8:02:46 PM7/11/11
to Tidy Plates
Hey Dan.

I was curious if you designed the Neon DPS theme or if that was
something someone else made and you bundled with Tidy Plates. Perhaps
regardless of the answer to that question you can help me figure out
something regarding the theme.

I absolutely love how clean and bold you make the debuffs appear on
the nameplates. At first I was confused by the fact you make them
rectangles instead of squares but the effect has grown on me. I'm in
the process of trying to locate some good player and target unit frame
addon replacements that are lightweight (don't need much customization
power) and the thought occurred to me that I really like how you've
chosen to display debuffs and really want to replicate it.

I don't suppose you got the graphical inspiration from a unit frame
addon?? Har har... I'm comfortable with editing lua code even if I'm
not proficient at writing it so I was hoping you could point out what
part of the code creates the wonderful bold rectangle-shaped debuffs
to the nameplates so I can replicate it in another addon.

I greatly appreciate the work you've put into this addon! Its bought
me much better reaction times :-)

//Misty

Daniel

unread,
Jul 15, 2011, 7:31:48 AM7/15/11
to Tidy Plates
Hmm... previous reply didn't show up...

Sooo... basically, check out TidyPlates\widgets\DebuffWidget.lua,
starting at line 670+...

The icon artwork is set when there's an active debuff, but the
CreateAuraIconFrame function sets up the artwork frame.

The important line is...

frame.Icon:SetTexCoord(.07, 1-.07, .23, 1-.23) --
obj:SetTexCoord(left,right,top,bottom)

... which crops off the default rounded border, and makes the image
rectangular.

I don't know of any unit frames that also does this. Actually, I've
gotten a lot of negative comments for the squished shape... lol.. but
I'm glad that you like it, too!
Reply all
Reply to author
Forward
0 new messages