ProgressBar
Usage​
Client/Index.lua
local progressBar = EGUI.ProgressBar(10, 10, 100, 100)
Constructor Parameters​
Type | Name | Default |
---|---|---|
number | posX | |
number | posY | |
number | width | |
number | height | |
table | parent | nil |
Functions​
Inherited Element Functions
Returns | Name | Description |
---|---|---|
Base Element | SetVisible | Sets element visibility |
boolean | IsVisible | Returns if element is visible |
Base Element | SetAlpha | Sets element alpha |
number | GetAlpha | Returns element alpha |
Base Element | SetPosition | Sets element position |
number , number | GetPosition | Returns element position |
Base Element | SetSize | Sets element size |
number , number | GetSize | Returns element size |
Base Element | SetAlignment | Sets element alignment |
string | GetAlignment | Gets element alignment |
Subscribe | Subscribes to an event | |
Unsubscribe | Unsubscribes from a event |
Returns | Name | Description |
---|---|---|
ProgressBar | SetValue | Sets value of the progress bar |
number | GetValue | Gets value of the progress bar |
SetValue​
Sets value of the progress bar
Returns the
ProgressBar
(self)
progressBar:SetValue(50)
Type | Parameter | Default Value | Description |
---|---|---|---|
number | value | The new value |
GetValue​
Gets value of the progress bar
Returns a
number
local value = progressBar:GetValue()