Add colors for HUD and messages

This commit is contained in:
Peppy 2019-12-07 08:46:24 +01:00
parent ed867b9c17
commit 3920de8356

View File

@ -299,7 +299,7 @@ else
scale = { x = 0, y = 0 }, scale = { x = 0, y = 0 },
alignment = { x = -1, y = 0}, alignment = { x = -1, y = 0},
direction = 1, direction = 1,
number = 0xFFFFFF, number = 0x3eb7e5,
offset = { x = -18, y = -40} offset = { x = -18, y = -40}
}) })
mana.playerlist[playername].hudid = id mana.playerlist[playername].hudid = id
@ -339,7 +339,7 @@ function mana.checkmana(playername, drainrate)
mana.subtract(playername, newdrain) mana.subtract(playername, newdrain)
return true return true
end end
minetest.chat_send_player(playername, S("Not enough mana.")) minetest.chat_send_player(playername, core.colorize("#FF0000",S("Not enough mana.")))
return false return false
end end