Skip to content

UI.ProgressBar

Name - Description Default Type
<input> The progress amount ranging from 0.0 (no progress) to 1.0 (completed). Float
<output> The output of this shard will be its input. Float
Overlay The text displayed inside the progress bar. None String&String
Width The desired width of the progress bar. Will use all horizontal space if not set. None Float&Float

A progress bar with an optional overlay text.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
(GFX.MainWindow
 :Contents
 (->
  (Setup
   (GFX.DrawQueue) >= .ui-draw-queue
   (GFX.UIPass .ui-draw-queue) >> .render-steps)
  (UI
   .ui-draw-queue
   (UI.CentralPanel
    (->
     (Setup
      0.0 >= .progress)
     .progress (UI.ProgressBar :Overlay "Progress")
     (Math.Add 0.01) > .progress)))

  (GFX.Render :Steps .render-steps)))