WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Lua/XML Help (https://www.wowinterface.com/forums/forumdisplay.php?f=16)
-   -   CreateFontString issue (https://www.wowinterface.com/forums/showthread.php?t=59282)

Uitat 10-27-22 09:01 AM

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]))"

Xrystal 10-27-22 09:29 AM

Is High a valid value still ?

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

Fizzlemizz 10-27-22 09:45 AM

Valid DrawLayers

HIGH is a frame strata.

Uitat 10-27-22 09:45 AM

Quote:

Originally Posted by Xrystal (Post 341305)
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")


All times are GMT -6. The time now is 08:05 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI