mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2025-01-27 10:10:28 +01:00
improve text in areas mod
This commit is contained in:
parent
66c845781b
commit
e01e3e670a
@ -6,7 +6,7 @@ local function tick()
|
|||||||
for _, player in pairs(minetest.get_connected_players()) do
|
for _, player in pairs(minetest.get_connected_players()) do
|
||||||
local name = player:get_player_name()
|
local name = player:get_player_name()
|
||||||
local pos = vector.round(player:getpos())
|
local pos = vector.round(player:getpos())
|
||||||
local area_text = "no areas\n\n"
|
local area_text = "No area(s)\n\n"
|
||||||
local area_owner_name = ""
|
local area_owner_name = ""
|
||||||
local mod_owner = 0
|
local mod_owner = 0
|
||||||
local mod_open = 0
|
local mod_open = 0
|
||||||
@ -34,7 +34,7 @@ local function tick()
|
|||||||
|
|
||||||
local icon = "areas_not_area.png"
|
local icon = "areas_not_area.png"
|
||||||
if nb_areas > 0 then
|
if nb_areas > 0 then
|
||||||
area_text = ("nb area:%u\nowner:%s\nname:%s"):format(nb_areas, area_owner_name, area_name)
|
area_text = ("Nb area(s): %u\nOwner: %s\nName: %s"):format(nb_areas, area_owner_name, area_name)
|
||||||
icon = ("areas_%u_%u_%u.png"):format(mod_owner, mod_open, mod_farming)
|
icon = ("areas_%u_%u_%u.png"):format(mod_owner, mod_open, mod_farming)
|
||||||
end
|
end
|
||||||
if not areas.hud[name] then
|
if not areas.hud[name] then
|
||||||
|
Loading…
Reference in New Issue
Block a user