summaryrefslogtreecommitdiff
path: root/API.md
diff options
context:
space:
mode:
authorWuzzy <almikes@aol.com>2016-12-07 11:21:01 +0100
committerWuzzy <almikes@aol.com>2016-12-07 11:21:01 +0100
commit1c82f3b9981bc0bb8f42b2e89df6b2ab79e441e1 (patch)
tree7be209e9cef3af9d1a0abe340d9c2676662768c1 /API.md
parent7d8747ca289bb027e33fab5c1859bd042a75b90e (diff)
Allow gallery to display item images
Diffstat (limited to 'API.md')
-rw-r--r--API.md5
1 files changed, 4 insertions, 1 deletions
diff --git a/API.md b/API.md
index 471800b..2cc8711 100644
--- a/API.md
+++ b/API.md
@@ -492,7 +492,10 @@ adding more galleries is not supported and will lead to bugs.
### Parameters
* `imagedata`: List of images to be displayed in the specified order. All images must
have the same aspect ratio. It's a table of tables with this format:
- * `image`: Texture name of an image
+ * `imagetype`: Type of image to be used (optional):
+ * `"image"`: Texture file (default)
+ * `"item"`: Item image, specified as itemstring
+ * `image`: What to display. Depending on `imagetype`, a texture file or itemstring
* `playername`: Name of the player who is viewing the entry in question
* `x`: Formspec X coordinate of the top left corner (optional)
* `y`: Formspec Y coordinate of the top left corner (optional)