summaryrefslogtreecommitdiff
path: root/Data/BuiltIn/Libraries/lua-addons/addons/Text/ReadMe.md
diff options
context:
space:
mode:
Diffstat (limited to 'Data/BuiltIn/Libraries/lua-addons/addons/Text/ReadMe.md')
-rw-r--r--Data/BuiltIn/Libraries/lua-addons/addons/Text/ReadMe.md33
1 files changed, 33 insertions, 0 deletions
diff --git a/Data/BuiltIn/Libraries/lua-addons/addons/Text/ReadMe.md b/Data/BuiltIn/Libraries/lua-addons/addons/Text/ReadMe.md
new file mode 100644
index 0000000..858d9ed
--- /dev/null
+++ b/Data/BuiltIn/Libraries/lua-addons/addons/Text/ReadMe.md
@@ -0,0 +1,33 @@
+# Text
+
+Allows creation and manipulation of text objects on the screen.
+
+### Commands
+
+All commands are of the following form:
+```
+text <name> <command> [args1 [arg2 [...]]]
+```
+
+There are two special commands to create and delete text objects:
+* `create`: Creates a text object with the specified name and optionally sets the contents to the following string
+* `delete`: Deletes the text object with the specified name
+
+All other commands and their arguments can be found in the [`texts` library](https://github.com/Windower/Lua/blob/4.1-dev/addons/libs/texts.lua). Every function in there that modifies the text object can be used as a command.
+
+### Examples
+
+The following list of commands will create a text object containing the text "Awkward" at position (500, 500) in a huge font and bright yellow color.
+
+```
+text foo create Awkward
+text foo pos 500 500
+text foo color 255 255 0
+text foo size 50
+text foo italic true
+```
+
+This will delete it again
+```
+text foo delete
+```