View Single Post
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