mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-03 12:10:01 +00:00
castbar: pixel-snap progress via PixelUtil.SetStatusBarValue
Routes player and nameplate castbar progress through PixelUtil.SetStatusBarValue so a 1.4s cast on a narrow bar no longer shimmers across fractional pixels as it ticks. Adds GetMinMaxValues / GetValue handlers to pfUI's custom StatusBar so PixelUtil can read the current range.
This commit is contained in:
+1
-1
@@ -237,7 +237,7 @@ pfUI:RegisterModule("castbar", function ()
|
||||
cur = cur > max and max or cur
|
||||
cur = cur < 0 and 0 or cur
|
||||
|
||||
this.bar:SetValue(cur)
|
||||
PixelUtil.SetStatusBarValue(this.bar, cur)
|
||||
|
||||
if this.showtimer then
|
||||
if this.delay and this.delay > 0 then
|
||||
|
||||
Reference in New Issue
Block a user