DTextEntry/SetNumeric

From Garry's Mod
Revision as of 17:58, 21 June 2016 by Shendow (Talk | contribs)
Jump to: navigation, search
 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