From 8ad3bc33cb034ced097780c673cfb1cdf715816b Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Tue, 20 Dec 2016 19:07:59 +0100 Subject: [PATCH] Comments for gallery --- doc.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/doc.lua b/doc.lua index 3408d7a..3446f15 100644 --- a/doc.lua +++ b/doc.lua @@ -194,11 +194,13 @@ minetest.register_on_player_receive_fields(function(player, formname, fields) end) ------------------------------------------------------------------------------- ---[[ This category shows off the gallery widget ]] +--[[ This category demonstrates the use of the gallery widget. ]] -- FIXME: Depends on Minetest Game doc.new_category("example4", { name="Example: Galleries", build_formspec = function(data, playername) + -- The trick here is to include doc.widgets.gallery into the custom + -- build_formspec definition. local formspec = "" --[[ Mostly using default values, but we want an aspect ratio of 1:1 (square). ]]