Skip to main content

ProgressBar

ProgressBar

Usage​

Client/Index.lua
local progressBar = EGUI.ProgressBar(10, 10, 100, 100)

Constructor Parameters​

TypeNameDefault
numberposX
numberposY
numberwidth
numberheight
tableparentnil

Functions​

Inherited Element Functions
ReturnsNameDescription
Base ElementSetVisibleSets element visibility
booleanIsVisibleReturns if element is visible
Base ElementSetAlphaSets element alpha
numberGetAlphaReturns element alpha
Base ElementSetPositionSets element position
number, numberGetPositionReturns element position
Base ElementSetSizeSets element size
number, numberGetSizeReturns element size
Base ElementSetAlignmentSets element alignment
stringGetAlignmentGets element alignment
SubscribeSubscribes to an event
UnsubscribeUnsubscribes from a event
ReturnsNameDescription
ProgressBarSetValueSets value of the progress bar
numberGetValueGets value of the progress bar

SetValue​

Sets value of the progress bar

Returns the ProgressBar (self)

progressBar:SetValue(50)
TypeParameterDefault ValueDescription
numbervalueThe new value

GetValue​

Gets value of the progress bar

Returns a number

local value = progressBar:GetValue()