Colorize some info messages

This commit is contained in:
Wuzzy 2019-08-29 23:24:35 +02:00
parent 29e8be0825
commit 7957cb9883
4 changed files with 6 additions and 6 deletions

View File

@ -366,7 +366,7 @@ minetest.register_node(
-- No sleeping while moving
if vector.length(clicker:get_player_velocity()) > 0.001 then
minetest.chat_send_player(name, S("You have to stop moving before going to bed!"))
minetest.chat_send_player(name, minetest.colorize("#FFFF00", S("You have to stop moving before going to bed!")))
return false
end

View File

@ -1558,7 +1558,7 @@ function mobs:capture_mob(self, clicker, chance_hand, chance_net, chance_lasso,
-- Is mob tamed?
if self.tamed == false and force_take == false then
minetest.chat_send_player(name, S("Not tamed!"))
minetest.chat_send_player(name, minetest.colorize("#FFFF00", S("Not tamed!")))
return
end
@ -1566,7 +1566,7 @@ function mobs:capture_mob(self, clicker, chance_hand, chance_net, chance_lasso,
-- Cannot pick up if not owner
if self.owner ~= name and force_take == false then
minetest.chat_send_player(name, S("@1 is owner!", self.owner))
minetest.chat_send_player(name, minetest.colorize("#FFFF00", S("@1 is owner!", self.owner)))
return
end
@ -1603,7 +1603,7 @@ function mobs:capture_mob(self, clicker, chance_hand, chance_net, chance_lasso,
achievements.trigger_achievement(clicker, "ranger")
else
minetest.chat_send_player(name, S("Missed!"))
minetest.chat_send_player(name, minetest.colorize("#FFFF00", S("Missed!")))
end
end
end

View File

@ -79,7 +79,7 @@ minetest.register_craftitem(
wield_image = "nav_inventory.png",
stack_max = 1,
on_use = function(itemstack, user, pointed_thing)
minetest.chat_send_player(user:get_player_name(), S("Use the minimap key to show the map."))
minetest.chat_send_player(user:get_player_name(), minetest.colorize("#FFFF00", S("Use the minimap key to show the map.")))
nav.map.update_hud_flags(user)
end,
})

View File

@ -62,7 +62,7 @@ minetest.register_craftitem(
else
minetest.chat_send_player(
player:get_player_name(),
S("Cannot open parachute on ground!"))
minetest.colorize("#FFFF00", S("Cannot open parachute on ground!")))
end
end
})