DTextEntry/SetFont

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
(testing)
(Undo revision 25877 by NeatNit (talk) - intended to be undone)
 
Line 1: Line 1:
{{User:NeatNit/Template/InheritedFunc|DLabel}}
+
{{PanelFunc
 +
|Description=Changes the font of the DTextEntry.
 +
}}
 +
{{Arg
 +
|type=string
 +
|name=font
 +
|desc=The name of the font to be changed to.
 +
}}
 +
{{Example
 +
|Description=Restores the original font the the DTextEntry.
 +
|Code=local textentry = vgui.Create("DTextEntry")
 +
textentry:SetFont("DermaDefault")
 +
}}

Latest revision as of 06:41, 13 November 2016

 DTextEntry:SetFont( )

Contents

DescriptionPanelFunc

Changes the font of the DTextEntry.

Arguments

string font

The name of the font to be changed to.

Examples

Example

Restores the original font the the DTextEntry.

local textentry = vgui.Create("DTextEntry")
textentry:SetFont("DermaDefault")


Personal tools
Navigation