Thread Tools Display Modes
04-13-11, 11:34 AM   #1
tenub
A Flamescale Wyrmkin
AddOn Author - Click to view addons
Join Date: Sep 2008
Posts: 111
Dynamic Slanted Unitframe Bar Textures?

Any idea how to do this?


Last edited by tenub : 04-13-11 at 12:24 PM.
  Reply With Quote
04-13-11, 12:04 PM   #2
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
I have no clue what you mean by "dynamic", but that's entirely possible using a custom statusbar texture.
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

  Reply With Quote
04-13-11, 12:22 PM   #3
tenub
A Flamescale Wyrmkin
AddOn Author - Click to view addons
Join Date: Sep 2008
Posts: 111
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:

Last edited by tenub : 04-13-11 at 12:25 PM.
  Reply With Quote
04-13-11, 04:23 PM   #4
Aprikot
A Frostmaul Preserver
 
Aprikot's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2010
Posts: 284
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.
  Reply With Quote
04-13-11, 04:47 PM   #5
tenub
A Flamescale Wyrmkin
AddOn Author - Click to view addons
Join Date: Sep 2008
Posts: 111
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.
  Reply With Quote
04-13-11, 04:55 PM   #6
Foxlit
A Warpwood Thunder Caller
AddOn Author - Click to view addons
Join Date: Nov 2006
Posts: 91
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.
__________________
... and you do get used to it, after a while.
  Reply With Quote
04-14-11, 01:20 AM   #7
Nillerr
A Fallenroot Satyr
 
Nillerr's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2010
Posts: 22
I would use two frames of the shaped texture, then cut the edges it instead of reducing the width using SetTexCoord.
  Reply With Quote
04-14-11, 06:53 AM   #8
jaliborc
A Chromatic Dragonspawn
 
jaliborc's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2007
Posts: 196
Make 3 tga files:
  • The white edge (a white irregular triangle)
  • The red edge (a red irregular triangle)
  • The white to red edge (where the white meets the red; two triangles of different colors)

Code 5 textures (from left to right):
  • The white edge
  • A white rectangle
  • The white to red edge
  • A red rectangle
  • The red edge

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).
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » Dynamic Slanted Unitframe Bar Textures?

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