Garry's Mod Wiki

Revision Difference

Structures/TextData#517084

<cat>struct</cat> <structure> <description>Used for <page>draw.Text</page>.</description> <fields> <item name="text" type="string">Text to be drawn.</item> {{StructureField|string|font|The font to draw with. List of default fonts can be found [here](/gmod/Default_Fonts).|"DermaDefault"⤶ <item name="font" type="string" default="\u0022DermaDefault\u0022">The font to draw with. List of default fonts can be found [here](/gmod/Default_Fonts).</item>⤶ <item name="pos" type="table">This holds the X and Y coordinates. Key value 1 is x, key value 2 is y.</item>⤶ <item name="xalign" type="number" default="TEXT_ALIGN_LEFT">The alignment of the X position. See <page>TEXT_ALIGN</page></item>⤶ <item name="yalign" type="number" default="TEXT_ALIGN_TOP">The alignment of the Y position. See <page>TEXT_ALIGN</page></item>⤶ <item name="color" type="table" default="color_white">The text color</item>⤶ </fields> </structure> ⤶ <item name="pos" type="table">This holds the X and Y coordinates. Key value 1 is x, key value 2 is y.</item>⤶ {{StructureField|number|xalign|The alignment of the X position. See <page>TEXT_ALIGN</page>|TEXT_ALIGN_LEFT}}{{StructureField|number|yalign|The alignment of the Y position. See <page>TEXT_ALIGN</page>|TEXT_ALIGN_TOP}}{{StructureField|table|color|The text color|color_white}}⤶ }}