Structures/TextData

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
m
Line 6: Line 6:
 
{{StructureField|number|x|The X coordinate.}}
 
{{StructureField|number|x|The X coordinate.}}
 
{{StructureField|number|y|The Y coordinate.}}
 
{{StructureField|number|y|The Y coordinate.}}
{{StructureField|number|xalign|The alignment of the X position. See {{EnumLink|TEXT}}|TEXT_ALIGN_LEFT}}
+
{{StructureField|number|xalign|The alignment of the X position. See {{Enum|TEXT}}|TEXT_ALIGN_LEFT}}
{{StructureField|number|yalign|The alignment of the Y position. See {{EnumLink|TEXT}} |TEXT_ALIGN_TOP}}
+
{{StructureField|number|yalign|The alignment of the Y position. See {{Enum|TEXT}}|TEXT_ALIGN_TOP}}
 
{{StructureField|number|color|The text color|color_white}}
 
{{StructureField|number|color|The text color|color_white}}
 
}}
 
}}

Revision as of 18:00, 4 December 2013

Used for draw.Text.



Type Name Description
string text

Text to be drawn.

string font

The font to draw with. List of fonts can be found here.

Default: "DermaDefault"

number x

The X coordinate.

number y

The Y coordinate.

number xalign

The alignment of the X position. See TEXT_ Enums

Default: TEXT_ALIGN_LEFT

number yalign

The alignment of the Y position. See TEXT_ Enums

Default: TEXT_ALIGN_TOP

number color

The text color

Default: color_white

Personal tools
Navigation