WeatherPropPage.h 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. /*
  2. ** Command & Conquer Renegade(tm)
  3. ** Copyright 2025 Electronic Arts Inc.
  4. **
  5. ** This program is free software: you can redistribute it and/or modify
  6. ** it under the terms of the GNU General Public License as published by
  7. ** the Free Software Foundation, either version 3 of the License, or
  8. ** (at your option) any later version.
  9. **
  10. ** This program is distributed in the hope that it will be useful,
  11. ** but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. ** GNU General Public License for more details.
  14. **
  15. ** You should have received a copy of the GNU General Public License
  16. ** along with this program. If not, see <http://www.gnu.org/licenses/>.
  17. */
  18. #if !defined(AFX_WEATHERPROPPAGE_H__BF0B86B8_3079_469D_A4B6_854192EF922C__INCLUDED_)
  19. #define AFX_WEATHERPROPPAGE_H__BF0B86B8_3079_469D_A4B6_854192EF922C__INCLUDED_
  20. #if _MSC_VER > 1000
  21. #pragma once
  22. #endif // _MSC_VER > 1000
  23. // WeatherPropPage.h : header file
  24. //
  25. #include "Resource.h"
  26. #include "vector3.h"
  27. /////////////////////////////////////////////////////////////////////////////
  28. // WeatherPropPageClass dialog
  29. class WeatherPropPageClass : public CPropertyPage
  30. {
  31. DECLARE_DYNCREATE(WeatherPropPageClass)
  32. // Construction
  33. public:
  34. WeatherPropPageClass();
  35. ~WeatherPropPageClass();
  36. // Dialog Data
  37. //{{AFX_DATA(WeatherPropPageClass)
  38. enum { IDD = IDD_BACKGROUND_WEATHER };
  39. CSliderCtrl WindVariabilitySlider;
  40. CSliderCtrl WindHeadingSlider;
  41. CSpinButtonCtrl WindSpeedSpin;
  42. CSpinButtonCtrl PrecipitationDensitySpin;
  43. CSliderCtrl LightningDistributionSlider;
  44. CSliderCtrl LightningEndDistanceSlider;
  45. CSliderCtrl LightningHeadingSlider;
  46. CSliderCtrl LightningStartDistanceSlider;
  47. CSliderCtrl LightningIntensitySlider;
  48. CSpinButtonCtrl FogStartSpin;
  49. CSpinButtonCtrl FogEndSpin;
  50. //}}AFX_DATA
  51. // Overrides
  52. // ClassWizard generate virtual function overrides
  53. //{{AFX_VIRTUAL(WeatherPropPageClass)
  54. public:
  55. virtual void OnOK();
  56. protected:
  57. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  58. //}}AFX_VIRTUAL
  59. // Implementation
  60. protected:
  61. // Generated message map functions
  62. //{{AFX_MSG(WeatherPropPageClass)
  63. virtual BOOL OnInitDialog();
  64. afx_msg void OnFogCheck();
  65. afx_msg void OnFogColor();
  66. afx_msg void OnDrawItem(int nIDCtl, LPDRAWITEMSTRUCT lpDrawItemStruct);
  67. afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
  68. afx_msg void OnPrecipitationNone();
  69. afx_msg void OnPrecipitationRain();
  70. afx_msg void OnPrecipitationSnow();
  71. afx_msg void OnPrecipitationAsh();
  72. afx_msg void OnLightningNone();
  73. afx_msg void OnLightningLightning();
  74. afx_msg void OnLightningWarBlitz();
  75. //}}AFX_MSG
  76. DECLARE_MESSAGE_MAP()
  77. private:
  78. void Enable_Lightning_Controls (bool enable);
  79. void Update_Lightning_Values();
  80. void Update_Wind_Values();
  81. Vector3 FogColor;
  82. };
  83. //{{AFX_INSERT_LOCATION}}
  84. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  85. #endif // !defined(AFX_WEATHERPROPPAGE_H__BF0B86B8_3079_469D_A4B6_854192EF922C__INCLUDED_)