Garry's Mod Wiki

Revision Difference

Structures/TextData#517023

<cat>struct</cat> <structure> <description>Used for <page>draw.Text</page>.</description> <fields>{{StructureField|string|text|Text to be drawn.</fields>⤶ <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"⤶ </fields>⤶ </structure> ⤶ {{StructureField|string|font|The font to draw with. List of default fonts can be found [here](/gmod/Default_Fonts).|"DermaDefault"}}{{StructureField|table|pos|This holds the X and Y coordinates. Key value 1 is x, key value 2 is y.}}{{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}}⤶ ⤶ <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}}⤶ }}