ProgressImage||doc136511

September 20, 2022

Format

ProgressBar.ProgressImage

Describe

This attribute determines the picture path of progress when the progress bar is displayed. The format of path is: "asset/" + absolute path in image editor resource management.

Code Example

image.png

-- create layout window
local APIRootWindow = UI:CreateGUIWindow("API")

--Set the window to the root node of the UI
APIRootWindow.Parent = UI.Root

--Get the ProgressBar control for testing according to the name
local progress = APIRootWindow.APIProgressBar

--Set the progress fill picture of the progress bar control
progress.ProgressImage = "asset/Texture/GUI/slider_thumb.png"