Thread Tools Display Modes
04-07-15, 09:52 AM   #1
Kygo
A Theradrim Guardian
 
Kygo's Avatar
AddOn Author - Click to view addons
Join Date: May 2014
Posts: 64
Angle Statusbars

Greetings.

Is it possible to angle the start and/or the end of a statusbar?
Did some research on the most relative term ("create angle statusbar lua") and also checked WoWProgramming's doc on StatusBar widget. But couldn't find any information about it.

Did sketch a draft on how I imagined it would look like.

(I could just make it with trimmed textures, but that ain't fun!)
Attached Thumbnails
Click image for larger version

Name:	Draft.png
Views:	195
Size:	2.2 KB
ID:	8560  
  Reply With Quote
04-07-15, 10:41 AM   #2
Resike
A Pyroguard Emberseer
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 1,290
It's possible but you gonna have to animate a texture with texture coordinates to act like a statusbar to achieve this. I can point you to:

http://www.youtube.com/watch?v=BCo8ApYXB5o

Last edited by Resike : 04-07-15 at 10:43 AM.
  Reply With Quote
04-07-15, 12:29 PM   #3
Tonyleila
A Molten Giant
 
Tonyleila's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 758
Have you seen Sword Art UI ?
__________________
Author of: LeilaUI and Aurora: Missing Textures
__________________
  Reply With Quote
04-07-15, 12:33 PM   #4
Kygo
A Theradrim Guardian
 
Kygo's Avatar
AddOn Author - Click to view addons
Join Date: May 2014
Posts: 64
Originally Posted by Resike View Post
It's possible but you gonna have to animate a texture with texture coordinates to act like a statusbar to achieve this. I can point you to:

http://www.youtube.com/watch?v=BCo8ApYXB5o
Gonna take a look at how texture coordinates work! Thank you!

That DMC stuff looks pretty cool imo

Cheers for the links!
Originally Posted by Tonyleila View Post
Have you seen Sword Art UI ?
I didn't until just now!
Gonna peek at Sword Art UI's code to see how he/she did it!

Thought those frames looked familiar, one of the shamans in NollTvåTre is using those!

Last edited by Kygo : 04-07-15 at 12:38 PM.
  Reply With Quote
04-09-15, 07:08 PM   #5
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
Originally Posted by Resike View Post
It's possible but you gonna have to animate a texture with texture coordinates to act like a statusbar to achieve this.
You can actually just adjust the tex coords of a real statusbar texture; you don't need to create your own. See here for the code I use to trim the statusbar textures in my oUF layout. I trim off the right section of the texture, but you'll want to reverse it and trim off the left section.
__________________
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
04-14-15, 01:19 PM   #6
Gethe
RealUI Developer
 
Gethe's Avatar
Premium Member
Featured
Join Date: Sep 2008
Posts: 942
RealUI makes use of angled status bars in its oUF frames. You can check it out here. It's not a true status bar in that it doesn't actually use that object type, but rather a normal frame with custom methods to achieve the same effect.

It's currently in a transition to a newer design so there are two ways to make them at the moment. The new design starts on line 164. You can find a use case in the player frame.

If you have any questions send me a PM.
__________________
Knowledge = Power; Be OP

  Reply With Quote
04-14-15, 03:18 PM   #7
Resike
A Pyroguard Emberseer
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 1,290
Originally Posted by Phanx View Post
You can actually just adjust the tex coords of a real statusbar texture; you don't need to create your own. See here for the code I use to trim the statusbar textures in my oUF layout. I trim off the right section of the texture, but you'll want to reverse it and trim off the left section.
You guess you are right, but you could still bump into some limitation that StatusBars have.
  Reply With Quote
04-15-15, 07:57 AM   #8
Kygo
A Theradrim Guardian
 
Kygo's Avatar
AddOn Author - Click to view addons
Join Date: May 2014
Posts: 64
Originally Posted by Phanx View Post
You can actually just adjust the tex coords of a real statusbar texture; you don't need to create your own. See here for the code I use to trim the statusbar textures in my oUF layout. I trim off the right section of the texture, but you'll want to reverse it and trim off the left section.
I'll take a look to see how you did achive that effect
Thanks!

Originally Posted by Gethe View Post
RealUI makes use of angled status bars in its oUF frames. You can check it out here. It's not a true status bar in that it doesn't actually use that object type, but rather a normal frame with custom methods to achieve the same effect.

It's currently in a transition to a newer design so there are two ways to make them at the moment. The new design starts on line 164. You can find a use case in the player frame.

If you have any questions send me a PM.
Thanks a lot Gethe, will check out your code !
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Angle Statusbars

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