Tried to set a font today with SetFont(), didn't work
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. https://github.com/varren/ViragDevTool/blob/6c26ac87f3e4b75c66a58d1c647cac4953b98f82/ViragDevTool.lua#L1021-L1044
Table parsing part:
https://github.com/varren/ViragDevTool/blob/6c26ac87f3e4b75c66a58d1c647cac4953b98f82/ViragDevTool.lua#L915-L924
Where FromStrToObject is https://github.com/varren/ViragDevTool/blob/6c26ac87f3e4b75c66a58d1c647cac4953b98f82/ViragDevTool.lua#L359-L372
Thanks for reply. I tried to pass only "Fonts\FRIZQT__.TTF", 17 into the arguments field, didn't work either. So the problem is not only to related to commas being inside strings. I am not really sure what exactly is the problem tho.
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