diff options
| author | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
|---|---|---|
| committer | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
| commit | 3bf9df6b2785fa6d951086978a3e66f49427166a (patch) | |
| tree | 2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /tracker/AdminServer/DialogKickPlayer.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'tracker/AdminServer/DialogKickPlayer.h')
| -rw-r--r-- | tracker/AdminServer/DialogKickPlayer.h | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/tracker/AdminServer/DialogKickPlayer.h b/tracker/AdminServer/DialogKickPlayer.h new file mode 100644 index 0000000..c51d407 --- /dev/null +++ b/tracker/AdminServer/DialogKickPlayer.h @@ -0,0 +1,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 |