mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-25 21:40:49 +00:00
revert PixelUtil usage
This commit is contained in:
@@ -83,14 +83,6 @@ do -- statusbars
|
|||||||
self:DisplayValue(self.val_ or self.val)
|
self:DisplayValue(self.val_ or self.val)
|
||||||
end,
|
end,
|
||||||
|
|
||||||
["GetMinMaxValues"] = function(self)
|
|
||||||
return self.min, self.max
|
|
||||||
end,
|
|
||||||
|
|
||||||
["GetValue"] = function(self)
|
|
||||||
return self.val
|
|
||||||
end,
|
|
||||||
|
|
||||||
["SetValue"] = function(self, val)
|
["SetValue"] = function(self, val)
|
||||||
self.val = val or 0
|
self.val = val or 0
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -237,7 +237,7 @@ pfUI:RegisterModule("castbar", function ()
|
|||||||
cur = cur > max and max or cur
|
cur = cur > max and max or cur
|
||||||
cur = cur < 0 and 0 or cur
|
cur = cur < 0 and 0 or cur
|
||||||
|
|
||||||
PixelUtil.SetStatusBarValue(this.bar, cur)
|
this.bar:SetValue(cur)
|
||||||
|
|
||||||
if this.showtimer then
|
if this.showtimer then
|
||||||
if this.delay and this.delay > 0 then
|
if this.delay and this.delay > 0 then
|
||||||
|
|||||||
@@ -1748,7 +1748,7 @@ end
|
|||||||
end
|
end
|
||||||
barValue = barValue < 0 and 0 or barValue
|
barValue = barValue < 0 and 0 or barValue
|
||||||
barValue = barValue > duration and duration or barValue
|
barValue = barValue > duration and duration or barValue
|
||||||
PixelUtil.SetStatusBarValue(nameplate.castbar, barValue)
|
nameplate.castbar:SetValue(barValue)
|
||||||
SetCastbarText(nameplate.castbar, castInfo.endTime - now)
|
SetCastbarText(nameplate.castbar, castInfo.endTime - now)
|
||||||
if not nameplate.castbar.isShown then nameplate.castbar.isShown = true; nameplate.castbar:Show() end
|
if not nameplate.castbar.isShown then nameplate.castbar.isShown = true; nameplate.castbar:Show() end
|
||||||
end
|
end
|
||||||
@@ -1783,7 +1783,7 @@ end
|
|||||||
nameplate.castbar.spell:SetText("")
|
nameplate.castbar.spell:SetText("")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
PixelUtil.SetStatusBarValue(nameplate.castbar, cur)
|
nameplate.castbar:SetValue(cur)
|
||||||
SetCastbarText(nameplate.castbar, channel and cur or (max - cur))
|
SetCastbarText(nameplate.castbar, channel and cur or (max - cur))
|
||||||
if not nameplate.castbar.isShown then nameplate.castbar.isShown = true; nameplate.castbar:Show() end
|
if not nameplate.castbar.isShown then nameplate.castbar.isShown = true; nameplate.castbar:Show() end
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user