forked from nillerusr/source-engine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDialogServerPassword.h
46 lines (36 loc) · 1.12 KB
/
DialogServerPassword.h
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
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
// $NoKeywords: $
//=============================================================================
#ifndef DIALOGSERVERPASSWORD_H
#define DIALOGSERVERPASSWORD_H
#ifdef _WIN32
#pragma once
#endif
//-----------------------------------------------------------------------------
// Purpose: Prompt for user to enter a password to be able to connect to the server
//-----------------------------------------------------------------------------
class CDialogServerPassword : public vgui::Frame
{
public:
CDialogServerPassword(vgui::Panel *parent);
~CDialogServerPassword();
// initializes the dialog and brings it to the foreground
void Activate(const char *serverName, unsigned int serverID);
/* message returned:
"JoinServerWithPassword"
"serverID"
"password"
*/
private:
virtual void OnCommand(const char *command);
vgui::Label *m_pInfoLabel;
vgui::Label *m_pGameLabel;
vgui::TextEntry *m_pPasswordEntry;
vgui::Button *m_pConnectButton;
typedef vgui::Frame BaseClass;
int m_iServerID;
};
#endif // DIALOGSERVERPASSWORD_H