From 57b60c50ef05e68d38169b6d7f9edca98e9f42f8 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Sat, 7 Nov 2020 00:54:28 +0100 Subject: [PATCH] Add tt helptexts --- init.lua | 10 ++++++++++ locale/orienteering.de.tr | 11 +++++++++++ locale/template.txt | 12 ++++++++++++ 3 files changed, 33 insertions(+) diff --git a/init.lua b/init.lua index 47cc28a..23885b7 100644 --- a/init.lua +++ b/init.lua @@ -48,6 +48,7 @@ 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"), + _tt_help = S("Shows your elevation"), _doc_items_longdesc = S("It shows you your current elevation (Y)."), _doc_items_usagehelp = use, wield_image = "orienteering_altimeter.png", @@ -58,6 +59,7 @@ minetest.register_tool("orienteering:altimeter", { -- Displays X and Z coordinates minetest.register_tool("orienteering:triangulator", { description = S("Triangulator"), + _tt_help = S("Shows your horizontal coordinates"), _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", @@ -69,6 +71,7 @@ minetest.register_tool("orienteering:triangulator", { -- TODO: calculate yaw difference between 2 points minetest.register_tool("orienteering:compass", { description = S("Compass"), + _tt_help = S("Shows your yaw"), _doc_items_longdesc = S("It shows you your yaw (horizontal viewing angle) in degrees."), _doc_items_usagehelp = use, wield_image = "orienteering_compass_wield.png", @@ -80,6 +83,7 @@ minetest.register_tool("orienteering:compass", { -- TODO: calculate pitch difference between 2 points minetest.register_tool("orienteering:sextant", { description = S("Sextant"), + _tt_help = S("Shows your pitch"), _doc_items_longdesc = S("It shows you your pitch (vertical viewing angle) in degrees."), _doc_items_usagehelp = use, wield_image = "orienteering_sextant_wield.png", @@ -90,6 +94,7 @@ 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"), + _tt_help = S("Shows your coordinates, yaw, pitch, time, speed and enables 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", _doc_items_usagehelp = use_time, @@ -102,6 +107,7 @@ minetest.register_tool("orienteering:quadcorder", { -- Displays game time minetest.register_tool("orienteering:watch", { description = S("Watch"), + _tt_help = S("Shows the time"), _doc_items_longdesc = S("It shows you the current time."), _doc_items_usagehelp = S("Put the watch in your hotbar to see the time. Punch to toggle between the 24-hour and 12-hour display."), wield_image = "orienteering_watch.png", @@ -113,6 +119,7 @@ minetest.register_tool("orienteering:watch", { -- Displays speed minetest.register_tool("orienteering:speedometer", { description = S("Speedometer"), + _tt_help = S("Shows your speed"), _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", @@ -124,6 +131,7 @@ if not mod_map then -- Enables minimap (surface) minetest.register_tool("orienteering:map", { description = S("Map"), + _tt_help = S("Allows using the minimap"), _doc_items_longdesc = S("The map allows you to view a minimap of the area around you."), _doc_items_usagehelp = S("If you put a map in your hotbar, you will be able to access the minimap (only surface mode). Press the “minimap” key to view the minimap."), wield_image = "orienteering_map.png", @@ -136,6 +144,7 @@ end -- Enables minimap (radar) minetest.register_tool("orienteering:automapper", { description = S("Radar Mapper"), + _tt_help = S("Allows using the minimap and radar"), _doc_items_longdesc = S("The radar mapper is a device that combines a map with a radar. It unlocks both the surface mode and radar mode of the minimap."), _doc_items_usagehelp = S("If you put a radar mapper in your hotbar, you will be able to access the minimap. Press the “minimap” key to view the minimap."), wield_image = "orienteering_automapper_wield.png", @@ -147,6 +156,7 @@ minetest.register_tool("orienteering:automapper", { -- Displays X,Y,Z coordinates, yaw and game time minetest.register_tool("orienteering:gps", { description = S("GPS device"), + _tt_help = S("Shows your coordinates, yaw 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."), _doc_items_usagehelp = use_time, wield_image = "orienteering_gps_wield.png", diff --git a/locale/orienteering.de.tr b/locale/orienteering.de.tr index 46cb2d5..2b4d14a 100644 --- a/locale/orienteering.de.tr +++ b/locale/orienteering.de.tr @@ -33,6 +33,17 @@ Coordinates: X@=@1, Z@=@2=Koordinaten: X@=@1, Z@=@2 Master of Orienteering=Meister der Orientierung Craft a quadcorder.=Fertigen Sie einen Vierkorder. +Shows your horizontal coordinates=Zeigt Ihre horizontalen Koordinaten +Shows your yaw=Zeigt Ihren Gierwinkel +Shows your pitch=Zeigt Ihren Nickwinkel +Shows your coordinates, yaw, pitch, time, speed and enables minimap=Zeigt Koordinaten, Blickwinkel, Zeit, Tempo und aktiviert Übersichtskarte +Shows the time=Zeigt die Zeit +Shows your speed=Zeigt Ihre Geschwindigkeit +Allows using the minimap=Erlaubt Benuzung der Übersichtskarte +Allows using the minimap and radar=Erlaubt Benutzung der Übersichtskarte und des Radars +Shows your coordinates, yaw and the time=Zeigt Ihre Koordinaten, Gierwinkel und die Zeit +Shows your elevation=Zeigt Ihre Höhe + It shows you your yaw (horizontal viewing angle) in degrees.=Er zeigt Ihnen Ihre Gierung (horizontaler Blickwinkel) in Grad. It shows you your pitch (vertical viewing angle) in degrees.=Er zeigt Ihnen Ihren Nick (vertikaler Blickwinkel) in Grad. It shows you your current elevation (Y).=Er zeigt Ihnen Ihre momentane Höhe (Y). diff --git a/locale/template.txt b/locale/template.txt index 725fc9a..f45ab47 100644 --- a/locale/template.txt +++ b/locale/template.txt @@ -45,6 +45,18 @@ Speed: hor.: @1 @2, vert.: @3 @4= Master of Orienteering= Craft a quadcorder.= +# Tooltips / short helptexts +Shows your horizontal coordinates= +Shows your yaw= +Shows your pitch= +Shows your coordinates, yaw, pitch, time, speed and enables minimap= +Shows the time= +Shows your speed= +Allows using the minimap= +Allows using the minimap and radar= +Shows your coordinates, yaw and the time= +Shows your elevation= + # Help texts It shows you your yaw (horizontal viewing angle) in degrees.= It shows you your pitch (vertical viewing angle) in degrees.=