DProgressBar

From GMod Wiki

Revision as of 14:13, 12 October 2010 by Sandros (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Function
Syntax DProgressBar( )
Description:
Dprogressbar is not by default, you need a script to make it work
Returns: nil
Realm: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=DProgressBar]DProgressBar [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]




You need this script Progressbar

Examples

DescriptionCreates a progress bar
Used onNewerClient.png
Code
 
local  DFrame = vgui.Create('DFrame')
DFrame:SetSize(200, 80)
DFrame:Center()
DFrame:SetTitle('My First Progress Bar')
DFrame:SetSizable(true)
DFrame:SetDeleteOnClose(false)
DFrame:SetBackgroundBlur(false)
DFrame:MakePopup()
 
local myProgressBar = vgui.Create( "DProgressBar",DFrame)
myProgressBar:SetSize( 150, 40 )
myProgressBar:SetPos( 25, 25 )
myProgressBar:SetMin( 0 )
myProgressBar:SetMax(16)
myProgressBar:SetValue(12)
 
Output1431006495039_dprogressbar.png


Methods

NewerClient.png DProgressBar.SetPos
NewerClient.png DProgressBar.SetSize
NewerClient.png DProgressBar.SetMin
NewerClient.png DProgressBar.SetMax
NewerClient.png DProgressBar.SetValue
NewerClient.png DProgressBar.SetColor
NewerClient.png DProgressBar.GetValue
NewerClient.png DProgressBar.LabelAsPecentage

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox