... | @@ -972,9 +972,9 @@ emit(merge(centroids)) |
... | @@ -972,9 +972,9 @@ emit(merge(centroids)) |
|
|
|
|
|
It is possible for custom printing settings to be shown and modified in IceSL's UI. Currently there is support for two types of settings; booleans and numbers. The following two definitions can be used in file ```features.lua``` of a printer profile:
|
|
It is possible for custom printing settings to be shown and modified in IceSL's UI. Currently there is support for two types of settings; booleans and numbers. The following two definitions can be used in file ```features.lua``` of a printer profile:
|
|
|
|
|
|
```add_checkbox_setting(internal_name, description, tooltip)```
|
|
```add_checkbox_setting(internal_name, description, tooltip, default)```
|
|
|
|
|
|
```add_setting(internal_name, description, minVal, maxVal, tooltip)```
|
|
```add_setting(internal_name, description, minVal, maxVal, tooltip, default)```
|
|
|
|
|
|
Adds setting ```internal_name``` with ```description```, minimum value ```minValue``` and maximum value ```maxValue```. Default value is ```false``` for ```add_checkbox_setting``` and ```minValue``` for ```add_setting```:
|
|
Adds setting ```internal_name``` with ```description```, minimum value ```minValue``` and maximum value ```maxValue```. Default value is ```false``` for ```add_checkbox_setting``` and ```minValue``` for ```add_setting```:
|
|
* ```internal_name``` : internal name for setting
|
|
* ```internal_name``` : internal name for setting
|
... | @@ -982,6 +982,7 @@ Adds setting ```internal_name``` with ```description```, minimum value ```minVal |
... | @@ -982,6 +982,7 @@ Adds setting ```internal_name``` with ```description```, minimum value ```minVal |
|
* ```minValue``` : minimal value in case of a number setting (i.e., ```add_setting```)
|
|
* ```minValue``` : minimal value in case of a number setting (i.e., ```add_setting```)
|
|
* ```maxValue``` : maximum value in case of a number setting (i.e., ```add_setting```)
|
|
* ```maxValue``` : maximum value in case of a number setting (i.e., ```add_setting```)
|
|
* ```tooltip``` : tooltip help to show in IceSL's UI. This parameter is _optional_.
|
|
* ```tooltip``` : tooltip help to show in IceSL's UI. This parameter is _optional_.
|
|
|
|
* ```default``` : default value. This parameter is _optional_.
|
|
|
|
|
|
|
|
|
|
The setting's value can then be queried in file ```printer.lua``` of the printer profile by using the setting's ```internal_name```.
|
|
The setting's value can then be queried in file ```printer.lua``` of the printer profile by using the setting's ```internal_name```.
|
... | | ... | |