Add help buttons
This commit is contained in:
parent
c441426739
commit
2441e9e54e
3 changed files with 16 additions and 2 deletions
|
@ -1,2 +1,10 @@
|
|||
-- Disable built-in factoids; it is planned to add custom ones as replacements
|
||||
doc.sub.items.disable_core_factoid("node_mining")
|
||||
doc.sub.items.disable_core_factoid("tool_capabilities")
|
||||
|
||||
-- Help button callback
|
||||
minetest.register_on_player_receive_fields(function(player, formname, fields)
|
||||
if fields.__mcl_doc then
|
||||
doc.show_doc(player:get_player_name())
|
||||
end
|
||||
end)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue