From bbee30500519ca55e68256b456ae1f82ee514aa5 Mon Sep 17 00:00:00 2001 From: Legera <38213687+legerakun@users.noreply.github.com> Date: Tue, 29 Nov 2022 15:58:30 +0800 Subject: [PATCH 1/2] Update cl_tooltip.lua When PaintUnder is reassigned it is called with no arguments. (example: tooltip.PaintUnder = function(self, w, h) ... end will cause argument error) --- gamemode/core/derma/cl_tooltip.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gamemode/core/derma/cl_tooltip.lua b/gamemode/core/derma/cl_tooltip.lua index 90c7bef09..13cdccc2a 100644 --- a/gamemode/core/derma/cl_tooltip.lua +++ b/gamemode/core/derma/cl_tooltip.lua @@ -296,7 +296,7 @@ function PANEL:PaintUnder(width, height) end function PANEL:Paint(width, height) - self:PaintUnder() + self:PaintUnder(width, height) -- directional arrow self.bRaised = LocalPlayer():IsWepRaised() From 2ddd182875ef01469050cd67d788de398e8fa265 Mon Sep 17 00:00:00 2001 From: Legera <38213687+legerakun@users.noreply.github.com> Date: Tue, 29 Nov 2022 17:19:07 +0800 Subject: [PATCH 2/2] Update cl_tooltip.lua --- gamemode/core/derma/cl_tooltip.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gamemode/core/derma/cl_tooltip.lua b/gamemode/core/derma/cl_tooltip.lua index 13cdccc2a..77960de8c 100644 --- a/gamemode/core/derma/cl_tooltip.lua +++ b/gamemode/core/derma/cl_tooltip.lua @@ -505,7 +505,7 @@ function PANEL:AddRow(id) end function PANEL:Paint(width, height) - self:PaintUnder() + self:PaintUnder(width, height) derma.SkinFunc("PaintTooltipMinimalBackground", self, width, height) end