Revision Difference
DTextEntry:SetNumeric#515152
<function name="SetNumeric" parent="DTextEntry" type="panelfunc">⤶
<ispanel>yes</ispanel>⤶
<description>⤶
Sets whether or not to decline non-numeric characters as input.⤶
⤶
Numeric characters are 1234567890.-⤶
</description>⤶
<realm>Client</realm>⤶
<args>⤶
<arg name="numericOnly" type="boolean">Whether to accept only numeric characters.</arg>⤶
</args>⤶
</function>⤶
⤶
<example>⤶
<code>⤶
local TextEntry = vgui.Create( "DTextEntry" )⤶
TextEntry:SetNumeric(true)⤶
</code>⤶
<output>Only allow numeric characters.</output>⤶
⤶
</example>