blob: d9f698ee1a8199e4f42202afe859015b0c86faf4 (
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
57
58
59
60
61
62
63
64
65
66
|
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
// $NoKeywords: $
//=============================================================================//
#ifndef CREATEMULTIPLAYERGAMEBOTPAGE_H
#define CREATEMULTIPLAYERGAMEBOTPAGE_H
#ifdef _WIN32
#pragma once
#endif
#include <vgui_controls/PropertyPage.h>
class CPanelListPanel;
class CDescription;
class mpcontrol_t;
class CCvarToggleCheckButton;
//-----------------------------------------------------------------------------
// Purpose: advanced bot properties page of the create game server dialog
//-----------------------------------------------------------------------------
class CCreateMultiplayerGameBotPage : public vgui::PropertyPage
{
DECLARE_CLASS_SIMPLE( CCreateMultiplayerGameBotPage, vgui::PropertyPage );
public:
CCreateMultiplayerGameBotPage( vgui::Panel *parent, const char *name, KeyValues *botKeys );
~CCreateMultiplayerGameBotPage();
protected:
virtual void OnResetChanges();
virtual void OnApplyChanges();
private:
CCvarToggleCheckButton *m_joinAfterPlayer;
CCvarToggleCheckButton *m_allowRogues;
CCvarToggleCheckButton *m_allowPistols;
CCvarToggleCheckButton *m_allowShotguns;
CCvarToggleCheckButton *m_allowSubmachineGuns;
CCvarToggleCheckButton *m_allowMachineGuns;
CCvarToggleCheckButton *m_allowRifles;
CCvarToggleCheckButton *m_allowGrenades;
#ifdef CS_SHIELD_ENABLED
CCvarToggleCheckButton *m_allowShields;
#endif // CS_SHIELD_ENABLED
CCvarToggleCheckButton *m_allowSnipers;
CCvarToggleCheckButton *m_deferToHuman;
vgui::ComboBox *m_joinTeamCombo;
void SetJoinTeamCombo( const char *team );
vgui::ComboBox *m_chatterCombo;
void SetChatterCombo( const char *team );
vgui::TextEntry *m_prefixEntry;
KeyValues *m_pSavedData;
};
#endif // CREATEMULTIPLAYERGAMEBOTPAGE_H
|