Reply
 
Thread Tools Display Modes
Old 05-06-09, 03:28 PM   #1
Lolzen
A Murloc Raider
 
Lolzen's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2008
Posts: 8
Cooldown Animation

I hope this belongs here.

I made Button Textures that have round corners.
But whenever a Skill is used, the "Cooldown Texture" is messing up the Actionbars, because the corners are angular shaped.

Here's an example:


So my question is, is there a way to modify the "Cooldown Texture"/Animation?

Thanks in advance =)
Lolzen is offline   Reply With Quote
Old 05-08-09, 06:46 AM   #2
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 1,289
Buttons are always rectangular. The round button is just an illusion. To give your button the illusion of a round button you need your round border texture to overlay the icon and the cooldown aswell. To make it work make use of setpoint. The CooldownFrame is anchored to the icon mostly, so changing the setpoint of the icon will affect the cooldown frame aswell. Every icon has a button or frame it is achored to.

Example
Code:
icon:ClearAllPoints()
icon:SetPoint("TOPLEFT", frame, "TOPLEFT", 3, -3)
icon:SetPoint("BOTTOMRIGHT", frame, "BOTTOMRIGHT", -3, 3)
If your icontexture has round borders...my friend you are in trouble you shouldn't have done it this way. Overlaying the icon with a round border texture does work though.
__________________
| Simple is beautiful.
| Blog | Roth UI | Roth UI FAQ | GoogleCode | Zork | Guild | zorker.de

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
zork is offline   Reply With Quote
Old 05-11-09, 07:14 AM   #3
Lolzen
A Murloc Raider
 
Lolzen's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2008
Posts: 8
Thanks, but in fact i'm using it this way

But you helped me when you said the cd animation is anchored to the icon.
So i checked my texture and saw i had a ~3 px invisible space, so i think eliminatin this will do it.

Thanks, and also thanks for your Actionbar Addons ;D
Lolzen is offline   Reply With Quote
Reply

Go BackWoWInterface » Developer Discussions » Graphics Help » Cooldown Animation

Thread Tools
Display Modes

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