draw.SimpleTextOutlined

From GMod Wiki

Jump to: navigation, search
Function
Syntax draw.SimpleTextOutlined( String Text, String Font, Float X, Float Y, Color Color, Float Xalign, Float Yalign, Float Outline, Color OutlineColour )
Where is this used?
Description:
Draws a simple text with a added outline. The number is the "fatness" of the outline.
Returns: nil
Part of Library: Draw
Realm: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Draw.SimpleTextOutlined]Draw.SimpleTextOutlined [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionPrints an outline of text.
Used onNewerClient.png
Code
function GM:HUDPaint()
   draw.SimpleTextOutlined( "TEST", "ScoreboardText", ScrW()/2, ScrH()/2, Color(0,0,0,255), TEXT_ALIGN_LEFT, TEXT_ALIGN_LEFT, 5, Color(255,255,255,255) )
end
Output"TEST" is printed in the center of the screen.


Additional Notes

SHARED | 0000000000000000 | 00000000000000000 | TEXT_ALIGN_LEFT
SHARED | 0000000000000001 | 00000000000000001 | TEXT_ALIGN_CENTER
SHARED | 0000000000000002 | 00000000000000010 | TEXT_ALIGN_RIGHT
SHARED | 0000000000000003 | 00000000000000011 | TEXT_ALIGN_TOP
SHARED | 0000000000000004 | 00000000000000100 | TEXT_ALIGN_BOTTOM

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox