Thread Tools Display Modes
01-23-14, 06:12 AM   #1
Duugu
Premium Member
 
Duugu's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2006
Posts: 851
I need a cooldown texture

I'm looking for a cooldown texture that is 'comprised' of single images to manually animate a cooldown via SetTexCoodinates.

What I'm looking for is like this:

What I need is a square/cooldown style version.

I could build one by myself. But I don't know how, exept building it manually image for image. Which would be a lot of work. :/

Has someone a texture like this available and would provide me with it, or does someone know how to build these textures without doing every Frame by hand?

Thank you.
  Reply With Quote
01-23-14, 07:09 AM   #2
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
OPie does a "fake" cooldown like that (eg. using textures, not an actual cooldown object). You could take a look to see how that works, though I should warn you the code is rather... let's just go with "interesting".
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote
01-23-14, 07:59 AM   #3
Dridzt
A Pyroguard Emberseer
 
Dridzt's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2005
Posts: 1,360
I think rather than creating a bunch of different graphics cropping will serve you better.

Zork has posted rather extensively on how to achieve ring effects here.
http://www.wowinterface.com/forums/s...highlight=ring
  Reply With Quote
01-23-14, 09:02 AM   #4
Duugu
Premium Member
 
Duugu's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2006
Posts: 851
Thank you both of you.

Having a quick peek into the OPie code I would say it's basically the same way as with Zork's implementation (cooldown is build out of 9 triangular textures).
I know this way, but I would like to realize it with pre-build textures.

I'm rotating the cooldowns parent object via animation groups, which is working fine with a single texture object that is anchored to the center of it's parent.
Building a cooldown out of several anchored/rotated/croped textures would most likely not work with this, or would at least raise new problems. Supposably it would cost me more time to fix them, than to completely create the needed texture by hand.

Example:
This is what happens with the flyout background texture (which is not anchored to the center) if the button is rotated. So I would like to do it as simple as possible.

Last edited by Duugu : 01-23-14 at 09:20 AM.
  Reply With Quote
01-23-14, 09:31 AM   #5
Dridzt
A Pyroguard Emberseer
 
Dridzt's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2005
Posts: 1,360
I have a feeling it might be better if you just hide select textures.
The flyout background seems like a prime candidate for that.
  Reply With Quote
01-26-14, 03:02 AM   #6
elcius
A Cliff Giant
AddOn Author - Click to view addons
Join Date: Sep 2011
Posts: 75
I made one of these ages go to use on nameplates, It's made of 345 64x64 frames.
Lua Code:
  1. local n = floor(345*p);
  2. Texture:SetTexCoord(
  3.     0.001953125*n,0,
  4.     0.001953125*n,1,
  5.     0.001953125*(n+1),0,
  6.     0.001953125*(n+1),1
  7. )
Attached Files
File Type: zip Cooldown.zip (186.0 KB, 445 views)
  Reply With Quote

WoWInterface » Developer Discussions » Graphics Help » I need a cooldown texture


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