| Name |
Mandatory |
Description |
Default |
Type |
⬅️ Input |
|
The value is ignored. |
|
None |
Output ➡️ |
|
Indicates whether the radio button was clicked during this frame. |
|
Bool |
Label |
No |
The text label of this radio button. |
none |
StringNone |
Variable |
No |
The variable that holds the input value. |
none |
AnyVar(Any) |
Value |
No |
The value to compare with. |
none |
Any |
Style |
No |
The text style. |
none |
{Any}Var({Any}) |
A radio button for selecting a value amongst multiple choices.
Examples
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 | GFX.MainWindow(Contents: {
// Setup
GFX.DrawQueue = ui-draw-queue
GFX.UIPass(ui-draw-queue) >> render-steps
// UI
UI({
UI.CentralPanel({
2 >= choice
UI.RadioButton(
Label: "Choice 1"
Variable: choice
Value: 1
)
UI.RadioButton("Choice 2" choice 2)
UI.RadioButton("Choice 3" choice 3)
})
})
UI.Render(ui-draw-queue)
GFX.Render(Steps: render-steps)
})
|
[warning] Context has 2 buffers at release (2 released, 2 kept)
[warning] Context has 5 textures at release (1 released, 5 kept)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23 | GFX.MainWindow(Contents: {
// Setup
GFX.DrawQueue = ui-draw-queue
GFX.UIPass(ui-draw-queue) >> render-steps
// UI
UI({
UI.CentralPanel({
2 >= choice
UI.RadioButton(Label: "Choice 1" Style: {} Variable: choice Value: 1)
UI.RadioButton(
Label: "Choice 2"
Style: {underline: true}
Variable: choice
Value: 2
)
UI.RadioButton(Label: "Choice 3" Style: {} Variable: choice Value: 3)
})
})
UI.Render(ui-draw-queue)
GFX.Render(Steps: render-steps)
})
|
[warning] Context has 2 buffers at release (2 released, 2 kept)
[warning] Context has 5 textures at release (1 released, 5 kept)