Add colors for HUD and messages
This commit is contained in:
parent
ed867b9c17
commit
3920de8356
4
init.lua
4
init.lua
@ -299,7 +299,7 @@ else
|
||||
scale = { x = 0, y = 0 },
|
||||
alignment = { x = -1, y = 0},
|
||||
direction = 1,
|
||||
number = 0xFFFFFF,
|
||||
number = 0x3eb7e5,
|
||||
offset = { x = -18, y = -40}
|
||||
})
|
||||
mana.playerlist[playername].hudid = id
|
||||
@ -339,7 +339,7 @@ function mana.checkmana(playername, drainrate)
|
||||
mana.subtract(playername, newdrain)
|
||||
return true
|
||||
end
|
||||
minetest.chat_send_player(playername, S("Not enough mana."))
|
||||
minetest.chat_send_player(playername, core.colorize("#FF0000",S("Not enough mana.")))
|
||||
return false
|
||||
end
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user