Tried to set a font today with SetFont(), didn't work
bullsei opened this issue ยท 3 comments
Hi, i tried to use this addon to call a function with arguments today. I typed "Fonts\FRIZQT__.TTF", 11, "OUTLINE, MONOCHROME" into the arguments field and pressed enter. Since this Function doesn't give any feedback if the font was successfully changed i called GetFont() afterwards. It showed me that the SetFont() wasn't successful. Calling the same function per /run with the same arguments worked. I guess it has something todo with the handling of the \ character.
Hi, i had a little use for this feature so it is in pretty early state and can parse only comma separated values. One exception is table that should be specified as t=TableName. Tablename can be dot separateed.
t=Frame, 12, a12 => someFunction(_G.Frame (table) , 12 (number), a12 (string))
t=Frame.Frame2.Frame3 => someFunction(_G.Frame.Frame2.Frame3 (table))
So you use quotes and my parser will just parse them as is and pass string with quotes down the function and you also have comma inside a string so my parser will just create 4 args instead of 3. I'll try to fix this as soon as i can. Thank you for reporting.
And right now you can hack it yourself if you want to
Here is relative code.
Lines 1021 to 1044 in 6c26ac8
Table
parsing part:
Lines 915 to 924 in 6c26ac8
Where FromStrToObject is
Lines 359 to 372 in 6c26ac8
don't use quotes, try Fonts\FRIZQT__.TTF, 17 i don't have access to wow/windows pc right now, will fix this as soon as i can