summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorThomas--S <Thomas--S@users.noreply.github.com>2017-04-22 21:17:46 +0200
committerparamat <mat.gregory@virginmedia.com>2018-01-03 04:05:21 +0000
commitf3b9d8707691b16d9c8b6a2e9e13db54b091dc93 (patch)
tree7eb55d8965838aa0b0af74d7d30519a9b5a6d053 /doc
parent345e1041a204ca9d40a25b71ae239ce3275f0755 (diff)
downloadminetest-f3b9d8707691b16d9c8b6a2e9e13db54b091dc93.tar.gz
minetest-f3b9d8707691b16d9c8b6a2e9e13db54b091dc93.tar.bz2
minetest-f3b9d8707691b16d9c8b6a2e9e13db54b091dc93.zip
Connected Nodeboxes: Add `disconnected` boxes
The `disconnected_*` boxes are the opposites of the `connect_*` ones, i.e. when a node has no suitable neighbours on the respective side, the according disconnected box is drawn. * disconnected_top * disconnected_bottom * disconnected_front * disconnected_left * disconnected_back * disconnected_right * disconnected (when there is *no* neighbour) * disconnected_sides (when there are *no* neighbours to the sides)
Diffstat (limited to 'doc')
-rw-r--r--doc/lua_api.txt11
1 files changed, 11 insertions, 0 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt
index 59884621b..54a5e7b57 100644
--- a/doc/lua_api.txt
+++ b/doc/lua_api.txt
@@ -1032,6 +1032,17 @@ A nodebox is defined as any of:
connect_left = box OR {box1, box2, ...}
connect_back = box OR {box1, box2, ...}
connect_right = box OR {box1, box2, ...}
+ -- The following `disconnected_*` boxes are the opposites of the
+ -- `connect_*` ones above, i.e. when a node has no suitable neighbour
+ -- on the respective side, the corresponding disconnected box is drawn.
+ disconnected_top = box OR {box1, box2, ...}
+ disconnected_bottom = box OR {box1, box2, ...}
+ disconnected_front = box OR {box1, box2, ...}
+ disconnected_left = box OR {box1, box2, ...}
+ disconnected_back = box OR {box1, box2, ...}
+ disconnected_right = box OR {box1, box2, ...}
+ disconnected = box OR {box1, box2, ...} -- when there is *no* neighbour
+ disconnected_sides = box OR {box1, box2, ...} -- when there are *no* neighbours to the sides
}
A `box` is defined as: