Add firemode bar

This commit is contained in:
Fesiug 2023-12-21 03:50:11 -05:00
parent 1b6ba1365c
commit d0cbbf06d4
1 changed files with 25 additions and 21 deletions

View File

@ -334,11 +334,13 @@ function OpenSMenu()
fucker:Dock( TOP ) fucker:Dock( TOP )
fucker:DockMargin( 0, 0, 0, ss(2) ) fucker:DockMargin( 0, 0, 0, ss(2) )
function fucker:Paint( w, h ) function fucker:Paint( w, h )
if pan_active then
local hm = WeaponGet( pan_active ) local hm = WeaponGet( pan_active )
surface.SetDrawColor( schema("fg") ) surface.SetDrawColor( schema("fg") )
surface.DrawRect( 0, 0, w, h ) surface.DrawRect( 0, 0, w, h )
draw.SimpleText( BENNY_GetStat( hm, "Ammo" ) .. " rounds", "Benny_12", ss(2), ss(2), schema_c("bg") ) draw.SimpleText( BENNY_GetStat( hm, "Ammo" ) .. " rounds", "Benny_12", ss(2), ss(2), schema_c("bg") )
end
return true return true
end end
end end
@ -349,6 +351,7 @@ function OpenSMenu()
fucker:Dock( TOP ) fucker:Dock( TOP )
fucker:DockMargin( 0, 0, 0, ss(2) ) fucker:DockMargin( 0, 0, 0, ss(2) )
function fucker:Paint( w, h ) function fucker:Paint( w, h )
if pan_active then
local hm = WeaponGet( pan_active ) local hm = WeaponGet( pan_active )
surface.SetDrawColor( schema("fg") ) surface.SetDrawColor( schema("fg") )
surface.DrawRect( 0, 0, w, h ) surface.DrawRect( 0, 0, w, h )
@ -370,6 +373,7 @@ function OpenSMenu()
end end
end end
draw.SimpleText( fms, "Benny_12", ss(2), ss(2), schema_c("bg") ) draw.SimpleText( fms, "Benny_12", ss(2), ss(2), schema_c("bg") )
end
return true return true
end end
end end