Help text convar

This commit is contained in:
Xerasin 2021-10-18 18:41:28 -07:00
parent 44f192f1f6
commit fa147558fd
2 changed files with 3 additions and 1 deletions

View File

@ -29,6 +29,7 @@ if CLIENT then
wowozela.volume = CreateClientConVar("wowozela_volume", "0.5", true, false)
wowozela.hudtext = CreateClientConVar("wowozela_hudtext", "1", true, false)
wowozela.pitchbar = CreateClientConVar("wowozela_pitchbar", "1", true, false)
wowozela.help = CreateClientConVar("wowozela_help", "1", true, false)
wowozela.defaultpage = CreateClientConVar("wowozela_defaultpage", "", true, false)
local function set_sample_index(which, note_index)

View File

@ -592,6 +592,7 @@ if CLIENT then
local freeze_mouse
function SWEP:DrawHelp(center_x)
if wowozela.help and not wowozela.help:GetBool() then return end
local keyName = input.LookupBinding("+menu", true) or "<+menu not bound>"
draw_lines(center_x, ScrH(),
@ -694,7 +695,7 @@ if CLIENT then
local in_menu = self:GetOwner():KeyDown(IN_RELOAD)
if show_help_text then
if show_help_text and (not wowozela.help or wowozela.help:GetBool()) then
draw_lines(center_x, ScrH(), {"to select different sounds, hold " ..
(input.LookupBinding("+reload", true) or "<+reload not bound>")})
end