DTextEntry/SetNumeric

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

Revision as of 17:58, 21 June 2016

 DTextEntry:SetNumeric( )

Contents

DescriptionPanelFunc

Enables or disables the input of numeric-only characters in the DTextEntry. (1234567890.-)

Arguments

boolean numericOnly

Whether to make the DTextEntry accept numeric characters only.

Examples

Example

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

Output:

Only allow numeric characters.
Personal tools
Navigation