DTextEntry/SetNumeric

From Garry's Mod
Revision as of 17:50, 21 June 2016 by Shendow (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
 DTextEntry:SetNumeric( )

Contents

DescriptionPanelFunc

Enables or disables the entry numeric-only characters. (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