... | @@ -1081,7 +1081,7 @@ Creates a text input box to interactively set a string value. |
... | @@ -1081,7 +1081,7 @@ Creates a text input box to interactively set a string value. |
|
```ui_radio(name, list)```
|
|
```ui_radio(name, list)```
|
|
|
|
|
|
Creates a radio box to interactively choose an integer value from a list.
|
|
Creates a radio box to interactively choose an integer value from a list.
|
|
* ```name```: the text input's name
|
|
* ```name```: the radio box's name
|
|
* ```list```: an array of pairs of the form ```{integer, string}``` where ```integer``` is the id associated with ```string```
|
|
* ```list```: an array of pairs of the form ```{integer, string}``` where ```integer``` is the id associated with ```string```
|
|
|
|
|
|
<table>
|
|
<table>
|
... | @@ -1094,7 +1094,6 @@ shape_list = { |
... | @@ -1094,7 +1094,6 @@ shape_list = { |
|
{1, "cylinder"},
|
|
{1, "cylinder"},
|
|
{2, "cube"}
|
|
{2, "cube"}
|
|
}
|
|
}
|
|
|
|
|
|
shape = ui_radio("Shape:", shape_list)
|
|
shape = ui_radio("Shape:", shape_list)
|
|
|
|
|
|
if shape == 0 then emit(sphere(5))
|
|
if shape == 0 then emit(sphere(5))
|
... | | ... | |