forked from Mineclonia/Mineclonia
Show a message on how to add markers to maps
This commit is contained in:
parent
6ff0303802
commit
e91f29ac24
|
@ -509,6 +509,14 @@ minetest.register_globalstep(function(dtime)
|
||||||
|
|
||||||
if texture ~= maps[player] then
|
if texture ~= maps[player] then
|
||||||
player:hud_change(hud.map, "text", "[combine:140x140:0,0=mcl_maps_map_background.png:6,6=" .. texture)
|
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
|
maps[player] = texture
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
name = mcl_maps
|
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
|
||||||
|
|
Loading…
Reference in New Issue