UI.Progress

From GiderosMobile
Revision as of 00:04, 16 October 2023 by MoKaLux (talk | contribs) (Created page with "__NOTOC__ '''Available since:''' Gideros 2023.1<br/> '''Class:''' UI<br/> === Description === Creates Progress widgets. The widget can be a '''CircularProgress''', a '''P...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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)