... | @@ -1034,7 +1034,7 @@ Creates a sliding bar to interactively set a float value between ```min``` and ` |
... | @@ -1034,7 +1034,7 @@ Creates a sliding bar to interactively set a float value between ```min``` and ` |
|
<td>
|
|
<td>
|
|
|
|
|
|
```lua
|
|
```lua
|
|
r = ui_scalar("Radius",10,1,20)
|
|
r = ui_scalar("Radius",10.0,1.0,20.0)
|
|
emit(sphere(r))
|
|
emit(sphere(r))
|
|
```
|
|
```
|
|
|
|
|
... | @@ -1045,6 +1045,14 @@ emit(sphere(r)) |
... | @@ -1045,6 +1045,14 @@ emit(sphere(r)) |
|
</tr>
|
|
</tr>
|
|
</table>
|
|
</table>
|
|
|
|
|
|
|
|
```ui_number(name, default, min, max)```
|
|
|
|
|
|
|
|
Creates a sliding bar to interactively set an integer value between ```min``` and ```max```.
|
|
|
|
* ```name```: the sliding bar's name
|
|
|
|
* ```default```: default value
|
|
|
|
* ```min```: minimum value
|
|
|
|
* ```max```: maximum value
|
|
|
|
|
|
### 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.
|
... | | ... | |