Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • IceSL documentation IceSL documentation
  • Project information
    • Project information
    • Activity
    • Members
  • Wiki
    • Wiki
  • Activity
Collapse sidebar
  • mfx
  • IceSL documentationIceSL documentation
  • Wiki
  • Scripting language

Scripting language · Changes

Page history
Update Scripting language authored Apr 30, 2020 by Salim Perchy's avatar Salim Perchy
Show whitespace changes
Inline Side-by-side
Scripting-language.md
View page @ 2972aa03
...@@ -1072,6 +1072,49 @@ Creates a checkbox to interactively set a Boolean value. ...@@ -1072,6 +1072,49 @@ Creates a checkbox to interactively set a Boolean value.
* ```name```: the checkbox's name * ```name```: the checkbox's name
* ```default```: default value * ```default```: default value
```ui_text(name, default)```
Creates a text input box to interactively set a string value.
* ```name```: the text input's name
* ```default```: default value
```ui_radio(name, list)```
Creates a radio box to interactively choose an integer value from a list.
* ```name```: the text input's name
* ```list```: an array of pairs of the form ```{integer, string}``` where ```integer``` is the id associated with ```string```
<table>
<tr>
<td>
```lua
shape_list = {
{0, "sphere"},
{1, "cylinder"},
{2, "cube"}
}
shape = ui_radio("Shape:", shape_list)
if shape == 0 then emit(sphere(5))
elseif shape == 1 then emit(cylinder(5,10))
elseif shape == 2 then emit(cube(10)) end
```
</td>
<td>
<img src="uploads/0f6f18791297bc6e6c34cf7d2614f569/Example_tweakCombo.PNG" width="200">
</td>
</tr>
</table>
```ui_combo(name, list)```
Creates a combo box to interactively choose a string value from a list.
* ```name```: the text input's name
* ```list```: an array of strings
### Fields <a name="fields"></a> ### Fields <a name="fields"></a>
Fields are UI objects for interactively building 3D textures. They are useful for carving, sculpting and specifying surfaces among other things. Fields are UI objects for interactively building 3D textures. They are useful for carving, sculpting and specifying surfaces among other things.
......
Clone repository
  • Plugin system
  • Printer profile
  • Scripting language