summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorWuzzy <almikes@aol.com>2016-11-29 18:14:09 +0100
committerWuzzy <almikes@aol.com>2016-11-29 18:14:09 +0100
commitcd98073c40a3340526a3a4238b5c71eefb57f2c5 (patch)
tree4493835129610bb2f941118d168345b5f637e526 /init.lua
parent4d2b79732c62bf4b33c9262df295094591f1495e (diff)
Add docs for doc.widgets.gallery
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/init.lua b/init.lua
index 15026db..fedfd88 100644
--- a/init.lua
+++ b/init.lua
@@ -511,6 +511,7 @@ doc.widgets.text = function(data, x, y, width, height)
end
-- Image gallery
+-- Currently, only one gallery per entry is supported. TODO: Add support for multiple galleries in an entry (low priority)
doc.widgets.gallery = function(imagedata, playername, x, y, aspect_ratio, width, rows)
if playername == nil then return nil end -- emergency exit
@@ -564,8 +565,7 @@ doc.widgets.gallery = function(imagedata, playername, x, y, aspect_ratio, width,
end
local bw, bh
- -- TODO: Use different identifiers
- return formstring, "doc_button_gallery_prev", "doc_button_gallery_next"
+ return formstring, ih
end
-- Direct formspec