recipes
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
recipes [2020/06/01 13:13] – emozolyak | recipes [2022/01/15 15:41] (current) – ↷ Links adapted because of a move operation 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | {{ network: | ||
======Recipes====== | ======Recipes====== | ||
Line 7: | Line 8: | ||
* Recipe list can be used as a handy tool for analysing user choice from different options. In this case recipe names in the list or category serve as a placeholders for the selection listbox. The selected id is returned to the lua script which then can process the selection. | * Recipe list can be used as a handy tool for analysing user choice from different options. In this case recipe names in the list or category serve as a placeholders for the selection listbox. The selected id is returned to the lua script which then can process the selection. | ||
- | ===== Recipe setup ===== | + | ===== Recipes page===== |
- | The recipe management menu resided | + | The recipe management menu resides |
- | {{ :: | + | {{ network: |
- | The main spots of the recipe management | + | The main spots of the recipe management |
- Import/ | - Import/ | ||
- Add recipe button | - Add recipe button | ||
Line 22: | Line 23: | ||
- Edit/ | - Edit/ | ||
+ | {{ network: | ||
- | {{ :: | + | ===== Recipe setup===== |
- | Recipes can have sub-categories, | + | |
- | {{ :recipes2.png?direct |category}} | + | The //Basic// tab: |
+ | ***Title** - this title will be seen in the selection lists and setup page | ||
+ | ***Description** - user comments for the recipe | ||
+ | ***Disable** checkbox - hides this recipe from the list | ||
+ | ***Lock** - prevent the recipe from editing by non-admin users | ||
+ | ***Registers 1..4 / Value / Description** - this set of the registers will be initialized with the respective values upon invoking recipe. The description given here will be used to show the comments in the quick edit window (right on the dashboard) | ||
+ | ***Delete** button deletes the register //n// from the list | ||
+ | ***Add register to recipe** button expands the list with a new entry | ||
- | And also be available to specific users. | + | {{ network: |
- | {{ :recipes3.png?direct |users}} | + | The // |
+ | {{ network:recipe_permissions.png?direct& | ||
- | When placing a list of recipes | + | ===== Using recipe |
- | * Category of recipes, or a complete list of all categories | + | When placing a recipes |
- | * Drop-down or multiline list | + | |
- | * Number of the register where the recipe number will change. (changing this register can be monitored in scripts when you need to perform some actions associated with this recipe) | + | |
- | * Whether to apply the recipe immediately or not (in the second case, only the register number will change where the current recipe number is stored) | + | |
- | {{ :recipe4.png?direct |dashboard}} | + | * // |
+ | * The // | ||
+ | * '// | ||
+ | * '// | ||
- | To apply recipes within scripts, the **ApplyRecipe (recipeId, userId)** function is used. [[working_with_recipes|See here]]. | + | |
+ | {{ network: | ||
+ | |||
+ | If the user has right to edit the recipe, he can do this right in the selectoin box: | ||
+ | |||
+ | {{ network: | ||
+ | |||
+ | ===== 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 | ||
+ | </ | ||
+ | |||
+ | {{ network: |
recipes.txt · Last modified: 2022/01/15 15:41 by 127.0.0.1