Thread Tools Display Modes
10-27-22, 09:01 AM   #1
Uitat
A Chromatic Dragonspawn
 
Uitat's Avatar
AddOn Author - Click to view addons
Join Date: May 2011
Posts: 162
CreateFontString issue

beating my head against the door on this one.

if anyone has come across something like this and has solved the issue i would be glad to have a hand

Lua Code:
  1. derArtifactBar.Text=derArtifactBar:CreateFontString(nil, "HIGH", "GameFontNormal")

is giving me 3 errors 2 are arbitrary and just telling me to look at the file, however the last is what got my attention

1x bad argument #3 to '?' (Usage: local line = self:CreateFontString([name, drawLayer, templateName]))
[string "=[C]"]: in function `CreateFontString'
[string "@Interface/AddOns/_Deranjata/modules/xpbar/artxp.lua"]:20: in main chunk

Locals:
(*temporary) = "bad argument #3 to '?' (Usage: local line = self:CreateFontString([name, drawLayer, templateName]))"
__________________
  Reply With Quote
10-27-22, 09:29 AM   #2
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,932
Is High a valid value still ?

Check with ARTWORK like the example on this page : https://wowpedia.fandom.com/wiki/UIOBJECT_FontString
__________________


Characters:
Gwynedda - 70 - Demon Warlock
Galaviel - 65 - Resto Druid
Gamaliel - 61 - Disc Priest
Gwynytha - 60 - Survival Hunter
Lienae - 60 - Resto Shaman
Plus several others below level 60

Info Panel IDs : http://www.wowinterface.com/forums/s...818#post136818
  Reply With Quote
10-27-22, 09:45 AM   #3
Fizzlemizz
I did that?
 
Fizzlemizz's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 1,877
Valid DrawLayers

HIGH is a frame strata.
__________________
Fizzlemizz
Maintainer of Discord Unit Frames and Discord Art.
Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus.
  Reply With Quote
10-27-22, 09:45 AM   #4
Uitat
A Chromatic Dragonspawn
 
Uitat's Avatar
AddOn Author - Click to view addons
Join Date: May 2011
Posts: 162
Originally Posted by Xrystal View Post
Is High a valid value still ?

Check with ARTWORK like the example on this page : https://wowpedia.fandom.com/wiki/UIOBJECT_FontString
great catch there
that fixed it i put it on the artwork layer

Lua Code:
  1. derArtifactBar.Text=derArtifactBar:CreateFontString(nil, "ARTWORK", "GameFontNormal")
__________________
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » CreateFontString issue


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