DTextEntry.DrawTextEntryText

From GMod Wiki

Jump to: navigation, search
Function
Syntax DTextEntry:DrawTextEntryText( Color Text Color, Color Highlight Color, Color Cursor Color )
Where is this used?
Description:
A draw function for drawing the TextEntry's text, so you don't have to use nasty draw function workarounds.
Returns: nil
Part of Library: DTextEntry
Realm: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=DTextEntry.DrawTextEntryText]DTextEntry.DrawTextEntryText [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionDraws white text on a black background.
Used onNewerClient.png
Code
TextEntry.Paint = function(self)
	surface.SetDrawColor(0, 0, 0)
	surface.DrawRect(0, 0, self:GetWide(), self:GetTall())
	self:DrawTextEntryText(Color(255, 255, 255), Color(30, 130, 255), Color(255, 255, 255))
end
 
OutputN/A
Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox