Thread Tools Display Modes
05-06-09, 03:28 PM   #1
Lolzen
An Aku'mai Servant
 
Lolzen's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2008
Posts: 36
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 =)
  Reply With Quote
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,740
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.
| WoWI AddOns | GitHub | Zork (WoW)

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
  Reply With Quote
05-11-09, 07:14 AM   #3
Lolzen
An Aku'mai Servant
 
Lolzen's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2008
Posts: 36
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
  Reply With Quote

WoWInterface » 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