Team Fortress 2 Source Code as on 22/4/2020
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.

52 lines
1.2 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef MULTIPLAYERADVANCEDDIALOG_H
  8. #define MULTIPLAYERADVANCEDDIALOG_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. #include <vgui_controls/Frame.h>
  13. #include "scriptobject.h"
  14. #include <vgui/KeyCode.h>
  15. class CPanelListPanel;
  16. //-----------------------------------------------------------------------------
  17. // Purpose: Displays a game-specific list of options
  18. //-----------------------------------------------------------------------------
  19. class CMultiplayerAdvancedDialog : public vgui::Frame
  20. {
  21. DECLARE_CLASS_SIMPLE( CMultiplayerAdvancedDialog, vgui::Frame );
  22. public:
  23. CMultiplayerAdvancedDialog(vgui::Panel *parent);
  24. ~CMultiplayerAdvancedDialog();
  25. virtual void Activate();
  26. private:
  27. void CreateControls();
  28. void DestroyControls();
  29. void GatherCurrentValues();
  30. void SaveValues();
  31. CInfoDescription *m_pDescription;
  32. mpcontrol_t *m_pList;
  33. CPanelListPanel *m_pListPanel;
  34. virtual void OnCommand( const char *command );
  35. virtual void OnClose();
  36. virtual void OnKeyCodeTyped(vgui::KeyCode code);
  37. };
  38. #endif // MULTIPLAYERADVANCEDDIALOG_H