-
Posted by sunxking on Wed, 16 Mar 2011 11:27:51
Help, help me! I need to create FontString in lua, xml string maybe like this:
<FontString name="TestText" inherits="GameFontNormal" justifyH="LEFT" nonspacewrap="true" maxLines="10" bytes="20">
How to set maxlines and bytes in lua code? thank you!
-
Posted by jnwhiteh on Wed, 16 Mar 2011 11:53:14
You want CreateFontString, but there is currently no way to set the
maxLines
orbytes
attributes in Lua. Why must you absolutely do this in Lua? -
Posted by sunxking on Wed, 16 Mar 2011 12:15:43
Thank you! I want write my ui by lua code only(no xml string) at first. I think i can't reach the goal now, some xml string is not support by lua ?...
-
Posted by jnwhiteh on Wed, 16 Mar 2011 12:19:31
There are a small number of XML attributes that aren't supported in Lua.
-
Posted by sunxking on Wed, 16 Mar 2011 12:21:32
Thank you again, I'll use the fucking xml!!!
-
Posted by jnwhiteh on Wed, 16 Mar 2011 19:23:25
Umm.. no need to be overly dramatic about it. Make a simple XML template and then use it.. like its designed to be.