DProgressBar.LabelAsPecentage

From GMod Wiki

Jump to: navigation, search
Function
Syntax DProgressBar:LabelAsPecentage( )
Description:
Formats the label text as a percentage.
Returns: nil
Realm: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=DProgressBar.LabelAsPecentage]DProgressBar.LabelAsPecentage [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 myProgressBar = vgui.Create( "DProgressBar",DFrame)
myProgressBar:SetSize( 200, 40 )
myProgressBar:SetPos( 210, 120 )
myProgressBar:SetMin( 0 )
myProgressBar:SetMax(16)
myProgressBar:SetValue(12)
ProgressBar1:LabelAsPecentage()
 
Output20108426006295_capture.png
Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox