summaryrefslogtreecommitdiff
path: root/public/ienginevgui.h
diff options
context:
space:
mode:
authorFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
committerFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
commit3bf9df6b2785fa6d951086978a3e66f49427166a (patch)
tree2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /public/ienginevgui.h
downloadarchived-source-engine-2018-hl2-src-master.tar.xz
archived-source-engine-2018-hl2-src-master.zip
Diffstat (limited to 'public/ienginevgui.h')
-rw-r--r--public/ienginevgui.h65
1 files changed, 65 insertions, 0 deletions
diff --git a/public/ienginevgui.h b/public/ienginevgui.h
new file mode 100644
index 0000000..601ba27
--- /dev/null
+++ b/public/ienginevgui.h
@@ -0,0 +1,65 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+// $Workfile: $
+// $Date: $
+// $NoKeywords: $
+//=============================================================================//
+#if !defined( IENGINEVGUI_H )
+#define IENGINEVGUI_H
+
+#ifdef _WIN32
+#pragma once
+#endif
+
+#include "interface.h"
+#include "vgui/VGUI.h"
+
+// Forward declarations.
+namespace vgui
+{
+ class Panel;
+};
+
+enum VGuiPanel_t
+{
+ PANEL_ROOT = 0,
+ PANEL_GAMEUIDLL,
+ PANEL_CLIENTDLL,
+ PANEL_TOOLS,
+ PANEL_INGAMESCREENS,
+ PANEL_GAMEDLL,
+ PANEL_CLIENTDLL_TOOLS
+};
+
+// In-game panels are cropped to the current engine viewport size
+enum PaintMode_t
+{
+ PAINT_UIPANELS = (1<<0),
+ PAINT_INGAMEPANELS = (1<<1),
+ PAINT_CURSOR = (1<<2), // software cursor, if appropriate
+};
+
+abstract_class IEngineVGui
+{
+public:
+ virtual ~IEngineVGui( void ) { }
+
+ virtual vgui::VPANEL GetPanel( VGuiPanel_t type ) = 0;
+
+ virtual bool IsGameUIVisible() = 0;
+};
+
+#define VENGINE_VGUI_VERSION "VEngineVGui001"
+
+#if defined(_STATIC_LINKED) && defined(CLIENT_DLL)
+namespace Client
+{
+extern IEngineVGui *enginevgui;
+}
+#else
+extern IEngineVGui *enginevgui;
+#endif
+
+#endif // IENGINEVGUI_H