Skip to content

Quick band-aid fix for always visible 1-2 pixel bar#22

Open
StefanOyx wants to merge 2 commits into
Zidras:mainfrom
StefanOyx:main
Open

Quick band-aid fix for always visible 1-2 pixel bar#22
StefanOyx wants to merge 2 commits into
Zidras:mainfrom
StefanOyx:main

Conversation

@StefanOyx

Copy link
Copy Markdown

I've commented as best I can, -- xD is where I made changes. Hope you can figure out a much cleaner way to fix this after taking a closer look.

function ZUF.HealthClipFrame_HealComm(frame)
if frame.HealCommBar then
ZUF:SetAlpha_HealComm(frame.HealCommBar, 1)
ZUF:SetAlpha_HealComm(frame.HealCommBar, 0) --xD changed from 1 to 0 to start it off hidden avoiding bug yet still have it there so it still positions properly

@Zidras Zidras Dec 15, 2023

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This breaks raid frame prediction, and I also find this not to be an adequate change since it affects bar creation

absorbBar:SetAlpha(1)
overAbsorb:SetAlpha(1)
end

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This would fail if you had one of the IncHeals present. Ideally, for the bandaid to work, I assume you'd have to check the Incoming value for 0 and AlphaHide the respective bar

end

-- xD end of shit code

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here, not all bars are absorb

Perhaps this method is a bit more robust than previous to avoid assumptions that are not always true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants