mirror of
https://github.com/Earu/EasyChat.git
synced 2025-03-04 03:13:20 -05:00
tweaks
This commit is contained in:
parent
8ac9c8ebac
commit
45e2e0ff44
@ -7,12 +7,14 @@
|
|||||||
"*.vcproj",
|
"*.vcproj",
|
||||||
"*.svn*",
|
"*.svn*",
|
||||||
"*.md",
|
"*.md",
|
||||||
|
"*.dll",
|
||||||
".git/*",
|
".git/*",
|
||||||
".gitignore",
|
".gitignore",
|
||||||
"update.bat",
|
"update.bat",
|
||||||
".gma",
|
".gma",
|
||||||
"glualint.json",
|
"glualint.json",
|
||||||
".github/*",
|
".github/*",
|
||||||
"bin/*"
|
"bin/*",
|
||||||
|
"external_data/*"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@ -19,6 +19,7 @@ end
|
|||||||
panel:SetWide(150)
|
panel:SetWide(150)
|
||||||
panel.old_paint = panel.Paint
|
panel.old_paint = panel.Paint
|
||||||
local panel_title = "Message Receivers"
|
local panel_title = "Message Receivers"
|
||||||
|
local ec_cvar_dist = GetConVar("easychat_local_msg_distance")
|
||||||
function panel:Paint(w, h)
|
function panel:Paint(w, h)
|
||||||
if not EasyChat.IsOpened() then return end
|
if not EasyChat.IsOpened() then return end
|
||||||
if EasyChat.GetActiveTab().Name ~= "Global" then return end
|
if EasyChat.GetActiveTab().Name ~= "Global" then return end
|
||||||
@ -41,9 +42,7 @@ function panel:Paint(w, h)
|
|||||||
|
|
||||||
local i = 1
|
local i = 1
|
||||||
for _, ply in pairs(player.GetAll()) do
|
for _, ply in pairs(player.GetAll()) do
|
||||||
if ply ~= LocalPlayer()
|
if ply ~= LocalPlayer() and ply:GetPos():Distance(LocalPlayer():GetPos()) <= ec_cvar_dist:GetInt() then
|
||||||
and ply:GetPos():Distance(LocalPlayer():GetPos()) <= GetConVar("easychat_local_msg_distance"):GetInt()
|
|
||||||
then
|
|
||||||
self:SetTall(5 + (20 * (i + 1)))
|
self:SetTall(5 + (20 * (i + 1)))
|
||||||
|
|
||||||
ec_markup.CachePlayer("LocalUI", ply, function()
|
ec_markup.CachePlayer("LocalUI", ply, function()
|
||||||
|
Loading…
Reference in New Issue
Block a user