1
0
mirror of https://github.com/Earu/EasyChat.git synced 2025-03-04 03:13:20 -05:00
This commit is contained in:
Earu 2022-07-18 19:22:04 +02:00
parent 8ac9c8ebac
commit 45e2e0ff44
2 changed files with 5 additions and 4 deletions

View File

@ -7,12 +7,14 @@
"*.vcproj",
"*.svn*",
"*.md",
"*.dll",
".git/*",
".gitignore",
"update.bat",
".gma",
"glualint.json",
".github/*",
"bin/*"
"bin/*",
"external_data/*"
]
}

View File

@ -19,6 +19,7 @@ end
panel:SetWide(150)
panel.old_paint = panel.Paint
local panel_title = "Message Receivers"
local ec_cvar_dist = GetConVar("easychat_local_msg_distance")
function panel:Paint(w, h)
if not EasyChat.IsOpened() then return end
if EasyChat.GetActiveTab().Name ~= "Global" then return end
@ -41,9 +42,7 @@ function panel:Paint(w, h)
local i = 1
for _, ply in pairs(player.GetAll()) do
if ply ~= LocalPlayer()
and ply:GetPos():Distance(LocalPlayer():GetPos()) <= GetConVar("easychat_local_msg_distance"):GetInt()
then
if ply ~= LocalPlayer() and ply:GetPos():Distance(LocalPlayer():GetPos()) <= ec_cvar_dist:GetInt() then
self:SetTall(5 + (20 * (i + 1)))
ec_markup.CachePlayer("LocalUI", ply, function()