blob: c51d407154ebab1ecf024cc52f7c44c24f14a2fa (
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
51
52
53
54
55
56
57
|
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
// $NoKeywords: $
//=============================================================================
#ifndef DIALOGKICKPLAYER_H
#define DIALOGKICKPLAYER_H
#ifdef _WIN32
#pragma once
#endif
#include <VGUI_Frame.h>
namespace vgui
{
class TextEntry;
class Label;
class Button;
};
//-----------------------------------------------------------------------------
// Purpose: Prompt for user to enter a password to be able to connect to the server
//-----------------------------------------------------------------------------
class CDialogKickPlayer : public vgui::Frame
{
public:
CDialogKickPlayer();
~CDialogKickPlayer();
// initializes the dialog and brings it to the foreground
void Activate(const char *playerName, const char *question,const char *type);
/* message returned:
"KickPlayer"
"player"
"type"
*/
private:
virtual void PerformLayout();
virtual void OnCommand(const char *command);
virtual void OnClose();
vgui::Label *m_pInfoLabel;
vgui::Label *m_pPlayerLabel;
vgui::Button *m_pOkayButton;
typedef vgui::Frame BaseClass;
const char *m_cType;
};
#endif // DIALOGKICKPLAYER_H
|