blob: 7fcc4a8c4b330ad3ccceb053fb484949bc564d5a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
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 );
|