From e91f29ac248f30dcffebed20e1dc1ac9e41a9ead Mon Sep 17 00:00:00 2001 From: Nils Dagsson Moskopp Date: Sat, 5 Feb 2022 07:12:55 +0100 Subject: [PATCH] Show a message on how to add markers to maps --- mods/ITEMS/mcl_maps/init.lua | 8 ++++++++ mods/ITEMS/mcl_maps/mod.conf | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/mods/ITEMS/mcl_maps/init.lua b/mods/ITEMS/mcl_maps/init.lua index 998031d9..fa0297aa 100644 --- a/mods/ITEMS/mcl_maps/init.lua +++ b/mods/ITEMS/mcl_maps/init.lua @@ -509,6 +509,14 @@ minetest.register_globalstep(function(dtime) if texture ~= maps[player] then player:hud_change(hud.map, "text", "[combine:140x140:0,0=mcl_maps_map_background.png:6,6=" .. texture) + if nil == maps[player] then + -- show tmp message if player + -- did not wield a map before + mcl_tmp_message.message( + player, + S("Right click on a banner to add a colored marker.") + ) + end maps[player] = texture end diff --git a/mods/ITEMS/mcl_maps/mod.conf b/mods/ITEMS/mcl_maps/mod.conf index e7145915..f7479aa4 100644 --- a/mods/ITEMS/mcl_maps/mod.conf +++ b/mods/ITEMS/mcl_maps/mod.conf @@ -1,2 +1,2 @@ name = mcl_maps -depends = mcl_banners, mcl_core, mcl_flowers, tga_encoder, tt, mcl_colors, mcl_skins, mcl_util +depends = mcl_banners, mcl_core, mcl_flowers, tga_encoder, tt, mcl_colors, mcl_skins, mcl_util, mcl_tmp_message