1
0
mirror of https://github.com/Earu/EasyChat.git synced 2025-03-04 03:13:20 -05:00

Update voice_hud.lua (#105)

This commit is contained in:
Python1320 2023-04-02 00:48:11 +03:00 committed by GitHub
parent 0090d82aad
commit 5baff34109
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -98,9 +98,8 @@ function PANEL:Paint(w, h)
self.NextVoiceData = CurTime() + 0.025
end
local wep = LocalPlayer():GetActiveWeapon()
if IsValid(wep) and wep:GetClass() == "gmod_camera" then return end
if hook.Run("HUDShouldDraw","CHudVoiceStatus") == false then return end
local bg_color = EasyChat.OutlayColor
surface.SetDrawColor(bg_color.r, bg_color.g, bg_color.b, bg_color.a)
surface.DrawRect(0, 0, w, h)