From 3bf9df6b2785fa6d951086978a3e66f49427166a Mon Sep 17 00:00:00 2001 From: FluorescentCIAAfricanAmerican <0934gj3049fk@protonmail.com> Date: Wed, 22 Apr 2020 12:56:21 -0400 Subject: 1 --- tracker/AdminServer/DialogServerPassword.h | 58 ++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 tracker/AdminServer/DialogServerPassword.h (limited to 'tracker/AdminServer/DialogServerPassword.h') diff --git a/tracker/AdminServer/DialogServerPassword.h b/tracker/AdminServer/DialogServerPassword.h new file mode 100644 index 0000000..04f7537 --- /dev/null +++ b/tracker/AdminServer/DialogServerPassword.h @@ -0,0 +1,58 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +// $NoKeywords: $ +//============================================================================= + +#ifndef DIALOGSERVERPASSWORD_H +#define DIALOGSERVERPASSWORD_H +#ifdef _WIN32 +#pragma once +#endif + +#include + + +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 CDialogServerPassword : public vgui::Frame +{ +public: + CDialogServerPassword(); + ~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 PerformLayout(); + virtual void OnCommand(const char *command); + virtual void OnClose(); + + 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 -- cgit v1.2.3