mirror of
https://github.com/CapsAdmin/wowozela.git
synced 2025-03-04 03:13:27 -05:00
Help text convar
This commit is contained in:
parent
44f192f1f6
commit
fa147558fd
@ -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)
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user