diff options
author | sfan5 <sfan5@live.de> | 2016-09-03 17:53:15 +0200 |
---|---|---|
committer | paramat <mat.gregory@virginmedia.com> | 2016-09-14 09:19:36 +0100 |
commit | b77cee146b0029d377f1028b942857d062bc1374 (patch) | |
tree | 70f864a8c739ce1866bed02e174bcc6172636b99 /doc | |
parent | 9dd22aebc7443f1bd678a649a97f504a3b816906 (diff) | |
download | minetest-b77cee146b0029d377f1028b942857d062bc1374.tar.gz minetest-b77cee146b0029d377f1028b942857d062bc1374.tar.bz2 minetest-b77cee146b0029d377f1028b942857d062bc1374.zip |
Allow escaping of texture names when passed as an argument to a modifier
Diffstat (limited to 'doc')
-rw-r--r-- | doc/lua_api.txt | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt index 1da45ad66..74d4b90d5 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -263,7 +263,17 @@ Textures can be grouped together by enclosing them in `(` and `)`. Example: `cobble.png^(thing1.png^thing2.png)` A texture for `thing1.png^thing2.png` is created and the resulting -texture is overlaid over `cobble.png`. +texture is overlaid on top of `cobble.png`. + +### Escaping +Modifiers that accept texture names (e.g. `[combine`) accept escaping to allow +passing complex texture names as arguments. Escaping is done with backslash and +is required for `^` and `:`. + +Example: `cobble.png^[lowpart:50:color.png\^[mask\:trans.png` + +The lower 50 percent of `color.png^[mask:trans.png` are overlaid +on top of `cobble.png`. ### Advanced texture modifiers @@ -351,7 +361,7 @@ Example: default_stone.png^[transformFXR90 #### `[inventorycube{<top>{<left>{<right>` -`^` is replaced by `&` in texture names. +Escaping does not apply here and `^` is replaced by `&` in texture names instead. Create an inventory cube texture using the side textures. |