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.

55 lines
1.3 KiB

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef OPTIONSDIALOG_H
  8. #define OPTIONSDIALOG_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. #include "vgui_controls/PropertyDialog.h"
  13. enum OptionsDialogTabStyle
  14. {
  15. OPTIONS_DIALOG_ALL_TABS,
  16. OPTIONS_DIALOG_ONLY_BINDING_TABS,
  17. OPTIONS_DIALOG_TAB_STYLE_TOTAL
  18. };
  19. //-----------------------------------------------------------------------------
  20. // Purpose: Holds all the game option pages
  21. //-----------------------------------------------------------------------------
  22. class COptionsDialog : public vgui::PropertyDialog
  23. {
  24. DECLARE_CLASS_SIMPLE( COptionsDialog, vgui::PropertyDialog );
  25. public:
  26. COptionsDialog(vgui::Panel *parent, OptionsDialogTabStyle iTabStyle = OPTIONS_DIALOG_ALL_TABS );
  27. ~COptionsDialog();
  28. void Run();
  29. virtual void Activate();
  30. void OpenGammaDialog();
  31. MESSAGE_FUNC( OnGameUIHidden, "GameUIHidden" ); // called when the GameUI is hidden
  32. protected:
  33. // [jason] Overriding to let Scaleform know that a vgui dialog closed
  34. virtual void OnFinishedClose( void );
  35. private:
  36. class COptionsSubAudio *m_pOptionsSubAudio;
  37. class COptionsSubVideo *m_pOptionsSubVideo;
  38. };
  39. struct OptionData_t;
  40. #endif // OPTIONSDIALOG_H