Hi all
I am getting the following error:
Lua Code:
2x NewbDevBox/NewbDevBox.lua:517: attempt to call global 'InterfaceOptionsFrame_OpenToCategory' (a nil value)
[string "@NewbDevBox/NewbDevBox.lua"]:517: in main chunk
It is showing a nil value for my frame.
Here is my frame:
Lua Code:
local NewbDevBoxInterfaceFrame = CreateFrame("Frame", "NewbDevBoxInterfaceFrame", UIParent, "BackdropTemplate")
NewbDevBoxInterfaceFrame.name = "Newb Dev Box"
NewbDevBoxInterfaceFrame:SetBackdrop(
{
bgFile = "Interface\\Buttons\\WHITE8X8",
insets = {
left = NumberList.insetSize,
right = NumberList.insetSize,
top = NumberList.insetSize,
bottom = NumberList.insetSize
},
tileSize = nil,
tile = false,
edgeFile = "Interface\\Tooltips\\UI-Tooltip-Border",
edgeSize = NumberList.edgeSize
}
)
NewbDevBoxInterfaceFrame:SetBackdropColor(unpack(TextDimensionList.colourBackdrop))
NewbDevBoxInterfaceFrame:SetBackdropBorderColor(unpack(TextDimensionList.colourBorder))
NewbDevBoxInterfaceFrame:SetScript(
"OnEvent",
function(self, event, ...)
if event == "PLAYER_LOGIN" then -- fires when a player logs in or reloads
print(TextStringList.addonLoaded) -- Load Message
initialiseLists()
setUpNewbDevBoxSortedTable()
checkOtherAddonsEnabled()
setCheckBoxesAndButtonFrameMetrics()
buttonFrameButtonLayout()
end
end
)
NewbDevBoxInterfaceFrame:RegisterEvent("PLAYER_LOGIN") -- fires when a player logs in or reloads
NewbDevBoxInterfaceFrame:RegisterEvent("ADDON_LOADED") -- fires when an addon is loaded
InterfaceOptions_AddCategory(NewbDevBoxInterfaceFrame)
Is there a new way to name frames, or has the
InterfaceOptions_AddCategory changed?