Comments for gallery
parent
68404f0016
commit
8ad3bc33cb
4
doc.lua
4
doc.lua
|
@ -194,11 +194,13 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
--[[ This category shows off the gallery widget ]]
|
--[[ This category demonstrates the use of the gallery widget. ]]
|
||||||
-- FIXME: Depends on Minetest Game
|
-- FIXME: Depends on Minetest Game
|
||||||
doc.new_category("example4", {
|
doc.new_category("example4", {
|
||||||
name="Example: Galleries",
|
name="Example: Galleries",
|
||||||
build_formspec = function(data, playername)
|
build_formspec = function(data, playername)
|
||||||
|
-- The trick here is to include doc.widgets.gallery into the custom
|
||||||
|
-- build_formspec definition.
|
||||||
local formspec = ""
|
local formspec = ""
|
||||||
--[[ Mostly using default values, but we want an aspect ratio of
|
--[[ Mostly using default values, but we want an aspect ratio of
|
||||||
1:1 (square). ]]
|
1:1 (square). ]]
|
||||||
|
|
Loading…
Reference in New Issue