mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-11-15 23:10:31 +01:00
[areas] improve HUD text further
This commit is contained in:
parent
6a310d9f8d
commit
c10258cf35
|
@ -34,7 +34,11 @@ local function tick()
|
|||
|
||||
local icon = "areas_not_area.png"
|
||||
if nb_areas > 0 then
|
||||
area_text = ("Nb area(s): %u\nOwner: %s\nName: %s"):format(nb_areas, area_owner_name, area_name)
|
||||
local plural = ""
|
||||
if nb_areas > 1 then
|
||||
plural = "s"
|
||||
end
|
||||
area_text = ("%s\nOwner: %s\n%u area" .. plural):format(area_name, area_owner_name, nb_areas)
|
||||
icon = ("areas_%u_%u_%u.png"):format(mod_owner, mod_open, mod_farming)
|
||||
end
|
||||
if not areas.hud[name] then
|
||||
|
|
Loading…
Reference in New Issue
Block a user