Thread Tools Display Modes
01-21-23, 05:21 PM   #1
Walkerbo
A Cobalt Mageweaver
 
Walkerbo's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2010
Posts: 233
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:
  1. 13x Interface/AddOns/NewbDevBox/NewbDevBox.lua:110: Usage: self:SetFont(fontFile, height, flags)
  2. [string "=[C]"]: in function `SetFont'
  3. [string "@Interface/AddOns/NewbDevBox/NewbDevBox.lua"]:110: in main chunk
  4.  
  5. Locals:
  6. (*temporary) = NewbDevBoxTitle {
  7. 0 = <userdata>
  8. }
  9. (*temporary) = "NewbDevBox\Files\OCRAStd.otf"
  10. (*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:
  1. NewbDevBoxInterfaceFrame.TitleBox = CreateFrame("Frame", "NewbDevBoxInterfaceFrameTitleBox", NewbDevBoxInterfaceFrame)
  2. NewbDevBoxInterfaceFrame.TitleBox:SetSize(NumberList.titleFrameWidth, NumberList.titleFrameHeight)
  3. NewbDevBoxInterfaceFrame.TitleBox:SetPoint("TOP", NewbDevBoxInterfaceFrame, 0, NumberList.titleFrameGap)
  4. NewbDevBoxInterfaceFrame.TitleBox.Text =
  5.     NewbDevBoxInterfaceFrame.TitleBox:CreateFontString("NewbDevBoxInterfaceFrameTitleBoxText")
  6. NewbDevBoxInterfaceFrame.TitleBox.Text:SetAllPoints(NewbDevBoxInterfaceFrameTitleBox)
  7. NewbDevBoxInterfaceFrame.TitleBox.Text:SetFontObject(NewbDevBoxTitle)
  8. 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.
__________________
"As someone once told me, frames are just special types of tables, and tables are special types of pointers."
Fizzlemizz
  Reply With Quote
01-21-23, 06:58 PM   #2
Walkerbo
A Cobalt Mageweaver
 
Walkerbo's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2010
Posts: 233
Hi all

I made a bone head error and was looking at the wrong file.

So please ignore this thread.
__________________
"As someone once told me, frames are just special types of tables, and tables are special types of pointers."
Fizzlemizz
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » SetFont error


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off