TextData Structure
From Garry's Mod
Revision as of 07:34, 12 November 2012 by LuminousSilver (Talk | contribs)
Used for draw.Text.
Type | Name | Description |
---|---|---|
string | text |
Text to be drawn. |
string | font |
The font to draw with. |
number | x |
The X Coordinate. |
number | y |
The Y Coordinate. |
number | xalign |
The Alignment of the X position. |
number | yalign |
The Alignment of the Y position. |
Color | color |
The text color |
Additional Notes
- Default font is DermaDefault.
- Default text color is Color(255,255,255,255).
- Default xAlign is TEXT_ALIGN_LEFT
- Default yAlign is TEXT_ALIGN_TOP
- Any other fields default to 0.
- For a list of fonts that still work with the update look here.
- xalign and yalign must be TEXT_ALIGN_* enums.