[Feature] Shield bar reverse fill direction
asrsa opened this issue ยท 0 comments
Would it be possible to have an option to change the direction shield overflow bar (reverse fill) starts from? I managed to achieve this with the snippet below, but I have to run it manually since it doesn't work on reloads.
-- Reverse Shield overflow changed to start from the left
Cell.funcs:IterateAllUnitButtons(function(b)
local P = Cell.pixelPerfectFuncs
local shieldBarR = b.widgets.shieldBarR
local healthBar = b.widgets.healthBar
P:ClearPoints(shieldBarR)
P:Point(shieldBarR, "TOPLEFT", healthBar:GetStatusBarTexture())
P:Point(shieldBarR, "BOTTOMLEFT", healthBar:GetStatusBarTexture())
end)