blob: e0cc7885fb98d1fbca16c454c3c08f5c482ba170 (
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
|
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
// $NoKeywords: $
//=============================================================================//
#ifndef CREATEMULTIPLAYERGAMEGAMEPLAYPAGE_H
#define CREATEMULTIPLAYERGAMEGAMEPLAYPAGE_H
#ifdef _WIN32
#pragma once
#endif
#include <vgui_controls/PropertyPage.h>
class CPanelListPanel;
class CDescription;
class mpcontrol_t;
//-----------------------------------------------------------------------------
// Purpose: server options page of the create game server dialog
//-----------------------------------------------------------------------------
class CCreateMultiplayerGameGameplayPage : public vgui::PropertyPage
{
public:
CCreateMultiplayerGameGameplayPage(vgui::Panel *parent, const char *name);
~CCreateMultiplayerGameGameplayPage();
// returns currently entered information about the server
int GetMaxPlayers();
const char *GetPassword();
const char *GetHostName();
protected:
virtual void OnApplyChanges();
private:
const char *GetValue(const char *cvarName, const char *defaultValue);
void LoadGameOptionsList();
void GatherCurrentValues();
CDescription *m_pDescription;
mpcontrol_t *m_pList;
CPanelListPanel *m_pOptionsList;
};
#endif // CREATEMULTIPLAYERGAMEGAMEPLAYPAGE_H
|