Minor stuff

master
AlmTech 5 years ago
parent 3c704e7ee0
commit 2581748eb4
  1. 6
      gamemode/engine/core/client/cl_fonts.lua
  2. 2
      gamemode/engine/core/client/cl_hud.lua
  3. 2
      gamemode/engine/core/server/sv_player_init.lua
  4. 3
      gamemode/engine/derma/menus/menu_character.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,

@ -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()

@ -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()

@ -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()

Loading…
Cancel
Save