DTextEntry/SetNumeric

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
(Created page with "{{PanelFunc |Description=Enables or disables the entry numeric-only characters. (1234567890.-) }} {{Arg |type=boolean |name=numericOnly |desc=Whether to make the entry numeric...")
 
Line 1: Line 1:
 
{{PanelFunc
 
{{PanelFunc
|Description=Enables or disables the entry numeric-only characters. (1234567890.-)
+
|Description=Enables or disables the numeric-only characters in the entry. (1234567890.-)
 
}}
 
}}
 
{{Arg
 
{{Arg

Revision as of 17:51, 21 June 2016

 DTextEntry:SetNumeric( )

Contents

DescriptionPanelFunc

Enables or disables the numeric-only characters in the entry. (1234567890.-)

Arguments

boolean numericOnly

Whether to make the entry numeric only.

Examples

Example

local TextEntry = vgui.Create( "DTextEntry" )
TextEntry:SetNumeric(true)

Output:

Only allow numeric characters.
Personal tools
Navigation