Show a message on how to add markers to maps

This commit is contained in:
Nils Dagsson Moskopp 2022-02-05 07:12:55 +01:00
parent 6ff0303802
commit e91f29ac24
No known key found for this signature in database
GPG Key ID: A3BC671C35191080
2 changed files with 9 additions and 1 deletions

View File

@ -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

View File

@ -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