Category:DNumberScratch

From Garry's Mod
Jump to: navigation, search

Contents

DescriptionPanelPage

Choose a number from a number line, with zooming for precision. Zoom in by moving your mouse forward and moving back does the opposite. Looks like a blue circle until you click and hold on it

Inherited Functions

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


Examples

Example

Create the Number Scratch with the minimum number being 0 and the max being 20

local frame = vgui.Create( "DFrame" )
frame:SetSize( 300, 250 )
frame:Center()
frame:MakePopup()

local Scratch = vgui.Create( "DNumberScratch", frame )
Scratch:SetPos( 50, 50 )
Scratch:SetValue( 5 )
Scratch:SetMin( 0 )
Scratch:SetMax( 20 )

Output:

DNumberScratch.gif
Personal tools
Navigation