Walkerbo |
01-21-23 05:21 PM |
SetFont error
Hi all
I am the author of NewbDevBox and have an issue that has reared its ugly head with the launch of Ulduar in Wrath classic.
I keep getting the following error;
Lua Code:
13x Interface/AddOns/NewbDevBox/NewbDevBox.lua:110: Usage: self:SetFont(fontFile, height, flags) [string "=[C]"]: in function `SetFont' [string "@Interface/AddOns/NewbDevBox/NewbDevBox.lua"]:110: in main chunk Locals: (*temporary) = NewbDevBoxTitle { 0 = <userdata> } (*temporary) = "NewbDevBox\Files\OCRAStd.otf" (*temporary) = 32
But when I check my code where I define my font object I can not see the error.
Here is my font definition;
Lua Code:
NewbDevBoxInterfaceFrame.TitleBox = CreateFrame("Frame", "NewbDevBoxInterfaceFrameTitleBox", NewbDevBoxInterfaceFrame) NewbDevBoxInterfaceFrame.TitleBox:SetSize(NumberList.titleFrameWidth, NumberList.titleFrameHeight) NewbDevBoxInterfaceFrame.TitleBox:SetPoint("TOP", NewbDevBoxInterfaceFrame, 0, NumberList.titleFrameGap) NewbDevBoxInterfaceFrame.TitleBox.Text = NewbDevBoxInterfaceFrame.TitleBox:CreateFontString("NewbDevBoxInterfaceFrameTitleBoxText") NewbDevBoxInterfaceFrame.TitleBox.Text:SetAllPoints(NewbDevBoxInterfaceFrameTitleBox) NewbDevBoxInterfaceFrame.TitleBox.Text:SetFontObject(NewbDevBoxTitle) NewbDevBoxInterfaceFrame.TitleBox.Text:SetText(TextStringList.interfaceTitle)
I am really stumped here, after 2 days of trying to fix this bug I am still not close to understanding where or what my error is.
Here is a link to my code on paste bin.
Can anyone help me in identifying my bug and how to fix it?
Yes, I am aware of the irony that the name of the addon is NewbDevBox, but I named it that way because I am the newb. :)
|