LunaUnitFrames

LunaUnitFrames

268k Downloads

XP bar doesn't scale properly

Hvalfisk opened this issue · 4 comments

commented

scale 1.0

2018-04-22 14_55_28-world of warcraft

scale 0.5

2018-04-22 14_55_06-world of warcraft

scale 2.0

2018-04-22 14_54_51-world of warcraft

commented

commented

The same issue also affects the rep bar, but does not appear to affect the rested xp bar.

commented

I have this issue too and had to insert a workaround.

image

The top two images are my playerframe with an unchanged copy of LunaUnitFrames. You can see that the bar is a lot less full than the 91.4% it should be.

My fix was to enter the following line in xp.lua in XP:UpdateXP() before the minmax values are set for the bar:
frame.xpBar.xp:SetWidth(frame.xpBar:GetWidth())
This gives me the bottom two images where the bar appears to scale correctly.

It seems a hacky workaround and I'm not sure what the base issue is, so not submitting as PR.

commented

No description provided.