LS: UI

LS: UI

146k Downloads

Honor bar generates LUA error

heinzmuller opened this issue ยท 3 comments

commented

When right clicking the honor bar in the Honor Talents and selecting the show as XP bar option I get this LUA error and it persists until I uncheck the XP bar option

Message: Interface\AddOns\ls_UI\modules\bars\xpbar.lua:161: attempt to index field 'line3' (a nil value)
Time: Tue Feb  7 19:35:26 2017
Count: 1
Stack: Interface\AddOns\ls_UI\modules\bars\xpbar.lua:161: in function <Interface\AddOns\ls_UI\modules\bars\xpbar.lua:51>
Interface\AddOns\ls_UI\modules\bars\xpbar.lua:472: in function `func'
Interface\FrameXML\UIDropDownMenu.lua:787: in function `UIDropDownMenuButton_OnClick'
[string "*:OnClick"]:1: in function <[string "*:OnClick"]:1>
commented

Worked wonders :)

I'll be eagerly waiting for the updated UI with the new Minimap!

commented

Hi!

I can't push/release any updates now, hope you're willing to do it manually, here's how:

if _G.GetHonorExhaustion() and _G.GetHonorExhaustion() > 0 then
	bar[index].tooltipInfo.line3 = {
		text = L["XP_BAR_HONOR_BONUS_TOOLTIP"]:format(_G.GetHonorExhaustion())
	}
else
	bar[index].tooltipInfo.line3 = nil
end
  • Save & /reload.

I guess I was really tired when I wrote that line of code T_T

commented

Fixed. Will release an update within next few days.