From 2581748eb41b4187d810c3fb7b3b8741e4b3e2cb Mon Sep 17 00:00:00 2001 From: AlmTech Date: Wed, 9 Oct 2019 16:42:10 +0200 Subject: [PATCH] Minor stuff --- gamemode/engine/core/client/cl_fonts.lua | 6 ++++++ gamemode/engine/core/client/cl_hud.lua | 2 +- gamemode/engine/core/server/sv_player_init.lua | 2 +- gamemode/engine/derma/menus/menu_character.lua | 3 ++- 4 files changed, 10 insertions(+), 3 deletions(-) diff --git a/gamemode/engine/core/client/cl_fonts.lua b/gamemode/engine/core/client/cl_fonts.lua index 69fa57b..7f0fbe8 100644 --- a/gamemode/engine/core/client/cl_fonts.lua +++ b/gamemode/engine/core/client/cl_fonts.lua @@ -24,6 +24,12 @@ surface.CreateFont( "q_text2", { antialias = true }) +surface.CreateFont( "q_button", { + font = "Arial", + size = 27 * Quantum.Client.ResolutionScale, + antialias = true +}) + surface.CreateFont( "q_charNameText", { font = "Arial", outline = true, diff --git a/gamemode/engine/core/client/cl_hud.lua b/gamemode/engine/core/client/cl_hud.lua index b861e85..0353511 100644 --- a/gamemode/engine/core/client/cl_hud.lua +++ b/gamemode/engine/core/client/cl_hud.lua @@ -16,7 +16,7 @@ end) local scale = Quantum.Client.ResolutionScale local barW, barH = 400 * scale, 25 * scale -local radius = 1 * scale +local radius = 1.05 * scale local padding = 5 * scale local sw, sh = ScrW(), ScrH() diff --git a/gamemode/engine/core/server/sv_player_init.lua b/gamemode/engine/core/server/sv_player_init.lua index ffd7afb..96501fc 100644 --- a/gamemode/engine/core/server/sv_player_init.lua +++ b/gamemode/engine/core/server/sv_player_init.lua @@ -28,7 +28,7 @@ end function GM:PlayerSpawn( ply ) - if( !ply.isloaded ) then + if( ply.isloaded ) then ply:Spectate( OBS_MODE_FIXED ) else ply:UnSpectate() diff --git a/gamemode/engine/derma/menus/menu_character.lua b/gamemode/engine/derma/menus/menu_character.lua index 0d31ef7..aead11e 100644 --- a/gamemode/engine/derma/menus/menu_character.lua +++ b/gamemode/engine/derma/menus/menu_character.lua @@ -51,6 +51,7 @@ function menu.open( dt ) surface.DrawRect( 0, 0, w, h ) end f:SetDraggable( false ) + f:ShowCloseButton( false ) f:MakePopup() function f:OnClose() Quantum.Client.IsInMenu = false -- show the hud when closed @@ -166,7 +167,7 @@ function menu.open( dt ) -- create char button local cr = vgui.Create( "DButton", p ) cr:SetText("Create New Character") - cr:SetFont( "q_text" ) + cr:SetFont( "q_button" ) cr:SetTextColor( Color( 0, 0, 0, 255 ) ) cr:SizeToContents() cr.w, cr.h = cr:GetSize()