summaryrefslogtreecommitdiff
path: root/gameui/CreateMultiplayerGameBotPage.h
diff options
context:
space:
mode:
authorFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
committerFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
commit3bf9df6b2785fa6d951086978a3e66f49427166a (patch)
tree2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /gameui/CreateMultiplayerGameBotPage.h
downloadarchived-source-engine-2018-hl2-src-3bf9df6b2785fa6d951086978a3e66f49427166a.tar.xz
archived-source-engine-2018-hl2-src-3bf9df6b2785fa6d951086978a3e66f49427166a.zip
Diffstat (limited to 'gameui/CreateMultiplayerGameBotPage.h')
-rw-r--r--gameui/CreateMultiplayerGameBotPage.h66
1 files changed, 66 insertions, 0 deletions
diff --git a/gameui/CreateMultiplayerGameBotPage.h b/gameui/CreateMultiplayerGameBotPage.h
new file mode 100644
index 0000000..d9f698e
--- /dev/null
+++ b/gameui/CreateMultiplayerGameBotPage.h
@@ -0,0 +1,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