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 /game/client/tf/vgui/report_player_dialog.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'game/client/tf/vgui/report_player_dialog.h')
| -rw-r--r-- | game/client/tf/vgui/report_player_dialog.h | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/game/client/tf/vgui/report_player_dialog.h b/game/client/tf/vgui/report_player_dialog.h new file mode 100644 index 0000000..52b8307 --- /dev/null +++ b/game/client/tf/vgui/report_player_dialog.h @@ -0,0 +1,56 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +// $NoKeywords: $ +//=============================================================================// +#ifndef REPORT_PLAYER_DIALOG_H +#define REPORT_PLAYER_DIALOG_H +#ifdef _WIN32 +#pragma once +#endif + +#include "vgui_controls/Frame.h" +#include "vgui_controls/ListPanel.h" +#include "vgui_controls/Button.h" +#include "vgui_controls/ComboBox.h" + +class CReportPlayerDialog : public vgui::Frame +{ + DECLARE_CLASS_SIMPLE( CReportPlayerDialog, vgui::Frame ); + +public: + CReportPlayerDialog( vgui::Panel *parent ); + ~CReportPlayerDialog(); + + virtual void Activate(); + +private: + MESSAGE_FUNC( OnItemSelected, "ItemSelected" ); + MESSAGE_FUNC_PARAMS( OnTextChanged, "TextChanged", data ); + virtual void OnCommand( const char *command ); + + void ReportPlayer(); + void RefreshPlayerProperties(); + bool IsValidPlayerSelected(); + + void OnKeyCodePressed( vgui::KeyCode code ) + { + if ( code == KEY_XBUTTON_B ) + { + Close(); + } + else + { + BaseClass::OnKeyCodePressed( code ); + } + } + + vgui::ListPanel *m_pPlayerList; + vgui::Button *m_pReportButton; + vgui::ComboBox *m_pReasonBox; +}; + +bool ReportPlayerAccount( CSteamID steamID, int nReason ); + +#endif // REPORT_PLAYER_DIALOG_H |