mirror of
https://github.com/JonnyBro/beatrun.git
synced 2024-12-27 04:23:02 +05:00
Hide everything on HudHidden 2 and hide keystrokes on HudHidden 1
This commit is contained in:
parent
e2e2d70b25
commit
38ed35b2f0
4 changed files with 4 additions and 4 deletions
|
@ -118,7 +118,7 @@ beatrun.toolsmenu.hud.keystrokes=Show Keystrokes
|
|||
beatrun.toolsmenu.hud.keystrokesdesc=Shows keys that you press
|
||||
|
||||
beatrun.toolsmenu.hud.hidden=Hide HUD
|
||||
beatrun.toolsmenu.hud.hiddendesc=0 - Shown\n1 - Gamemode only\n2 - Hidden
|
||||
beatrun.toolsmenu.hud.hiddendesc=0 - Shown\n1 - Gamemode and speedometer only\n2 - Hidden
|
||||
|
||||
beatrun.toolsmenu.hud.textcolor=HUD Text Color
|
||||
beatrun.toolsmenu.hud.cornercolor=HUD Corner Color
|
||||
|
|
|
@ -115,7 +115,7 @@ beatrun.toolsmenu.hud.keystrokes=Показывать клавиши
|
|||
beatrun.toolsmenu.hud.keystrokesdesc=Показывает нажатие клавиш в HUD
|
||||
|
||||
beatrun.toolsmenu.hud.hidden=Скрыть HUD
|
||||
beatrun.toolsmenu.hud.hiddendesc=0 - Показать\n1 - Только режим\n2 - Скрыть полностью
|
||||
beatrun.toolsmenu.hud.hiddendesc=0 - Показать\n1 - Только режим и спидометр\n2 - Скрыть полностью
|
||||
|
||||
beatrun.toolsmenu.hud.textcolor=Цвет Текста в HUD
|
||||
beatrun.toolsmenu.hud.cornercolor=Цвет Края в HUD
|
||||
|
|
|
@ -7,7 +7,7 @@ local color_black_t = Color(0, 0, 0, 100)
|
|||
local size = 35
|
||||
|
||||
local function ShowKeyStrokes()
|
||||
if showKeystrokes:GetBool() then
|
||||
if showKeystrokes:GetBool() and GetConVar("Beatrun_HUDHidden"):GetInt() == 0 then
|
||||
-- Key W
|
||||
if LocalPlayer():KeyDown(IN_FORWARD) then
|
||||
surface.SetDrawColor(color_white_t)
|
||||
|
|
|
@ -246,7 +246,7 @@ function CourseHUD()
|
|||
surface.DrawText(text)
|
||||
end
|
||||
|
||||
if GetConVar("Beatrun_ShowSpeedometer"):GetBool() then
|
||||
if GetConVar("Beatrun_ShowSpeedometer"):GetBool() and GetConVar("Beatrun_HUDHidden"):GetInt() ~= 2 then
|
||||
local speed = math.Round(ply:GetVelocity():Length() * 0.06858125)
|
||||
|
||||
if speed < 10 then
|
||||
|
|
Loading…
Reference in a new issue