From cd98073c40a3340526a3a4238b5c71eefb57f2c5 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Tue, 29 Nov 2016 18:14:09 +0100 Subject: Add docs for doc.widgets.gallery --- init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'init.lua') 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 -- cgit v1.2.3