DNumSlider.GetValue

From GMod Wiki

Jump to: navigation, search
   local NumSlider = vgui.Create( "DNumSlider" )
   NumSlider:SetSize( 150, 50 ) 
   NumSlider:SetText( "Slider" )
   NumSlider:SetMin( 0 )
   NumSlider:SetMax( 256 )
   NumSlider:SetDecimals( 0 )
   local myButton=vgui.Create("DButton",DermaPanel)
   myButton:SetText("Get Slider Value")
   myButton:SetPos( 55, 285 )
   function myButton:DoClick()
       local Value=NumSlider:GetValue()
       msg(Value)
   end
Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox