Module controls.progressbar
Progressbar module
Functions
Progressbar:SetColor (c) | Sets the new color |
Progressbar:SetMinMax ([min=0[, max=1]]) | Sets the minimum and maximum value of the progress bar |
Progressbar:SetValue (v[, setcaption=false]) | Sets the value of the progress bar |
Progressbar:SetCaption (str) | Sets the caption |
Tables
Progressbar | Progressbar fields. |
Functions
- Progressbar:SetColor (c)
-
Sets the new color
Parameters:
- c {r,g,b,a} color table
- Progressbar:SetMinMax ([min=0[, max=1]])
-
Sets the minimum and maximum value of the progress bar
Parameters:
- min int minimum value (default 0)
- max int maximum value (why is 1 the default?) (default 1)
- Progressbar:SetValue (v[, setcaption=false])
-
Sets the value of the progress bar
Parameters:
- v int value of the progress abr
- setcaption bool whether the caption should be set as well (default false)
- Progressbar:SetCaption (str)
-
Sets the caption
Parameters:
- str string caption to be set
Tables
- Progressbar
-
Progressbar fields.
Inherits from Control.
Fields:
- min int minimum value of the Progressbar (default 0)
- max int maximum value of the Progressbar (default 100)
- value int value of the Progressbar (default 100)
- caption string text to be displayed (default "")
- color {r,g,b,a} specifies the color of the bar (default: {0,0,1,1})
- backgroundColor {r,g,b,a} specifies the background color (default: {1,1,1,1})
- OnChange {func1,fun2,...} function listeners for value change (default {})
See also: