Skip to content

UI.IntSlider

Name Mandatory Description Default Type
⬅️ Input The value is ignored. None
Output ➡️ The value produced. Int
Label No The text label for this widget. none StringNone
Style No The text style. none {Any}Var({Any})
Variable No The variable that holds the input value. none IntVar(Int)
Min No The minimum value. none IntVar(Int)
Max No The maximum value. none IntVar(Int)

A numeric slider.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
@wire(ui-wire {
  UI.Window(
    Position: @f2(0 0)
    Anchor: Anchor::Center
    Width: 200
    Height: 200
    Flags: [WindowFlags::NoResize]
    Contents: {
      UI.IntSlider(
        Label: "My Label"
        Style: {color: @color(255 128 64) italics: true}
        Variable: int
        Min: 1 Max: 100
      )
      ExpectInt
    }
  )
} Looped: true)

{ui-behavior: ui-wire}