This commit is contained in:
Fesiug 2023-10-09 15:45:40 -04:00
parent 2be4facd8a
commit 8f9630663d
1 changed files with 2 additions and 2 deletions

View File

@ -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) )