recipes
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
recipes [2020/06/01 14:43] – [Using recipe on the dashboard] emozolyak | recipes [2021/08/05 13:35] – emozolyak | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | {{ :: | ||
======Recipes====== | ======Recipes====== | ||
Line 44: | Line 45: | ||
When placing a recipes selection listbox on a dashboard, there are some specific attributes you must specify: | When placing a recipes selection listbox on a dashboard, there are some specific attributes you must specify: | ||
- | * //__Category__// of recipes, or a full list. | + | * //Category// of recipes, or a full list. |
- | * The //__register__// accosiated with the dropdown list which will keep the //id// of the selected recipe. | + | * The //register// accosiated with the dropdown list which will keep the //id// of the selected recipe. |
* '// | * '// | ||
* '// | * '// | ||
Line 52: | Line 53: | ||
{{ :: | {{ :: | ||
- | To apply recipes within scripts, the **ApplyRecipe (recipeId, userId)** function is used. [[working_with_recipes|See here]]. | + | If the user has right to edit the recipe, he can do this right in the selectoin box: |
+ | |||
+ | {{ quick_rcp_apply_edit.gif |}} | ||
+ | |||
+ | ===== Using recipes in scripts ===== | ||
+ | |||
+ | To apply recipes within scripts, the **ApplyRecipe (recipeId, userId)** function is used. [[working_with_recipes|See here]]. | ||
+ | |||
+ | <code lua> | ||
+ | function | ||
+ | local id = GetReg(" | ||
+ | ApplyRecipe(id, userId) | ||
+ | AddInfoMessage(" | ||
+ | end | ||
+ | </ | ||
+ | |||
+ | {{ recipe_in_scripts.gif |}} |
recipes.txt · Last modified: 2022/01/15 15:41 by 127.0.0.1