Garry's Mod Wiki

Revision Difference

DSlider#550577

<panel> <parent>Panel</parent> <realm>Client and Menu</realm>⤶ <description>Creates a slider that can be moved along the X and/or Y axis</description> </panel> <example> <description>Make a slider at 50, 50 that can move 100 pixels on the X axis.</description> <code> local frame = vgui.Create( "DFrame" ) frame:SetSize( 500, 300 ) frame:Center() frame:MakePopup() local Slider = vgui.Create( "DSlider", frame ) Slider:SetPos( 50, 50 ) Slider:SetSize( 100, 20 ) </code> </example>