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.

99 lines
2.5 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef OPTIONS_SUB_HAPTICS_H
  8. #define OPTIONS_SUB_HAPTICS_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. #include <vgui_controls/PropertyPage.h>
  13. #include "HapticControlBox.h"
  14. class CCvarNegateCheckButton;
  15. class CKeyToggleCheckButton;
  16. class CCvarToggleCheckButton;
  17. class CCvarSlider;
  18. namespace vgui
  19. {
  20. class Label;
  21. class Panel;
  22. }
  23. //-----------------------------------------------------------------------------
  24. // Purpose: Mouse Details, Part of OptionsDialog
  25. //-----------------------------------------------------------------------------
  26. class COptionsSubHaptics : public vgui::PropertyPage
  27. {
  28. DECLARE_CLASS_SIMPLE( COptionsSubHaptics, vgui::PropertyPage );
  29. public:
  30. COptionsSubHaptics(vgui::Panel *parent);
  31. ~COptionsSubHaptics();
  32. virtual void OnResetData();
  33. virtual void OnApplyChanges();
  34. virtual void OnCommand(const char *command);
  35. virtual void UpdateVehicleEnabled(void);
  36. protected:
  37. virtual void ApplySchemeSettings(vgui::IScheme *pScheme);
  38. private:
  39. MESSAGE_FUNC_PTR( OnControlModified, "ControlModified", panel );
  40. MESSAGE_FUNC_PTR( OnTextChanged, "TextChanged", panel );
  41. MESSAGE_FUNC_PTR( OnCheckButtonChecked, "CheckButtonChecked", panel )
  42. {
  43. OnControlModified( panel );
  44. }
  45. vgui::Label *m_pForceMasterPreLabel;
  46. CCvarSlider *m_pForceMasterSlider;
  47. vgui::Label *m_pForceRecoilPreLabel;
  48. CCvarSlider *m_pForceRecoilSlider;
  49. vgui::Label *m_pForceDamagePreLabel;
  50. CCvarSlider *m_pForceDamageSlider;
  51. vgui::Label *m_pForceMovementPreLabel;
  52. CCvarSlider *m_pForceMovementSlider;
  53. //Player
  54. vgui::Label *m_pPlayerBoxPreLabel;
  55. vgui::Label *m_pPlayerBoxScalePreLabel;
  56. CCvarSlider * m_pPlayerBoxScale;
  57. ControlBoxVisual* m_pPlayerBoxVisual;
  58. vgui::Label *m_pPlayerBoxStiffnessPreLabel;
  59. CCvarSlider *m_pPlayerBoxStiffnessSlider;
  60. vgui::Label *m_pPlayerBoxTurnPreLabel;
  61. CCvarSlider *m_pPlayerBoxTurnSlider;
  62. vgui::Label *m_pPlayerBoxAimPreLabel;
  63. CCvarSlider *m_pPlayerBoxAimSlider;
  64. //Vehicle
  65. vgui::Label *m_pVehicleBoxPreLabel;
  66. vgui::Label *m_pVehicleBoxScalePreLabel;
  67. CCvarSlider * m_pVehicleBoxScale;
  68. ControlBoxVisual* m_pVehicleBoxVisual;
  69. vgui::Label *m_pVehicleBoxStiffnessPreLabel;
  70. CCvarSlider * m_pVehicleBoxStiffnessSlider;
  71. vgui::Label *m_pVehicleBoxTurnPreLabel;
  72. CCvarSlider *m_pVehicleBoxTurnSlider;
  73. vgui::Label *m_pVehicleBoxAimPreLabel;
  74. CCvarSlider *m_pVehicleBoxAimSlider;
  75. //Control Box Stuff
  76. };
  77. #endif // OPTIONS_SUB_MOUSE_H