mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-02 03:39:59 +00:00
target: always refresh status bars
This commit is contained in:
@@ -219,6 +219,8 @@ pfUI:RegisterModule("target", function ()
|
||||
pfUI.uf.target.hp.bar:SetValue(hpDisplay + ceil(hpDiff / pfUI_config.unitframes.animation_speed))
|
||||
elseif hpDisplay > hpReal then
|
||||
pfUI.uf.target.hp.bar:SetValue(hpDisplay - ceil(hpDiff / pfUI_config.unitframes.animation_speed))
|
||||
else
|
||||
pfUI.uf.target.hp.bar:SetValue(hpReal)
|
||||
end
|
||||
|
||||
local powerDisplay = pfUI.uf.target.power.bar:GetValue()
|
||||
@@ -229,6 +231,8 @@ pfUI:RegisterModule("target", function ()
|
||||
pfUI.uf.target.power.bar:SetValue(powerDisplay + ceil(powerDiff / pfUI_config.unitframes.animation_speed))
|
||||
elseif powerDisplay > powerReal then
|
||||
pfUI.uf.target.power.bar:SetValue(powerDisplay - ceil(powerDiff / pfUI_config.unitframes.animation_speed))
|
||||
else
|
||||
pfUI.uf.target.power.bar:SetValue(powerReal)
|
||||
end
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user