Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Shield bar reverse fill direction #200

Open
asrsa opened this issue Aug 15, 2024 · 0 comments
Open

[Feature] Shield bar reverse fill direction #200

asrsa opened this issue Aug 15, 2024 · 0 comments

Comments

@asrsa
Copy link

asrsa commented Aug 15, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants