-
Notifications
You must be signed in to change notification settings - Fork 11
OryUIProgressIndicator
Kevin Cross edited this page Sep 11, 2019
·
9 revisions
Required for indeterminate progress indicators. It will animate the progress bar by growing and shrinking it, as well as moving it at different speeds.
Creates a progress indicator and returns a progress indicator ID. See Available Parameters section below for the options.
Deletes a progress indicator.
Returns the height of the progress indicator.
Returns the current percentage of the progress indicator.
Returns the width of the progress indicator.
Returns the x position of the progress indicator.
Returns the y position of the progress indicator.
Sets the percentage of the progress indicator, from 0 to 100. Decimals accepted.
Updates a progress indicator. See Available Parameters section below for the options.
| Parameter | Description |
|---|---|
| color | The colour of the progress indicator. Accepts RGB values, and RGBA values (comma delimited) Also accepts MakeColor() value/id, and hex color codes. |
| depth | The depth of the progress indicator. |
| fixToScreen | Fixes the progress indicator to screen. |
| height | The height of the progress indicator. Accepts decimals. |
| offset | The x and y position where the offset should be placed, comma delimited. Also accepts a single value 'center'. Accepts decimals. |
| position | The x and y position where the progress indicator should be placed, comma delimited. |
| progressType | Either "Determinate" or "Indeterminate". Determinate (default) is used to show the status of a process. Indeterminate is used when you don't know how long the process will take (requires OryUIAnimateProgressIndicator) |
| size | The width and height of the progress indicator, comma delimited. Also accepts -1 in either one to create a square button. Accepts decimals. |
| width | The width of the progress indicator. Accepts decimals. |
| x | The x position where the progress indicator should be placed. |
| y | The y position where the progress indicator should be placed. |
Example
progressBar1 = OryUICreateProgressIndicator("color:255,0,0;size:50,2;offset:center;position:50,40")
progressBar2 = OryUICreateProgressIndicator("progressType:indeterminate;color:0,0,255;size:50,1;offset:center;position:50,60")
progress# = 0
do
progress# = progress# + 0.5
if (progress# > 100) then progress# = 0
OryUISetProgressIndicatorPercentage(progressBar1, progress#)
OryUIAnimateProgressIndicator(progressBar2)
Sync()
loop