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

Status Bars: Undesribable behaviour after 10.2 #498

Closed
ls- opened this issue Nov 8, 2023 · 4 comments
Closed

Status Bars: Undesribable behaviour after 10.2 #498

ls- opened this issue Nov 8, 2023 · 4 comments
Labels
Bug Something isn't working

Comments

@ls-
Copy link

ls- commented Nov 8, 2023

In 10.2 the status bar behaviour was changed.

Right now when the current value is set to whatever the min value is, it breaks all the anchors of whatever is attached to the status bar texture, in this example it's a secondary status bar:

bug_sb_pv

That said, if you set the bar value to any value that isn't min value afterwards, the secondary bar will reattach itself properly again.

Moreover, it seems that instead of being actually empty, the status bar's texture is simply invisible, but its width is set to the max instead of being ~0, so if you try to attach anything to it, it'll look like this:

image

For context, this is the pre-10.2 behaviour. I could reproduce it by setting the min value to -0.001 instead of 0, any value that's just a tiiiiny bit lower than the desired min value should do the trick here. So at least there's a workaround, I guess.

old_sb_pv

kodewdle added a commit to tukui-org/ElvUI that referenced this issue Nov 8, 2023
@kodewdle
Copy link

kodewdle commented Nov 8, 2023

/run X=PlayerFrame.PlayerFrameContent.PlayerFrameContentMain.HealthBarArea.HealthBar

/run Y=CreateFrame('StatusBar', '$parent_RedBar', X);Y:SetSize(100, 20);Y:SetPoint('LEFT', X:GetStatusBarTexture(), 'RIGHT');Y:SetStatusBarTexture([[Interface\Buttons\White8x8]]);Y:SetStatusBarColor(1, 0, 0, 1);Y:SetMinMaxValues(0, 1);Y:SetValue(0)

/run W=CreateFrame('StatusBar', '$parent_GreenBar', X);W:SetSize(100, 20);W:SetPoint('LEFT', Y:GetStatusBarTexture(), 'RIGHT');W:SetStatusBarTexture([[Interface\Buttons\White8x8]]);W:SetStatusBarColor(0, 1, 0, 1);W:SetMinMaxValues(0, 6);W:SetValue(3)

do those 3:
image

then do: /run Y:SetValue(0.1):
image

then do: /run Y:SetValue(0):
image

then do: /run Y:SetValue(0.0001)
image

then do: /run Y:SetValue(0) and /run Y:SetStatusBarTexture([[Interface\Buttons\White8x8]])
image

last one: when the value is the same as the min value and the texture is changed, the position of the GetStatusBarTexture is reset to full.

@Meorawr Meorawr added the Bug Something isn't working label Nov 8, 2023
kodewdle added a commit to tukui-org/ElvUI that referenced this issue Nov 8, 2023
kodewdle referenced this issue in tukui-org/Tukui Nov 10, 2023
@kodewdle
Copy link

this also effects Classic Era 1.15

@ls-
Copy link
Author

ls- commented Nov 17, 2023

The bug is fixed in 10.2.5, and I hope it stays this way 🙏🏻

bug_sb_fixed_pv

@Meorawr
Copy link
Collaborator

Meorawr commented Dec 20, 2023

Marking as fixed based upon the 10.2.5 feedback.

@Meorawr Meorawr closed this as completed Dec 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants