KeyUI

KeyUI

3k Downloads

LUA Error

1onar opened this issue · 0 comments

commented

From 2BOnest:

I get it why the error:

I have 2 macro binded on the mouse for the trinkets:

#showtooltip
/use 14`

right now one of the two trinket doesn't have a use effect so is actually a trinket not usable and addon goes in error when I set the keybind for the macro that have the trinket with no use

1x KeyUI/KeyUI.lua:967: attempt to index field 'ShortLabel' (a nil value)
[string "@KeyUI/KeyUI.lua"]:967: in function `SetKey'
[string "@KeyUI/KeyUI.lua"]:1024: in function `RefreshKeys'
[string "@KeyUI/MouseFrame.lua"]:404: in function `SaveLayout'
[string "@KeyUI/MouseFrame.lua"]:165: in function <KeyUI/MouseFrame.lua:165>

Locals:
self = <table> {
 controlsFrame = KBControlsFrame {
 }
 MouseFrame = MouseFrame {
 }
 ddChangerMouse = KBChangeBoardDDMouse {
 }
 tooltip = KeyUITooltip {
 }
 keyboardFrame = KeyUIMainFrame {
 }
 ddChanger = KBChangeBoardDD {
 }
 dropdown = KBDropDown {
 }
 spells = <table> {
 }
 menu = <table> {
 }
 modif = <table> {
 }
}
button = Frame {
 NineSlice = Frame {
 }
 label = FontString {
 }
 macro = FontString {
 }
 backdropColorAlpha = 0.800000
 layoutType = "TooltipDefaultLayout"
 interfaceaction = FontString {
 }
 icon = Texture {
 }
}
spell = ""
classFilename = "HUNTER"
bonusBarOffset = 0
actionTextures = <table> {
 MOVEFORWARD = 450907
 MOVEBACKWARD = 450905
 STRAFELEFT = 450906
 EXTRAACTIONBUTTON1 = 4200126
 STRAFERIGHT = 450908
}
(*temporary) = nil
(*temporary) = nil
(*temporary) = "INSERT"
(*temporary) = nil
(*temporary) = nil
(*temporary) = "THREATPLATES_NAMEPLATE_MODE_FOR_ENEMY_UNITS"
(*temporary) = nil
(*temporary) = "ALT-è"
(*temporary) = 1
(*temporary) = Texture {
}
(*temporary) = Texture {
}
(*temporary) = 0
(*temporary) = 0
(*temporary) = 0
(*temporary) = 1
(*temporary) = "attempt to index field 'ShortLabel' (a nil value)"
modif = <table> {
 CTRL = ""
 ALT = "ALT-"
 SHIFT = ""
}