summaryrefslogtreecommitdiff
path: root/tracker/AdminServer/RulesContextMenu.h
blob: b79ccc2495142fc9898e5a7daebd9f51e90f8916 (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
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose: 
//
// $NoKeywords: $
//=============================================================================

#ifndef RULESCONTEXTMENU_H
#define RULESCONTEXTMENU_H
#ifdef _WIN32
#pragma once
#endif

#include <VGUI_Menu.h>

//-----------------------------------------------------------------------------
// Purpose: Basic right-click context menu for servers
//-----------------------------------------------------------------------------
class CRulesContextMenu : public vgui::Menu
{
public:
	CRulesContextMenu(vgui::Panel *parent);
	~CRulesContextMenu();

	// call this to activate the menu
	void ShowMenu(vgui::Panel *target, unsigned int cvarID);
private:
	vgui::Panel *parent; // so we can send it messages
};


#endif // RULESCONTEXTMENU_H