Add extended tooltips
This commit is contained in:
parent
71cee9920a
commit
ba74546d48
81 changed files with 647 additions and 22 deletions
|
@ -54,13 +54,15 @@ function watch.register_item(name, image, creative, frame)
|
|||
if doc_mod and not use_doc then
|
||||
doc.add_entry_alias("craftitems", mcl_clock.stereotype, "craftitems", name)
|
||||
end
|
||||
local longdesc, usagehelp
|
||||
local longdesc, usagehelp, tt
|
||||
if use_doc then
|
||||
longdesc = S("Clocks are tools which shows the current time of day in the Overworld.")
|
||||
usagehelp = S("The clock contains a rotating disc with a sun symbol (yellow disc) and moon symbol and a little “pointer” which shows the current time of day by estimating the real position of the sun and the moon in the sky. Noon is represented by the sun symbol and midnight is represented by the moon symbol.")
|
||||
tt = S("Displays time of day in the Overworld")
|
||||
end
|
||||
minetest.register_craftitem(name, {
|
||||
description = S("Clock"),
|
||||
_tt_help = tt,
|
||||
_doc_items_create_entry = use_doc,
|
||||
_doc_items_longdesc = longdesc,
|
||||
_doc_items_usagehelp = usagehelp,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue