From 60a59f48d60bff64ef17744605edee6a51b260de Mon Sep 17 00:00:00 2001 From: Max Tkachenko <makseq@gmail.com> Date: Tue, 25 Oct 2022 03:00:39 +0300 Subject: [PATCH] Update Model.js --- src/tags/object/Paragraphs/Model.js | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/src/tags/object/Paragraphs/Model.js b/src/tags/object/Paragraphs/Model.js index f219a1532..86201c17c 100644 --- a/src/tags/object/Paragraphs/Model.js +++ b/src/tags/object/Paragraphs/Model.js @@ -34,6 +34,29 @@ const isFFDev2461 = isFF(FF_DEV_2461); * <Label value="Random talk"></Label> * </ParagraphLabels> * </View> + * @example + * <!-- Paragraphs with audio --> + * <View> + * <Paragraphs audioUrl="$audio" value="$para" name="paragraphs" + * layout="dialogue" textKey="text" nameKey="author" + * showPlayer="true" + * /> + * + * <Choices name="choices" toName="paragraphs" choice="multiple"> + * <Choice value="Good quality"/> + * <Choice value="Fast speech"/> + * </Choices> + * </View> + * + * <!-- {"data": { + * "para": [ + * {"text": "test 1", "author": "A", "start": 0.0, "end": 1.0}, + * {"text": "test 2", "author": "B", "start": 1.0, "end": 2.0}, + * {"text": "test 3", "author": "A", "start": 2.0, "end": 3.0} + * ], + * "audio": "/static/samples/game.wav" + * }} + * --> * @name Paragraphs * @regions ParagraphsRegion * @meta_title Paragraph Tags for Paragraphs