LS: UI

LS: UI

146k Downloads

Significant bug in text format handling

klaxce opened this issue · 5 comments

commented

If you put an incorrect text tag in the Format field of the Target Frame Power element then you can cause the minimap to not be reskinned/repositioned, as well as unable to edit the Focus, Target of Focus and Boss Frames. You may have to reload/relog after applying the incorrect text formatting in order for it to break things.

ex. [ls:color:power][ls:power:perc] works and everything is fine, but if you do [ls:power:color][ls:power:perc] then it breaks things as described (power/color are reversed).

I haven't tested this in other Format fields.

commented

Hm, I'll test it a bit later today...

TY for the report <3

commented

Got it.

[ls:power:color] isn't a legit tag, so when you try to use it this error:
1x ...acels_UI\modules\unitframes\units\player-Player.lua:36: Attempted to use invalid tag [ls:power:color].

Technically, it's not a bug, it's the intended behaviour. I may add tag string validation though...

commented

On a side note, you should prob install BugSack and BugGrabber, by default, Blizz lua error reporting is disabled.

commented
commented

K, now if you try to use something like this: [ls:health:cur][tag #1] [tag #2], tag setter won't update the string, and you'll see a message like this in the config's status bar:
Imgur