diff --git a/gamemode/engine/derma/lib/cl_menu_fade.lua b/gamemode/engine/derma/lib/cl_menu_fade.lua index d202c61..c478f6e 100644 --- a/gamemode/engine/derma/lib/cl_menu_fade.lua +++ b/gamemode/engine/derma/lib/cl_menu_fade.lua @@ -72,7 +72,7 @@ function fade.transition( parent, dt, start_delay, mid_delay, end_delay, inColor endFunc( dt ) self.runnedEndFunc = true - self:Remove() -- remove the panel when done + self:Remove() -- remove the panel when finished Quantum.Debug( "[Fade] Finished transition." ) end diff --git a/gamemode/engine/derma/menus/menu_charinfo.lua b/gamemode/engine/derma/menus/menu_charinfo.lua index 358a128..4ec44b8 100644 --- a/gamemode/engine/derma/menus/menu_charinfo.lua +++ b/gamemode/engine/derma/menus/menu_charinfo.lua @@ -17,4 +17,19 @@ local padding = 10 * resScale local padding_s = 4 * resScale local errorMdl = "models/player.mdl" -function menu.open() end \ No newline at end of file +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 \ No newline at end of file