You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -540,36 +534,36 @@ which provides text and color definitions for different bodypart status conditio
540
534
541
535
| JSON Field | Description
542
536
|--- |---
543
-
| `id` | An optional identifier for this phrase
537
+
| `id` | An optional identifier for this clause
544
538
| `text` | Translated text that may be interpreted and displayed in the widget.
545
539
| `sym` | A shortened symbol representing the text.
546
-
| `color` | Defines the color for the text derived from this "phrase".
547
-
| `value` | A numeric value for this "phrase", which may be interpreted differently based on the context of the parent widget.
548
-
| `condition` | A dialogue condition (see [Dialogue conditions](NPCs.md#dialogue-conditions)) that dictates whether this phrase will be used or not. If the condition is true (or when no condition is defined), the phrase can be used to its text/symbol/color in the widget's value.
540
+
| `color` | Defines the color for the text derived from this "clause".
541
+
| `value` | A numeric value for this "clause", which may be interpreted differently based on the context of the parent widget.
542
+
| `condition` | A dialogue condition (see [Dialogue conditions](NPCs.md#dialogue-conditions)) that dictates whether this clause will be used or not. If the condition is true (or when no condition is defined), the clause can be used to its text/symbol/color in the widget's value.
549
543
550
544
551
545
## Conditions
552
546
553
-
Widget phrases and conditions can be used to define new widgets completely from JSON, using
547
+
Widget clauses and conditions can be used to define new widgets completely from JSON, using
554
548
[dialogue conditions](NPCs.md#dialogue-conditions). By omitting the widget's `var` field, the
555
549
widget is interpreted as either a "text", "number", "symbol", or "legend" depending on the given
556
-
`style`. The widget will evaluate each of its phrases to determine which ones to draw values from:
550
+
`style`. The widget will evaluate each of its clauses to determine which ones to draw values from:
557
551
558
-
| Widget style | Phrase field used | Details | Example
552
+
| Widget style | Clause field used | Details | Example
559
553
|--- |--- |--- |---
560
-
| `"number"` | `"value"` | Lists values as comma-separated-values from all phrases that have true conditions. | `Next threshold: 30, 40, 55`
561
-
| `"text"` | `"text"` | Lists text as comma-separated-values from all phrases that have true conditions. | `TORSO: bleeding, broken, infected`
562
-
| `"symbol"` | `"sym"` | Lists syms sequentially from all phrases that have true conditions. | `TORSO: b%I`
563
-
| `"legend"` | `"sym"` and `"text"` | Lists syms and text in a paragraph format, with spaces between pairs, from all phrases that have true conditions. | `b bleeding % broken I infected`
554
+
| `"number"` | `"value"` | Lists values as comma-separated-values from all clauses that have true conditions. | `Next threshold: 30, 40, 55`
555
+
| `"text"` | `"text"` | Lists text as comma-separated-values from all clauses that have true conditions. | `TORSO: bleeding, broken, infected`
556
+
| `"symbol"` | `"sym"` | Lists syms sequentially from all clauses that have true conditions. | `TORSO: b%I`
557
+
| `"legend"` | `"sym"` and `"text"` | Lists syms and text in a paragraph format, with spaces between pairs, from all clauses that have true conditions. | `b bleeding % broken I infected`
564
558
565
559
Widgets using the `legend` style can be multiple lines high using a `height` > 1 (and optionally, the `W_DYNAMIC_HEIGHT` flag), so that the generated list can span the given vertical space.
566
560
567
-
Some conditions can be specific to certain bodyparts. In order to simplify phrases, these conditions can pull from the parent widget's `bodypart` field (or `bodyparts` field if defining multiple). This allows the same phrases to be `copy-from`'d to multiple widgets, and each widget can display the phrases depending on whether its bodypart(s) passes the condition (assuming the condition relies on a bodypart).
561
+
Some conditions can be specific to certain bodyparts. In order to simplify clauses, these conditions can pull from the parent widget's `bodypart` field (or `bodyparts` field if defining multiple). This allows the same clauses to be `copy-from`'d to multiple widgets, and each widget can display the clauses depending on whether its bodypart(s) passes the condition (assuming the condition relies on a bodypart).
568
562
569
563
570
-
## Default phrase
564
+
## Default clause
571
565
572
-
Widgets can define a default phrase that will be used if none of the phrases in the `phrases`
566
+
Widgets can define a default clause that will be used if none of the clauses in the `clauses`
0 commit comments