blob: 52b83079238685efbea5bee02c77464b13d021db (
plain) (
blame)
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
47
48
49
50
51
52
53
54
55
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
|