Cell icon indicating copy to clipboard operation
Cell copied to clipboard

[Feature] Shield bar reverse fill direction

Open asrsa opened this issue 1 year ago • 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)

image

asrsa avatar Aug 15 '24 11:08 asrsa