From ce9ca5c9d3270c33f97f93e63b85f76bdf0cd141 Mon Sep 17 00:00:00 2001 From: jean-emmanuel Date: Tue, 19 Mar 2019 09:03:06 +0100 Subject: [PATCH] docs: fix src links --- resources/docs/extras/custom-module.md | 4 ++-- resources/docs/widgets-reference.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/docs/extras/custom-module.md b/resources/docs/extras/custom-module.md index 14b0a9ad..52c9e26e 100644 --- a/resources/docs/extras/custom-module.md +++ b/resources/docs/extras/custom-module.md @@ -54,8 +54,8 @@ The module is executed in a restricted context, only a few globals are available - `clearTimeout`: `function(timeout)` - `setInterval`: `function(function, delay)` - `clearInterval`: `function(interval)` -- `settings.read`: `function(name)`, see [settings.js](https://github.com/jean-emmanuel/open-stage-control/blob/master/app/main/settings.js#L125-L162) for available options -- `app`: an [event emitter](https://nodejs.org/api/events.html#events_class_eventemitter) for monitoring the events sent by the different clients. Event names can be found in [callbacks.js](https://github.com/jean-emmanuel/open-stage-control/blob/master/app/main/callbacks.js), callbacks are called with 2 arguments: `data` (object) and `clientId` (string) +- `settings.read`: `function(name)`, see [settings.js](https://github.com/jean-emmanuel/open-stage-control/blob/master/src/server/settings.js#L55-L103) for available options +- `app`: an [event emitter](https://nodejs.org/api/events.html#events_class_eventemitter) for monitoring the events sent by the different clients. Event names can be found in [callbacks.js](https://github.com/jean-emmanuel/open-stage-control/blob/master/src/server/callbacks.js), callbacks are called with 2 arguments: `data` (object) and `clientId` (string) - `options`: `array` containing the extra options passed to `--custom-module` after the filename diff --git a/resources/docs/widgets-reference.md b/resources/docs/widgets-reference.md index 44225c76..53bdd87a 100644 --- a/resources/docs/widgets-reference.md +++ b/resources/docs/widgets-reference.md @@ -463,7 +463,7 @@ | --- | --- | --- | --- | |

script

|||| |

condition

| `string` | 1 | When the widget receives a value, if this property return a falsy value, the script property won't be evaluated. If it's non-falsy, it will be evaluated normally. Formulas are given one extra variable in this context:
- `value`: the value received by the widget | -|

script

| `string` | "" | This property is evaluated each time the widget receives a value* if condition is non-falsy. Formulas are given extras variables in this context:
- `value`: the value received by the widget
- `send(target, address, arg1, arg2, ...)`: function for sending osc messages (ignores the script's targets and the server's defaults unless `target` is `false`; ignores the script's `preArgs`)
- `set(id, value)`: function for setting a widget's value



* Note: `value` or `linkId` properties can be used to receive other widgets' values | +|

script

| `string` | "" | This property is evaluated each time the widget receives a value* if condition is non-falsy. Formulas are given extras variables in this context:
- `value`: the value received by the widget
- `send(target, address, arg1, arg2, ...)`: function for sending osc messages (ignores the script's targets and the server's defaults unless `target` is `false`; ignores the script's `preArgs`)
- `set(id, value)`: function for setting a widget's value



* Note: `value` or `linkId` properties can be used to receive other widgets' values. The `value` property must actually change to trigger the execution, where linked widgets via `linkId` can submit the same value over and over and trigger the execution | ### gyroscope