Garry's Mod Wiki

DNumberScratch

Description

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

Parent

Derives from DImageButton.

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:

Page Links


Special Pages


Wikis

?

Render Time: 36ms

DB GetPage 3
Generate Html 1
SaveChanges (1) 9
Render Body 0
Render Sidebar 21