mirror of
https://github.com/celisej567/source-engine.git
synced 2026-01-03 05:49:41 +03:00
1
This commit is contained in:
46
serverbrowser/DialogServerPassword.h
Normal file
46
serverbrowser/DialogServerPassword.h
Normal file
@@ -0,0 +1,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
|
||||
Reference in New Issue
Block a user