diff options
| author | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
|---|---|---|
| committer | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
| commit | 3bf9df6b2785fa6d951086978a3e66f49427166a (patch) | |
| tree | 2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /engine/cl_pluginhelpers.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'engine/cl_pluginhelpers.h')
| -rw-r--r-- | engine/cl_pluginhelpers.h | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/engine/cl_pluginhelpers.h b/engine/cl_pluginhelpers.h new file mode 100644 index 0000000..7fcc4a8 --- /dev/null +++ b/engine/cl_pluginhelpers.h @@ -0,0 +1,50 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: baseclientstate.cpp: implementation of the CBaseClientState class. +// +//=============================================================================// + +//----------------------------------------------------------------------------- +// Purpose: the plugin message handler +//----------------------------------------------------------------------------- +#include <vgui_controls/Panel.h> +#include "engine/iserverplugin.h" +#include "netmessages.h" + +class CPluginGameUIDialog; +class CPluginHudMessage; + +class CPluginUIManager : public vgui::Panel +{ +private: + DECLARE_CLASS_SIMPLE( CPluginUIManager, vgui::Panel ); + +public: + CPluginUIManager(); + ~CPluginUIManager(); + + void Show( DIALOG_TYPE type, KeyValues *kv ); + void OnPanelClosed(); + void Shutdown(); + + void GetHudMessagePosition( int &x, int &y, int &wide, int &tall ); // Gets the position of the plugin HUD message. The askconnect dialog is placed here. + +protected: + void OnTick(); + + + int m_iCurPriority; + int m_iMessageDisplayUntil; + int m_iHudDisplayUntil; + + bool m_bShutdown; + + CPluginGameUIDialog *m_pGameUIDialog; + CPluginHudMessage *m_pHudMessage; +}; + +extern CPluginUIManager *g_PluginManager; + + +void PluginHelpers_Menu( SVC_Menu *msg ); + |