Dynamic Slanted Unitframe Bar Textures?
Any idea how to do this?
|
I have no clue what you mean by "dynamic", but that's entirely possible using a custom statusbar texture.
|
Meaning the slant is dynamic rather than static, ie. it moves when the health value updates.
Bad & easy to achieve: Good & what I'm asking about: |
I can't offer a solution, but I remember looking at screenshots from zork's ringmod, and wondering how he made the spark truly radial. Maybe applicable, maybe not. :p
|
Yeah I remember that and I'd think something as simple as this would be very easy to achieve. We just need to know how.
|
Mess with TexCoord transformations. In particular, moving the upper left corner further left and the lower right corner out further right might provide the desired effect.
|
I would use two frames of the shaped texture, then cut the edges it instead of reducing the width using SetTexCoord.
|
Make 3 tga files:
Code 5 textures (from left to right):
You simply need to change the rectangles sizes according to the health you want to display. On a side note, the "red to white edge" can be done programmatically by using the "white edge" and the "red edge" again (and rotating them). |
All times are GMT -6. The time now is 04:22 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI