obble / modui_classic

modui: for wow classic
45 stars 20 forks source link

Hides the XP bar if the player is lvl 60 #82

Open Redlab1 opened 4 years ago

Redlab1 commented 4 years ago

So I'm quite new to the modding scene, and not used to lua coding.

I added a simple function that checks if the player is lvl 60, and if true then it disables the XP bar as described in https://github.com/obble/modui_classic/issues/77.

Redlab1 commented 4 years ago

Nevermind, I see now that by doing my fix it shows the default bars again. image

Redlab1 commented 4 years ago

Any idea on how to resolve this? I will fiddle around a bit with the code and see if I find the issue. Any input appreciated though!

Redlab1 commented 4 years ago

Now it might be working as intended. This is the result right now:

image

obble commented 4 years ago

Attempted an alternative which hopefully solves the issue, let me know!

Redlab1 commented 4 years ago

@obble well. That did unfortunately not work. Same problem as before.

obble commented 4 years ago

Damnit, let me patch in your fix tonight in that case.

Redlab1 commented 4 years ago

This is with your fix: WoWScrnShot_092519_172919

This is my fix: WoWScrnShot_092519_173009

I must say tho, your fix is way more gracious than mine.. I could have a look at your fix when I have time, and try to make it work.