Skip to content

Commit

Permalink
[FIX] No Default font for player info
Browse files Browse the repository at this point in the history
  • Loading branch information
VanderCat committed Jul 10, 2022
1 parent 3971d1f commit f3054a9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
10 changes: 7 additions & 3 deletions lua/autorun/client/HUDmain.lua
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ local customdraw = include("includes/modules/customdraw.lua")
local MCVT = include("includes/modules/massvar.lua")
local flux = include("includes/modules/flux.lua")

concommand.Add("testopen", function()
--[[concommand.Add("testopen", function()
SmallSB_Main = vgui.Create("SmallSB_Main")
end)
end)]]

local hide = {
}
Expand All @@ -43,7 +43,11 @@ local hp = {
trns = Color(0,0,0, 0)
}
hook.Add ("Think", "HUDUpdate", function()
if GetConVar("cl_yourhud_damage_enabled"):GetBool() then
local convar = GetConVar("cl_yourhud_damage_enabled")
if not convar then
return
end
if convar:GetBool() then
local dt = FrameTime()
local plr = LocalPlayer()
if (!IsValid(plr)) then return end
Expand Down
7 changes: 6 additions & 1 deletion lua/autorun/client/YourHUDSettings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,12 @@ else
size=32
}
},
selected={FontHUD=1,FontHUDsmall=2,FontHUDtarget=3}
selected={
FontHUD=1,
FontHUDsmall=2,
FontHUDtarget=3,
FontHUDtargetSmall=2
}
}
file.CreateDir("yourhud")
file.Write("yourhud/fonts.json", util.TableToJSON(fonts))
Expand Down

0 comments on commit f3054a9

Please sign in to comment.