DNumSlider.SetValue

From GMod Wiki

Jump to: navigation, search
Function
Syntax DNumSlider.SetValue( Number Value )
Description:
Sets the value of a DNumSlider object.
Returns: nil
In Object: DNumSlider
Realm: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=DNumSlider.SetValue]DNumSlider.SetValue [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionMakes a slider with a min of 2, a max of 10, sitting at 5.
Used onNewerClient.png
Code
local NumSlider = vgui.Create( "DNumSlider", Frame )
NumSlider:SetPos( 25, 100 )
NumSlider:SetWide( 150 )
NumSlider:SetMinMax( 2, 10 )
NumSlider:SetValue( 5 )
OutputSlider object.
Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox