Charinfo/inventory menu stuff

master
AlmTech Software 5 years ago
parent ef5606d885
commit 58364ba345
  1. 2
      gamemode/engine/derma/lib/cl_menu_fade.lua
  2. 17
      gamemode/engine/derma/menus/menu_charinfo.lua

@ -72,7 +72,7 @@ function fade.transition( parent, dt, start_delay, mid_delay, end_delay, inColor
endFunc( dt ) endFunc( dt )
self.runnedEndFunc = true self.runnedEndFunc = true
self:Remove() -- remove the panel when done self:Remove() -- remove the panel when finished
Quantum.Debug( "[Fade] Finished transition." ) Quantum.Debug( "[Fade] Finished transition." )
end end

@ -17,4 +17,19 @@ local padding = 10 * resScale
local padding_s = 4 * resScale local padding_s = 4 * resScale
local errorMdl = "models/player.mdl" local errorMdl = "models/player.mdl"
function menu.open() end function menu.open( dt )
if( !f ) then
local f = vgui.Create( "DFrame" )
f:SetSize( sw, sh )
f:SetDraggable( false )
f:MakePopup()
f.Paint = function() end
function f:OnClose()
Quantum.Client.IsInMenu = false -- show the hud when closed
Quantum.Client.Cam.Stop()
end
-- Create the inventory page --
f.inv = page.New( f, {} )
end
end
Loading…
Cancel
Save