Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

66 lines
1.8 KiB

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef CREATEMULTIPLAYERGAMEBOTPAGE_H
  8. #define CREATEMULTIPLAYERGAMEBOTPAGE_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. #include <vgui_controls/PropertyPage.h>
  13. class CPanelListPanel;
  14. class CDescription;
  15. class mpcontrol_t;
  16. class CCvarToggleCheckButton;
  17. //-----------------------------------------------------------------------------
  18. // Purpose: advanced bot properties page of the create game server dialog
  19. //-----------------------------------------------------------------------------
  20. class CCreateMultiplayerGameBotPage : public vgui::PropertyPage
  21. {
  22. DECLARE_CLASS_SIMPLE( CCreateMultiplayerGameBotPage, vgui::PropertyPage );
  23. public:
  24. CCreateMultiplayerGameBotPage( vgui::Panel *parent, const char *name, KeyValues *botKeys );
  25. ~CCreateMultiplayerGameBotPage();
  26. protected:
  27. virtual void OnResetChanges();
  28. virtual void OnApplyChanges();
  29. private:
  30. CCvarToggleCheckButton *m_joinAfterPlayer;
  31. CCvarToggleCheckButton *m_allowRogues;
  32. CCvarToggleCheckButton *m_allowPistols;
  33. CCvarToggleCheckButton *m_allowShotguns;
  34. CCvarToggleCheckButton *m_allowSubmachineGuns;
  35. CCvarToggleCheckButton *m_allowMachineGuns;
  36. CCvarToggleCheckButton *m_allowRifles;
  37. CCvarToggleCheckButton *m_allowGrenades;
  38. #ifdef CS_SHIELD_ENABLED
  39. CCvarToggleCheckButton *m_allowShields;
  40. #endif // CS_SHIELD_ENABLED
  41. CCvarToggleCheckButton *m_allowSnipers;
  42. CCvarToggleCheckButton *m_deferToHuman;
  43. vgui::ComboBox *m_joinTeamCombo;
  44. void SetJoinTeamCombo( const char *team );
  45. vgui::ComboBox *m_chatterCombo;
  46. void SetChatterCombo( const char *team );
  47. vgui::TextEntry *m_prefixEntry;
  48. KeyValues *m_pSavedData;
  49. };
  50. #endif // CREATEMULTIPLAYERGAMEBOTPAGE_H