From 474685a4f83cc9be1ed80a5da6f46e3bd8756614 Mon Sep 17 00:00:00 2001 From: AlmTech Date: Mon, 30 Sep 2019 21:08:17 +0200 Subject: [PATCH] Bug fixes --- gamemode/engine/core/client/cl_fonts.lua | 2 +- gamemode/engine/core/client/cl_hud.lua | 2 +- gamemode/engine/derma/menus/menu_character.lua | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gamemode/engine/core/client/cl_fonts.lua b/gamemode/engine/core/client/cl_fonts.lua index da94eed..07d33f7 100644 --- a/gamemode/engine/core/client/cl_fonts.lua +++ b/gamemode/engine/core/client/cl_fonts.lua @@ -7,7 +7,7 @@ surface.CreateFont( "q_HUD", { font = "Arial", - size = 38 * Quantum.Client.ResolutionScale, + size = 30 * Quantum.Client.ResolutionScale, antialias = true, outline = true }) diff --git a/gamemode/engine/core/client/cl_hud.lua b/gamemode/engine/core/client/cl_hud.lua index f47bdca..795a761 100644 --- a/gamemode/engine/core/client/cl_hud.lua +++ b/gamemode/engine/core/client/cl_hud.lua @@ -43,7 +43,7 @@ function GM:HUDPaint() surface.SetTextColor( 255, 255, 255, 255 ) local hptxt = tostring( 100 * (hp/maxhp) .. "%" ) local txtW, txtH = surface.GetTextSize( hptxt ) - surface.SetTextPos( ( ( sw/2 - txtW/2 ) + padding/2 ), ( ( sh*0.9 - txtH/2 ) ) ) + surface.SetTextPos( ( ( sw/2 - txtW/2 ) + padding/2 ), ( ( sh*0.9 - txtH/3 ) ) ) surface.DrawText( hptxt ) -- Crosshair diff --git a/gamemode/engine/derma/menus/menu_character.lua b/gamemode/engine/derma/menus/menu_character.lua index 980abe9..33db1b0 100644 --- a/gamemode/engine/derma/menus/menu_character.lua +++ b/gamemode/engine/derma/menus/menu_character.lua @@ -60,7 +60,7 @@ function menu.open( dt ) surface.SetDrawColor( 0, 0, 0, 190 ) surface.DrawRect( 0, 0, w, h ) end - f:IsDraggable( false ) + f:SetDraggable( false ) f:MakePopup() local char = pages.charCreate( f ) -- test