Comments for gallery

master
Wuzzy 2016-12-20 19:07:59 +01:00
parent 68404f0016
commit 8ad3bc33cb
1 changed files with 3 additions and 1 deletions

View File

@ -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). ]]