DTextEntry/SetNumeric

From Garry's Mod
Jump to: navigation, search
 DTextEntry:SetNumeric( )

Contents

DescriptionPanelFunc

Sets whether or not to decline non-numeric characters as input.

Numeric characters are 1234567890.-

Arguments

boolean numericOnly

Whether to accept only numeric characters.

Examples

Example

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

Output:

Only allow numeric characters.
Personal tools
Navigation