docs: update

This commit is contained in:
bordun 2020-04-04 17:14:13 +02:00
parent 0ac381b930
commit b114e0d371
5 changed files with 48 additions and 7 deletions

View file

@ -1,4 +1,6 @@
<img src="resources/images/logo_discourse_black.png" alt="Open Stage Control" height="50px"/>
<img src="resources/images/logo.png" alt="Open Stage Control" height="50px"/>
Open Stage Control
*Libre and modular OSC / MIDI controller*

View file

@ -0,0 +1 @@
!!! warning "Incomplete documentation"

View file

@ -3,6 +3,8 @@
All widgets that send osc messages respond to the same messages. Additionnaly, Open Stage Control responds to some general osc commands.
----
#### `/EDIT id options`
@ -16,6 +18,9 @@ Apply a set of options to an existing widget by replacing the old ones with the
!!! info ""
Editing a widget can be cpu expensive, hence updating the UI continuously is not a good idea
----
#### `/EDIT/MERGE id options`
Apply a set of options to an existing widget by merging them to the widget's options.
@ -28,14 +33,23 @@ Apply a set of options to an existing widget by merging them to the widget's opt
!!! info ""
Editing a widget can be cpu expensive, hence updating the UI continuously is not a good idea
----
#### `/EDIT/UNDO`
Undo editing action
----
#### `/EDIT/REDO`
Redo editing action
----
#### `/EDIT/GET target id`
Sends back a widget's data (JSON stringified object), including its children, to specified target.
@ -48,6 +62,9 @@ Replies `/EDIT/GET id data`
- `id`: `string`
- `data`: `string`
----
#### `/EDIT/GET target address preArg1 preArg2 ...`
Sends back a widget's data (JSON stringified object), including its children, to specified target.
@ -63,6 +80,9 @@ Replies `/EDIT/GET address preArg1 preArg2 ... data`
- `data`: `string`
----
#### `/GET target id`
Sends back a widget's value to specified target.
@ -75,6 +95,9 @@ Replies `/GET id value`
- `id`: `string`
- `value`: `*`
----
#### `/GET target address preArg1 preArg2 ...`
Sends back a widget's value to specified target.
@ -89,10 +112,16 @@ Replies `/GET address preArg1 preArg2 ... value`
- `preArg[1...]`: `*`, widget's `preArgs`
- `value`: `*`
----
#### `/GET/#`
Same as `/GET` but uses the widget's address instead of `/GET` to reply.
----
#### `/SET target id value`
Set a widget's value as if it was interacted with from the interface. This is likely to make it send its value.
@ -100,6 +129,9 @@ Set a widget's value as if it was interacted with from the interface. This is li
- `id`: `string`, widget's `id`
- `value`: `*`, widget's new value
----
#### `/SET address preArg1 preArg2 ... value`
Set a widget's value as if it was interacted with from the interface. This is likely to make it send its value.
@ -109,12 +141,18 @@ Set a widget's value as if it was interacted with from the interface. This is li
- `value`: `*`, widget's new value
----
#### `/STATE/GET target`
Sends back the app's state to specified target
- `target`: `string`, `ip:port` pair
----
#### `/STATE/SET state`
Set widgets' state
@ -122,10 +160,16 @@ Set widgets' state
- `state`: `string`, json stringified object (`"widget_id": value` pairs)
----
#### `/STATE/STORE`
Save the state of all widgets in the temporary slot.
----
#### `/STATE/RECALL`
Reload saved state from the temporary slot.

View file

@ -1,7 +1,4 @@
# Widget reference
<div class="accordion" data-category="generic" markdown="1">
<h6 class="accordionlink" id="generic_properties"><a class="headerlink" href="#generic_properties">Generic properties</a></h3>

View file

@ -8,9 +8,6 @@ var widgets = require('../src/client/widgets'),
doc.push(`
# Widget reference
<div class="accordion" data-category="generic" markdown="1">
<h6 class="accordionlink" id="generic_properties"><a class="headerlink" href="#generic_properties">Generic properties</a></h3>