Thread Tools Display Modes
Unread 08-31-12, 11:43 AM   #1
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 1,391
Vertical statusbars finally working as intended

Out of curiosity I did a test.
http://code.google.com/p/rothui/sour...StatusbarDebug

And see what I got.


Vertical statusbars finally working as intended!!!

Thus it is finally possible to use non-rectangular textureobjects on vertical statusbars. So no more workaround with SetTexCoord handling...sweet!

Going to do some more tests with different texture sizes.



*edit*

Yep...still working. Now that is pretty awesome.



I tested this because my burning ember display should be a vertical statusbar containing a flame texture.
__________________
| Simple is beautiful.
| Roth UI | Roth UI FAQ | GoogleCode | Zork | TDMOG

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)

Last edited by zork : 09-17-12 at 04:24 PM.
zork is offline  
Unread 08-31-12, 12:00 PM   #2
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 9,682
If it didn't work before, then what were HUDs using?
__________________
"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

Seerah is offline  
Unread 08-31-12, 12:06 PM   #3
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 1,391
Well...I'm using
Lua Code:
  1. local updatePlayerHealth = function(bar, unit, min, max)
  2.     local d = floor(min/max*100)
  3.     bar.Filling:SetHeight((min / max) * bar:GetWidth())
  4.     bar.Filling:SetTexCoord(0,1,  math.abs(min / max - 1),1)
  5.     ...
  6. end
until now.

Because when I created oUF_D3Orbs (err...long time ago) the vertical statusbar textures bugged out all the time.
__________________
| Simple is beautiful.
| Roth UI | Roth UI FAQ | GoogleCode | Zork | TDMOG

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
zork is offline  
Unread 08-31-12, 12:29 PM   #4
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 9,682
Oh, derp - texcoords. Need moar caffeine!
__________________
"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

Seerah is offline  
Unread 09-17-12, 10:31 AM   #5
Gragagrogog
A Murloc Raider
Join Date: May 2011
Posts: 4
I've noticed there's a new(new to me at least) status bar method SetReverseFill(1nil), which would supposedly fill the texture from the other side, but here is what it does(2nd and 4th row):


(i used your code just with bar:SetReverseFill(1))

So you still have to use SetTexCoord for R2L and T2B orientations, unless u want that wierd sliding behaviour.
Gragagrogog is offline  
Unread 09-17-12, 04:22 PM   #6
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 1,391
Hmm intesting though. Same SetTexCoord just opposite SetPoint.

It can be used if you need a ping-pong like animation. (Dropping ball or the like)
__________________
| Simple is beautiful.
| Roth UI | Roth UI FAQ | GoogleCode | Zork | TDMOG

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)

Last edited by zork : 09-17-12 at 04:25 PM.
zork is offline  
 

Go BackWoWInterface » WoD Beta » MoP archived threads » Vertical statusbars finally working as intended

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