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. |
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". :p
|
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 |
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. :D 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. :) |
I have a feeling it might be better if you just hide select textures.
The flyout background seems like a prime candidate for that. |
1 Attachment(s)
I made one of these ages go to use on nameplates, It's made of 345 64x64 frames.
Lua Code:
|
Quote:
|
Thank you so much Elcius. This saves me so much time.
Interesting side note: I was sure wow expects textures to be in a square format. oO Learned something. :) Thanks again. |
Quote:
There's a lot more information about WoW-compatible textures in this guide. |
Quote:
[e] I can remember that I used a texture like ... 2048 x 2048 or something years ago with CursorCastBar which reproduceable crashed the Mac client. Don't know if or when this was fixed. Would be nice to know what happens with Elcius' texture file when used on a Mac. Anyone with a Mac client here who could try it? |
Quote:
|
Quote:
|
Quote:
|
Quote:
|
Quote:
|
1 Attachment(s)
Quote:
The left one has a size of 4096 x 4096 and the right one is 32,768 x 64. The first one crashed the Mac client (or some client setups at least ... not sure about that :/) back in 2010. I removed it from my addon and replaced it with a 1024x1024 version which seemed to solve the problem. |
What you are trying to do is sth I did in this mod ages ago:
http://www.wowinterface.com/download...07-Disco2.html Basically a huge sprite frame that changes the SetTexCoord based on a value. But for me it did not work that well (not smooth enough and problems with smooth animation on bad FPS). Imo WoW can handle 1024x1024 just fine. >= 2048x2048 depends on your PC I guess. But why would you create 300+ images nowadays and manipulate them manually in first place? To create a full ring you need two 180° rings and 2 scrollframes. The only thing that is left is an Update function that changes the texture rotation. Plus if you are using animationgroups on your texture you do not have to do that either. You can just run a linear animation loop with an OnFinished function to fix your textures. Lightspark and I have discussed that here: http://www.wowinterface.com/download...age=2#comments I can set up an example for you if you like. Should be that hard to get a cooldown ring running. p.s. I'm talking about animating a simple ring texture...if you are talking about rotating a full set of actionbuttons I'm out. :) |
Quote:
Actually I didn't was aware of your scrollframe approach. Thanks for pointing this out. I'm not sure if this will work. I'll have to rotate the two scrollframes via an animation. Semlar stated here http://www.wowinterface.com/forums/s...ad.php?t=48798 that rotating a scrollframe would not work as expected. Didn't tried it though. At the Moment I'm fine with the 'sprite' approach. It's working. And there are several other Problems to solve with my action bar approach. I'll get in touch with the cooldown problem to optimize it if everything else is working too. :) |
Yeah...rotating a ScrollFrame itself is a really bad idea. You can do that if you are into arts and stuff ... because art is what you get. :p
Currently I use animationgroups on textures that are anchored to the scrollchild of a scrollframe. That works pretty well. |
I ended up with building the cooldown image set myself. (I need single files, transparent border, etc.)
It took me a while to search for a usefull approach to build the files. So I just thought I should add a few lines over here showing my solution for everyone else who needs to do this in the future. :) An easy way to build image files is a very simple and small vb.net app. Like this one: Code:
Dim blackPen As New Pen(Color.Black, 1) The Graphics class provides a lot of drawing functions. You can use them to build fake-animations for lot of different custom shapes. |
All times are GMT -6. The time now is 03:05 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI