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

refact: rename hook

This commit is contained in:
Aoki 2024-12-08 04:42:02 +02:00
parent e8b604851e
commit 7077e5ab9b
2 changed files with 2 additions and 2 deletions

View File

@ -207,7 +207,7 @@ local CHATBOX = {
EasyChat.BlurPanel(self, 6, 0, -13, -5)
self:NoClipping(true)
self.Paint = function(self, w, h)
hook.Run( 'EasyChat.GUI.ChatBox.Paint', self, w, h )
hook.Run( 'ECChatboxPaint', self, w, h )
surface_SetDrawColor(EasyChat.OutlayColor)
surface_DrawRect(6, 0, w - 13, 28)

View File

@ -25,7 +25,7 @@ local ec_cvar_dist = GetConVar("easychat_local_msg_distance")
local horizontal_padding = 15
local vertical_padding = 5
hook.Add( "EasyChat.GUI.ChatBox.Paint", "LocalUI", function( chatbox, w, h )
hook.Add( "ECChatboxPaint", "LocalUI", function( chatbox, w, h )
panel:PaintManual()
end )