| summaryrefslogtreecommitdiff |
diff options
| author | Nathanael Sensfelder <SpamShield0@MultiAgentSystems.org> | 2021-01-24 22:08:56 +0100 |
|---|---|---|
| committer | Nathanael Sensfelder <SpamShield0@MultiAgentSystems.org> | 2021-01-24 22:08:56 +0100 |
| commit | 73cc70358020538b13f2d5cf4e81426b13bbb85a (patch) | |
| tree | 2fbc4a2c2be48f8ded80933dffe1445758b63c66 /content/fate_v1/declarations/text_effects/_index.md | |
| parent | 23d8224704b76737e746c5add47aa4cd96a7fd01 (diff) | |
...
Diffstat (limited to 'content/fate_v1/declarations/text_effects/_index.md')
| -rw-r--r-- | content/fate_v1/declarations/text_effects/_index.md | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/content/fate_v1/declarations/text_effects/_index.md b/content/fate_v1/declarations/text_effects/_index.md deleted file mode 100644 index fd3742d..0000000 --- a/content/fate_v1/declarations/text_effects/_index.md +++ /dev/null @@ -1,31 +0,0 @@ ---- -title: Text Effects ---- -Text effects are attributes that can be given to text elements. The -effects themselves can take parameters. To avoid errors that would be difficult -to detect, Tonkadur expects text effects to be declared before being used. -Note that multiple text effects can be applied to the same text elements, -so there is no need to create text effects that combine other text effects. - -Two text effects cannot have the same name, even if their parameter types -differ. - -Because text effects are handled by the interpreter, it is recommended to -overlay their use by lambda functions. This way, each interpreter can simply -expose its available text effects in a file, and the definition of the lambda -functions can thus be changed according to which interpreter is used without -having to go through the whole document. Furthermore, the name of text effects -exposed by the interpreter might not match the name that would make the most -sense to use within the narrative. - -### TEXT EFFECT -{{< fatecode >}}(declare_text_effect {Identifier} [T0 = TYPE] ... [TN = TYPE]){{< /fatecode >}} -Declares the text effect `{Identifier}`, with parameters of type `[T0]` ... -`[TN]`. - -## Examples -* `(declare_text_effect bold)` -* `(declare_text_effect speaker string)` -* `(declare_text_effect color int int int)` -* `(declare_text_effect font string)` -* `(declare_text_effect speaker_emotion string int)` |


