
Bug: Error with Item Buttons
BaronSolace opened this issue ยท 1 comments
Game Flavor
Retail
Game Version
11.1
Add-On Version
11.0.2
Error Message
91x ...ns/Blizzard_ItemButton/Shared/ItemButtonTemplate.lua:256: attempt to call global 'GetItemButtonIconTexture' (a nil value)
[Blizzard_ItemButton/Shared/ItemButtonTemplate.lua]:256: in function 'GetItemButtonIconTexture'
[Masque/Core/Button.lua]:76: in function <Masque/Core/Button.lua:75>
[Masque/Core/Button.lua]:317: in function <Masque/Core/Button.lua:216>
[Masque/Core/Group.lua]:136: in function 'AddButton'
[Baganator/ItemViewCommon/Utilities.lua]:390: in function 'MasqueRegistration'
[Baganator/ItemViewCommon/ContainerSlots.lua]:462: in function <...eBaganator/ItemViewCommon/ContainerSlots.lua:408>
[C]: in function 'CreateFrame'
[Baganator/ViewManagement/Initialize.lua]:133: in function <...rfaceBaganator/ViewManagement/Initialize.lua:131>
[Baganator/ViewManagement/Initialize.lua]:589: in function <...rfaceBaganator/ViewManagement/Initialize.lua:588>
[C]: in function 'xpcall'
[Baganator/ViewManagement/Initialize.lua]:588: in function 'GenerateFrameGroup'
[Baganator/Skins/Main.lua]:38: in function <Baganator/Skins/Main.lua:33>
Locals:
self = Button {
IconOverlay = Texture {
}
__MSQ_bType = "Item"
showMatchHighlight = true
masqueApplied = true
icon = Baganator_SingleViewBackpackViewFramedarkIconTexture {
}
__MSQ_Scale = 1
HighlightTexture = Texture {
}
__MSQ_Enabled = true
__Regions = <table> {
}
PushedTexture = Texture {
}
Count = Baganator_SingleViewBackpackViewFramedarkCount {
}
searchOverlay = Baganator_SingleViewBackpackViewFramedarkSearchOverlay {
}
__MSQ_Icon = Baganator_SingleViewBackpackViewFramedarkIconTexture {
}
NormalTexture = Baganator_SingleViewBackpackViewFramedarkNormalTexture {
}
IconOverlay2 = Texture {
}
IconBorder = Texture {
}
__MSQ_Addon = "Baganator"
__MSQ_Normal_Skin = <table> {
}
__MSQ_Normal = Baganator_SingleViewBackpackViewFramedarkNormalTexture {
}
__MSQ_Empty_Type = true
__MSQ_Shape = "Blizzard"
ItemContextOverlay = Texture {
}
__MSQ_Skin = <table> {
}
__MSQ_Normal_Hook = true
__MSQ_oType = "Button"
__MSQ_IsItem = true
Stock = Baganator_SingleViewBackpackViewFramedarkStock {
}
SlotBackground = Texture {
}
}
(*temporary) = nil
(*temporary) = Button {
IconOverlay = Texture {
}
__MSQ_bType = "Item"
showMatchHighlight = true
masqueApplied = true
icon = Baganator_SingleViewBackpackViewFramedarkIconTexture {
}
__MSQ_Scale = 1
HighlightTexture = Texture {
}
__MSQ_Enabled = true
__Regions = <table> {
}
PushedTexture = Texture {
}
Count = Baganator_SingleViewBackpackViewFramedarkCount {
}
searchOverlay = Baganator_SingleViewBackpackViewFramedarkSearchOverlay {
}
__MSQ_Icon = Baganator_SingleViewBackpackViewFramedarkIconTexture {
}
NormalTexture = Baganator_SingleViewBackpackViewFramedarkNormalTexture {
}
IconOverlay2 = Texture {
}
IconBorder = Texture {
}
__MSQ_Addon = "Baganator"
__MSQ_Normal_Skin = <table> {
}
__MSQ_Normal = Baganator_SingleViewBackpackViewFramedarkNormalTexture {
}
__MSQ_Empty_Type = true
__MSQ_Shape = "Blizzard"
ItemContextOverlay = Texture {
}
__MSQ_Skin = <table> {
}
__MSQ_Normal_Hook = true
__MSQ_oType = "Button"
__MSQ_IsItem = true
Stock = Baganator_SingleViewBackpackViewFramedarkStock {
}
SlotBackground = Texture {
}
}
(*temporary) = "attempt to call global 'GetItemButtonIconTexture' (a nil value)"
This is a bug with Blizzard's code. Until they fix it or I get a work-around added to Masque, you can change line 76 of Masque\Core\Button.lua from:
local Region = Button:GetItemButtonIconTexture()
To:
--local Region = Button:GetItemButtonIconTexture()
local Region = Button.Icon or Button.icon or _G[Button:GetName().."IconTexture"]