Use new doc_items field names

This commit is contained in:
Wuzzy 2016-11-16 06:49:20 +01:00
parent dfe8a8c41b
commit da93f8bc5f

@ -50,8 +50,8 @@ local use_time = S("Put this tool in your hotbar to make use of its functionalit
-- Displays height (Y) -- Displays height (Y)
minetest.register_tool("orienteering:altimeter", { minetest.register_tool("orienteering:altimeter", {
description = S("Altimeter"), description = S("Altimeter"),
x_doc_items_longdesc = S("It shows you your current elevation (Y)."), _doc_items_longdesc = S("It shows you your current elevation (Y)."),
x_doc_items_usagehelp = use, _doc_items_usagehelp = use,
wield_image = "orienteering_altimeter.png", wield_image = "orienteering_altimeter.png",
inventory_image = "orienteering_altimeter.png", inventory_image = "orienteering_altimeter.png",
}) })
@ -59,8 +59,8 @@ minetest.register_tool("orienteering:altimeter", {
-- Displays X and Z coordinates -- Displays X and Z coordinates
minetest.register_tool("orienteering:triangulator", { minetest.register_tool("orienteering:triangulator", {
description = S("Triangulator"), description = S("Triangulator"),
x_doc_items_longdesc = S("It shows you the coordinates of your current position in the horizontal plane (X and Z)."), _doc_items_longdesc = S("It shows you the coordinates of your current position in the horizontal plane (X and Z)."),
x_doc_items_usagehelp = use, _doc_items_usagehelp = use,
wield_image = "orienteering_triangulator.png", wield_image = "orienteering_triangulator.png",
inventory_image = "orienteering_triangulator.png", inventory_image = "orienteering_triangulator.png",
}) })
@ -69,8 +69,8 @@ minetest.register_tool("orienteering:triangulator", {
-- TODO: calculate yaw difference between 2 points -- TODO: calculate yaw difference between 2 points
minetest.register_tool("orienteering:compass", { minetest.register_tool("orienteering:compass", {
description = S("Compass"), description = S("Compass"),
x_doc_items_longdesc = S("It shows you your yaw (horizontal viewing angle) in degrees."), _doc_items_longdesc = S("It shows you your yaw (horizontal viewing angle) in degrees."),
x_doc_items_usagehelp = use, _doc_items_usagehelp = use,
wield_image = "orienteering_compass_wield.png", wield_image = "orienteering_compass_wield.png",
inventory_image = "orienteering_compass_inv.png", inventory_image = "orienteering_compass_inv.png",
}) })
@ -79,8 +79,8 @@ minetest.register_tool("orienteering:compass", {
-- TODO: calculate pitch difference between 2 points -- TODO: calculate pitch difference between 2 points
minetest.register_tool("orienteering:sextant", { minetest.register_tool("orienteering:sextant", {
description = S("Sextant"), description = S("Sextant"),
x_doc_items_longdesc = S("It shows you your pitch (vertical viewing angle) in degrees."), _doc_items_longdesc = S("It shows you your pitch (vertical viewing angle) in degrees."),
x_doc_items_usagehelp = use, _doc_items_usagehelp = use,
wield_image = "orienteering_sextant_wield.png", wield_image = "orienteering_sextant_wield.png",
inventory_image = "orienteering_sextant_inv.png", inventory_image = "orienteering_sextant_inv.png",
}) })
@ -88,9 +88,9 @@ minetest.register_tool("orienteering:sextant", {
-- Ultimate orienteering tool: Displays X,Y,Z, yaw, pitch, time, speed and enables the minimap -- Ultimate orienteering tool: Displays X,Y,Z, yaw, pitch, time, speed and enables the minimap
minetest.register_tool("orienteering:quadcorder", { minetest.register_tool("orienteering:quadcorder", {
description = S("Quadcorder"), description = S("Quadcorder"),
x_doc_items_longdesc = S("This is the ultimate orientieering tool. It shows you your coordinates (X, Y and Z), shows your yaw and pitch (horizontal and vertical viewing angles), the current time, your current speed and it enables you to access the minimap."), _doc_items_longdesc = S("This is the ultimate orientieering tool. It shows you your coordinates (X, Y and Z), shows your yaw and pitch (horizontal and vertical viewing angles), the current time, your current speed and it enables you to access the minimap."),
wield_image = "orienteering_quadcorder.png", wield_image = "orienteering_quadcorder.png",
x_doc_items_usagehelp = use_time, _doc_items_usagehelp = use_time,
wield_scale = { x=1, y=1, z=3.5 }, wield_scale = { x=1, y=1, z=3.5 },
inventory_image = "orienteering_quadcorder.png", inventory_image = "orienteering_quadcorder.png",
on_use = orienteering.toggle_time_mode, on_use = orienteering.toggle_time_mode,
@ -99,8 +99,8 @@ minetest.register_tool("orienteering:quadcorder", {
-- Displays game time -- Displays game time
minetest.register_tool("orienteering:watch", { minetest.register_tool("orienteering:watch", {
description = S("Watch"), description = S("Watch"),
x_doc_items_longdesc = S("It shows you the current time."), _doc_items_longdesc = S("It shows you the current time."),
x_doc_items_usagehelp = S("Put the watch in your hotbar to see the time. Leftclick to toggle between the 24-hour and 12-hour display."), _doc_items_usagehelp = S("Put the watch in your hotbar to see the time. Leftclick to toggle between the 24-hour and 12-hour display."),
wield_image = "orienteering_watch.png", wield_image = "orienteering_watch.png",
inventory_image = "orienteering_watch.png", inventory_image = "orienteering_watch.png",
on_use = orienteering.toggle_time_mode, on_use = orienteering.toggle_time_mode,
@ -109,8 +109,8 @@ minetest.register_tool("orienteering:watch", {
-- Displays speed -- Displays speed
minetest.register_tool("orienteering:speedometer", { minetest.register_tool("orienteering:speedometer", {
description = S("Speedometer"), description = S("Speedometer"),
x_doc_items_longdesc = S("It shows you your current horizontal (“hor.”) and vertical (“ver.”) speed in meters per second, where one meter is the side length of a single cube."), _doc_items_longdesc = S("It shows you your current horizontal (“hor.”) and vertical (“ver.”) speed in meters per second, where one meter is the side length of a single cube."),
x_doc_items_usagehelp = use, _doc_items_usagehelp = use,
wield_image = "orienteering_speedometer_wield.png", wield_image = "orienteering_speedometer_wield.png",
inventory_image = "orienteering_speedometer_inv.png", inventory_image = "orienteering_speedometer_inv.png",
}) })
@ -118,8 +118,8 @@ minetest.register_tool("orienteering:speedometer", {
-- Enables minimap -- Enables minimap
minetest.register_tool("orienteering:automapper", { minetest.register_tool("orienteering:automapper", {
description = S("Automapper"), description = S("Automapper"),
x_doc_items_longdesc = S("The automapper automatically creates a map of the area around you and enables you to view a minimap of your surroundings. It also has a built-in radar."), _doc_items_longdesc = S("The automapper automatically creates a map of the area around you and enables you to view a minimap of your surroundings. It also has a built-in radar."),
x_doc_items_usagehelp = S("If you put an automapper in your hotbar, you will be able to access the minimap. By default the minimap can be opened with [F7]."), _doc_items_usagehelp = S("If you put an automapper in your hotbar, you will be able to access the minimap. By default the minimap can be opened with [F7]."),
wield_image = "orienteering_automapper_wield.png", wield_image = "orienteering_automapper_wield.png",
wield_scale = { x=1, y=1, z=2 }, wield_scale = { x=1, y=1, z=2 },
inventory_image = "orienteering_automapper_inv.png", inventory_image = "orienteering_automapper_inv.png",
@ -128,8 +128,8 @@ minetest.register_tool("orienteering:automapper", {
-- Displays X,Y,Z coordinates, yaw and game time -- Displays X,Y,Z coordinates, yaw and game time
minetest.register_tool("orienteering:gps", { minetest.register_tool("orienteering:gps", {
description = S("GPS device"), description = S("GPS device"),
x_doc_items_longdesc = S("The GPS device shows you your coordinates (X, Y and Z), your yaw (horizontal viewing angle) and the time."), _doc_items_longdesc = S("The GPS device shows you your coordinates (X, Y and Z), your yaw (horizontal viewing angle) and the time."),
x_doc_items_usagehelp = use_time, _doc_items_usagehelp = use_time,
wield_image = "orienteering_gps_wield.png", wield_image = "orienteering_gps_wield.png",
wield_scale = { x=1, y=1, z=2 }, wield_scale = { x=1, y=1, z=2 },
inventory_image = "orienteering_gps_inv.png", inventory_image = "orienteering_gps_inv.png",