tukui-org / ElvUI

User Interface replacement AddOn for World of Warcraft.
https://tukui.org
Other
456 stars 152 forks source link

Reverse/mirror over-absorb bar #922

Open WRMSRwasTaken opened 1 year ago

WRMSRwasTaken commented 1 year ago

Is your feature request related to a problem? Please describe. I am used to (one might call it a very weird config) heal in "deficit mode", where the health bar is completely filled with the backdrop when at 100% health: grafik ... and filling from the left in a red color for missing health: grafik The same goes for my raid frames: grafik Now my problem is, best seen when giving me a shield at 100% health: grafik Is that unit at 90% health with a 10% shield or is this an over absorb at 100% health? I can't see this on the raidframes due to me not having (and wanting) health percentiles on it.

Describe the solution you'd like It'd be good to be able to append / anchor the over shield / heal prediction to the right side of the unit health bar, if the unit's health is at 100%. Yes, there's a setting to set a different color for over-aborbs, but having it on the other side would be better for hectic encounters.

Describe alternatives you've considered Trying to mess around with the "Absorb Style" setting (Reversed, Wrapped, ...) does not seem to change anything in my case :(

Additional context Coming from that cough other MMORPG with the ElvUI clone (where I actually got used to heal with a config like this), I was able to accomplish my wanted setting: grafik Here I am at 100% health with a shield on top. Also it's possible there to see absorbs and over-absorbs at the same time (filling the HP bar and then mirroring on the right side if the shield is bigger than the missing health): grafik

Looking at the codebase in Core/Modules/UnitFrames/Elements/HealPrediction.lua it seems that there are 2 separate bars (absorbBar and overAbsorbBar - not existent) needed for displaying both at the same time on different anchors I suppose... I am trying a proof of concept once I have some time. This could also be a nice to have for the heal absorb bar (a 2nd overHealAbsorbBar).

WRMSRwasTaken commented 10 months ago

I made a small proof of concept here as an external ElvUI plugin and it seems to work flawlessly: https://github.com/WRMSRwasTaken/ElvUI_MirrorAbsorb

If wanted, I'd be happy to try to make a PR to introduce a new Mirrored absorb style for the unitframes.

CLSixteen commented 8 months ago

@WRMSRwasTaken This isn't a real solution, but an elegant workaround, using WeakAuras. Create a weak aura progress bar, and set a trigger as followed: Player/unit Info > Health > Smart Group and tick "Show absorb". Then, u'll be able to select from the next dropdown "Anchor to start" or "Anchor to end", this option from weakauras do what you are trying to achieve. Then, in the display tab, select Anchor as "Unit frame", set bar color and background color as transparent. Finally, config the progress bar to match your unit frame size W/H. You will probably need to config 2 auras, one for your 5-man group config, and one for your raid party config.