mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-30 03:06: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:
@@ -83,6 +83,14 @@ do -- statusbars
|
||||
self:DisplayValue(self.val_ or self.val)
|
||||
end,
|
||||
|
||||
["GetMinMaxValues"] = function(self)
|
||||
return self.min, self.max
|
||||
end,
|
||||
|
||||
["GetValue"] = function(self)
|
||||
return self.val
|
||||
end,
|
||||
|
||||
["SetValue"] = function(self, val)
|
||||
self.val = val or 0
|
||||
|
||||
|
||||
Reference in New Issue
Block a user