summaryrefslogtreecommitdiff
path: root/game/client/cstrike/vgui_rootpanel_cs.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'game/client/cstrike/vgui_rootpanel_cs.cpp')
-rw-r--r--game/client/cstrike/vgui_rootpanel_cs.cpp41
1 files changed, 41 insertions, 0 deletions
diff --git a/game/client/cstrike/vgui_rootpanel_cs.cpp b/game/client/cstrike/vgui_rootpanel_cs.cpp
new file mode 100644
index 0000000..b5856f2
--- /dev/null
+++ b/game/client/cstrike/vgui_rootpanel_cs.cpp
@@ -0,0 +1,41 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+// $NoKeywords: $
+//=============================================================================//
+#include "cbase.h"
+#include "vgui_int.h"
+#include "ienginevgui.h"
+#include "c_csrootpanel.h"
+
+// memdbgon must be the last include file in a .cpp file!!!
+#include "tier0/memdbgon.h"
+
+C_CSRootPanel *g_pCSRootPanel = NULL;
+
+//-----------------------------------------------------------------------------
+// Purpose:
+//-----------------------------------------------------------------------------
+void VGUI_CreateClientDLLRootPanel( void )
+{
+ g_pCSRootPanel = new C_CSRootPanel( enginevgui->GetPanel( PANEL_CLIENTDLL ) );
+}
+
+//-----------------------------------------------------------------------------
+// Purpose:
+//-----------------------------------------------------------------------------
+void VGUI_DestroyClientDLLRootPanel( void )
+{
+ delete g_pCSRootPanel;
+ g_pCSRootPanel = NULL;
+}
+
+//-----------------------------------------------------------------------------
+// Purpose: Game specific root panel
+// Output : vgui::Panel
+//-----------------------------------------------------------------------------
+vgui::VPANEL VGui_GetClientDLLRootPanel( void )
+{
+ return g_pCSRootPanel->GetVPanel();
+} \ No newline at end of file