Structures/TextData

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
m
m
Line 1: Line 1:
 
{{Structure
 
{{Structure
 
|Description=Used for {{LibraryFunction|draw|Text}}.
 
|Description=Used for {{LibraryFunction|draw|Text}}.
|Fields=
+
|Fields={{StructureField|string|text|Text to be drawn.}}{{StructureField|string|font|The font to draw with. List of fonts can be found [[Talk:Libraries/surface/SetFont|here]].|"DermaDefault"}}{{StructureField|number|x|The X coordinate.}}{{StructureField|number|y|The Y coordinate.}}{{StructureField|number|xalign|The alignment of the X position. See {{EnumLink|TEXT}}
{{StructureField|string|text|Text to be drawn.}}
+
'''Default:''' TEXT_ALIGN_LEFT
{{StructureField|string|font|The font to draw with. List of fonts can be found [[Talk:Libraries/surface/SetFont|here]].
+
}}{{StructureField|number|yalign|The alignment of the Y position. See {{EnumLink|TEXT}}
'''Default:''' DermaDefault}}
+
'''Default:''' TEXT_ALIGN_TOP
{{StructureField|number|x|The X coordinate.}}
+
}}{{StructureField|number|color|The text color
{{StructureField|number|y|The Y coordinate.}}
+
'''Default:''' color_white
{{StructureField|number|xalign|The alignment of the X position. See {{EnumLink|TEXT}}
+
}}
'''Default:''' TEXT_ALIGN_LEFT}}
+
{{StructureField|number|yalign|The alignment of the Y position. See {{EnumLink|TEXT}}
+
'''Default:''' TEXT_ALIGN_TOP}}
+
{{StructureField|Color|color|The text color
+
'''Default:''' color_white}}
+
 
}}
 
}}

Revision as of 09:46, 21 October 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 Template:EnumLink Default: TEXT_ALIGN_LEFT

number yalign

The alignment of the Y position. See Template:EnumLink Default: TEXT_ALIGN_TOP

number color

The text color Default: color_white

Personal tools
Navigation