Category:DSlider

From Garry's Mod
Jump to: navigation, search

Contents

DescriptionPanelPage

Creates a slider that can be moved along the X and/or Y axis

Inherited Functions

Inherits the following functions from DPanel and its parents up to 3 levels deep:


Examples

Example

Make a slider at 50, 50 that can move 100 pixels on the X axis.

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 )


Personal tools
Navigation