From 8f9630663de71d9d22829df5260f4874259c356d Mon Sep 17 00:00:00 2001 From: Fesiug Date: Mon, 9 Oct 2023 15:45:40 -0400 Subject: [PATCH] Inv fix --- gamemodes/benny/gamemode/modules/player/cl_hud.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gamemodes/benny/gamemode/modules/player/cl_hud.lua b/gamemodes/benny/gamemode/modules/player/cl_hud.lua index 7b48494..1bfcb29 100644 --- a/gamemodes/benny/gamemode/modules/player/cl_hud.lua +++ b/gamemodes/benny/gamemode/modules/player/cl_hud.lua @@ -534,9 +534,9 @@ hook.Add( "HUDPaint", "Benny_HUDPaint", function() else for d, item in ipairs( bucket ) do local idata = WEAPONS[inv[item].Class] - surface.SetDrawColor( scheme["bg"] ) - surface.DrawRect( bump + b, (item_start+ybump) + b, size_textx, size_texty ) local sel = d==item_selected + surface.SetDrawColor( scheme["bg"] ) + surface.DrawRect( bump + b, (item_start+ybump) + b, size_textx, (sel and size_texty_sel or size_texty) ) if sel then surface.SetDrawColor( scheme["fg"] ) surface.DrawRect( bump + b + gap, (item_start+ybump) + b + gap, size_textx - (gap*2), (sel and size_texty_sel or size_texty) - (gap*2) )