mirror of
https://repo.or.cz/minetest_orienteering.git
synced 2025-01-10 06:37:30 +01:00
Use new doc_items field names
This commit is contained in:
parent
dfe8a8c41b
commit
da93f8bc5f
36
init.lua
36
init.lua
@ -50,8 +50,8 @@ local use_time = S("Put this tool in your hotbar to make use of its functionalit
|
||||
-- Displays height (Y)
|
||||
minetest.register_tool("orienteering:altimeter", {
|
||||
description = S("Altimeter"),
|
||||
x_doc_items_longdesc = S("It shows you your current elevation (Y)."),
|
||||
x_doc_items_usagehelp = use,
|
||||
_doc_items_longdesc = S("It shows you your current elevation (Y)."),
|
||||
_doc_items_usagehelp = use,
|
||||
wield_image = "orienteering_altimeter.png",
|
||||
inventory_image = "orienteering_altimeter.png",
|
||||
})
|
||||
@ -59,8 +59,8 @@ minetest.register_tool("orienteering:altimeter", {
|
||||
-- Displays X and Z coordinates
|
||||
minetest.register_tool("orienteering: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)."),
|
||||
x_doc_items_usagehelp = use,
|
||||
_doc_items_longdesc = S("It shows you the coordinates of your current position in the horizontal plane (X and Z)."),
|
||||
_doc_items_usagehelp = use,
|
||||
wield_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
|
||||
minetest.register_tool("orienteering:compass", {
|
||||
description = S("Compass"),
|
||||
x_doc_items_longdesc = S("It shows you your yaw (horizontal viewing angle) in degrees."),
|
||||
x_doc_items_usagehelp = use,
|
||||
_doc_items_longdesc = S("It shows you your yaw (horizontal viewing angle) in degrees."),
|
||||
_doc_items_usagehelp = use,
|
||||
wield_image = "orienteering_compass_wield.png",
|
||||
inventory_image = "orienteering_compass_inv.png",
|
||||
})
|
||||
@ -79,8 +79,8 @@ minetest.register_tool("orienteering:compass", {
|
||||
-- TODO: calculate pitch difference between 2 points
|
||||
minetest.register_tool("orienteering:sextant", {
|
||||
description = S("Sextant"),
|
||||
x_doc_items_longdesc = S("It shows you your pitch (vertical viewing angle) in degrees."),
|
||||
x_doc_items_usagehelp = use,
|
||||
_doc_items_longdesc = S("It shows you your pitch (vertical viewing angle) in degrees."),
|
||||
_doc_items_usagehelp = use,
|
||||
wield_image = "orienteering_sextant_wield.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
|
||||
minetest.register_tool("orienteering: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",
|
||||
x_doc_items_usagehelp = use_time,
|
||||
_doc_items_usagehelp = use_time,
|
||||
wield_scale = { x=1, y=1, z=3.5 },
|
||||
inventory_image = "orienteering_quadcorder.png",
|
||||
on_use = orienteering.toggle_time_mode,
|
||||
@ -99,8 +99,8 @@ minetest.register_tool("orienteering:quadcorder", {
|
||||
-- Displays game time
|
||||
minetest.register_tool("orienteering:watch", {
|
||||
description = S("Watch"),
|
||||
x_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_longdesc = S("It shows you the current time."),
|
||||
_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",
|
||||
inventory_image = "orienteering_watch.png",
|
||||
on_use = orienteering.toggle_time_mode,
|
||||
@ -109,8 +109,8 @@ minetest.register_tool("orienteering:watch", {
|
||||
-- Displays speed
|
||||
minetest.register_tool("orienteering: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."),
|
||||
x_doc_items_usagehelp = use,
|
||||
_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_usagehelp = use,
|
||||
wield_image = "orienteering_speedometer_wield.png",
|
||||
inventory_image = "orienteering_speedometer_inv.png",
|
||||
})
|
||||
@ -118,8 +118,8 @@ minetest.register_tool("orienteering:speedometer", {
|
||||
-- Enables minimap
|
||||
minetest.register_tool("orienteering: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."),
|
||||
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_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_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_scale = { x=1, y=1, z=2 },
|
||||
inventory_image = "orienteering_automapper_inv.png",
|
||||
@ -128,8 +128,8 @@ minetest.register_tool("orienteering:automapper", {
|
||||
-- Displays X,Y,Z coordinates, yaw and game time
|
||||
minetest.register_tool("orienteering:gps", {
|
||||
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."),
|
||||
x_doc_items_usagehelp = use_time,
|
||||
_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_usagehelp = use_time,
|
||||
wield_image = "orienteering_gps_wield.png",
|
||||
wield_scale = { x=1, y=1, z=2 },
|
||||
inventory_image = "orienteering_gps_inv.png",
|
||||
|
Loading…
Reference in New Issue
Block a user