Structures/TextData

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
m (modify note)
Line 18: Line 18:
 
* Any other fields default to 0.
 
* Any other fields default to 0.
 
* For a list of fonts that still work with the update look [[Talk:Libraries/surface/SetFont|here]].
 
* For a list of fonts that still work with the update look [[Talk:Libraries/surface/SetFont|here]].
* xAlign must be [[Enums/TEXT|TEXT_ALIGN_*]] enums.
+
* xalign and yalign must be [[Enums/TEXT|TEXT_ALIGN_*]] enums.

Revision as of 07:34, 12 November 2012

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.
Personal tools
Navigation