SceneSetupDlg.h 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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. /***********************************************************************************************
  19. *** C O N F I D E N T I A L --- W E S T W O O D S T U D I O S ***
  20. ***********************************************************************************************
  21. * *
  22. * Project Name : G *
  23. * *
  24. * $Archive:: /Commando/Code/Tools/max2w3d/SceneSetupDlg.h $*
  25. * *
  26. * $Author:: Andre_a $*
  27. * *
  28. * $Modtime:: 10/15/99 4:24p $*
  29. * *
  30. * $Revision:: 2 $*
  31. * *
  32. *---------------------------------------------------------------------------------------------*
  33. * Functions: *
  34. * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  35. #ifndef SCENESETUPDLG_H
  36. #define SCENESETUPDLG_H
  37. // SceneSetupDlg.h : header file
  38. //
  39. #include "dllmain.h"
  40. #include "Resource.h"
  41. class Interface;
  42. /////////////////////////////////////////////////////////////////////////////
  43. // SceneSetupDlg dialog
  44. class SceneSetupDlg
  45. {
  46. public:
  47. // Construction
  48. SceneSetupDlg(Interface *max_interface);
  49. // Methods
  50. int DoModal (void);
  51. // DialogProc
  52. BOOL CALLBACK DialogProc (HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
  53. // Dialog data associated with GUI components.
  54. enum { IDD = IDD_SCENE_SETUP };
  55. int m_DamageCount;
  56. float m_DamageOffset;
  57. int m_LodCount;
  58. float m_LodOffset;
  59. int m_LodProc;
  60. int m_DamageProc;
  61. // Dialog Data
  62. HWND m_hWnd;
  63. protected:
  64. // Message Handlers
  65. void OnInitDialog (void);
  66. BOOL OnOK (void); // TRUE if ok to close dialog
  67. // Protected Methods
  68. void SetEditInt (int control_id, int value);
  69. void SetEditFloat (int control_id, float value);
  70. int GetEditInt (int control_id);
  71. float GetEditFloat (int control_id);
  72. bool ValidateEditFloat (int control_id);
  73. // Protected Data
  74. Interface *m_MaxInterface;
  75. };
  76. #endif