forked from your-land-mirror/minetest-flow
Document setting initial context value
This commit is contained in:
parent
3e16f91ac7
commit
7cb1c1c235
@ -75,6 +75,10 @@ end)
|
||||
-- Note that `player` is a player object and not a player name.
|
||||
my_gui:show(player)
|
||||
|
||||
-- You can provide an initial value for `ctx` by adding a second parameter to
|
||||
-- show(). In the below example, `ctx.value` will be "test".
|
||||
my_gui:show(player, {value = "test"})
|
||||
|
||||
-- Close the form
|
||||
my_gui:close(player)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user