UI.Progress
From GiderosMobile
Available since: Gideros 2023.1
Class: UI
Description
Creates Progress widgets. The widget can be a CircularProgress, a ProgressBar or a ProgressBeads.
UI.CircularProgress.new()
UI.ProgressBar.new(textFormat)
UI.ProgressBeads.new()
Parameters
textFormat: (string) the Button widget text format
Examples
CircularProgress
local gui = UI.CircularProgress.new()
gui:setDimensions(64, 64)
gui:setColor(0xaa0000)
gui:setPosition(50, 50)
gui:setProgress(0.3)
gui:setIndeterminate(true)
stage:addChild(gui)
ProgressBar
local gui = UI.ProgressBar.new("Done: %d%%")
gui:setDimensions(128, 64)
gui:setColor(0xaa0000)
gui:setPosition(50, 50)
gui:setProgress(0.3)
stage:addChild(gui)
ProgressBeads
gui:setPosition(50, 50)
gui:setIndeterminate(4)
stage:addChild(gui)