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.

68 lines
1.8 KiB

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ====
  2. //
  3. // Purpose: Defines the interface to the entity sprinkle tool.
  4. //
  5. //=============================================================================
  6. #ifndef __TOOL_SPRINKLE_DLG_H
  7. #define __TOOL_SPRINKLE_DLG_H
  8. #pragma once
  9. class KeyValues;
  10. enum
  11. {
  12. SPRINKLE_MODE_ADDITIVE = 0, // adds to existing objects
  13. SPRINKLE_MODE_SUBTRACTIVE, // will remove from existing objects
  14. SPRINKLE_MODE_REPLACE, // nukes entire objects from area
  15. SPRINKLE_MODE_OVERWRITE, // overwrites existing objects
  16. };
  17. // CEntitySprinkleDlg dialog
  18. class CEntitySprinkleDlg : public CDialog
  19. {
  20. DECLARE_DYNAMIC(CEntitySprinkleDlg)
  21. public:
  22. CEntitySprinkleDlg();
  23. virtual ~CEntitySprinkleDlg();
  24. void SetSprinkleTypes( KeyValues *pSprinkleInfo );
  25. void GetGridSize( float &flGridXSize, float &flGridYSize );
  26. KeyValues *GetSprinkleType( );
  27. int GetSprinkleMode( );
  28. int GetSprinkleDensity( );
  29. bool UseDefinitionGridSize( );
  30. bool UseRandomYaw( );
  31. // Dialog Data
  32. enum { IDD = IDD_ENTITY_SPRINKLE };
  33. protected:
  34. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  35. DECLARE_MESSAGE_MAP()
  36. public:
  37. afx_msg void OnCbnSelchangeSprinkleMode();
  38. CComboBox m_SprinkleModeControl;
  39. CSliderCtrl m_SprinkleDensityControl;
  40. virtual BOOL OnInitDialog();
  41. CEdit m_GridOffsetXControl;
  42. CEdit m_GridOffsetYControl;
  43. CEdit m_GridSizeXControl;
  44. CEdit m_GridSizeYControl;
  45. afx_msg void OnBnClickedSprinkleUseGrid();
  46. CComboBox m_SprinkleTypeControl;
  47. CStatic m_SprinkleDensityDisplayControl;
  48. CButton m_DefinitionGridSizeControl;
  49. afx_msg void OnBnClickedSprinkleDefinitionGridSize();
  50. afx_msg void OnNMCustomdrawSprinkleDensity(NMHDR *pNMHDR, LRESULT *pResult);
  51. afx_msg void OnClose();
  52. CButton m_RandomYawControl;
  53. };
  54. #endif // __TOOL_SPRINKLE_DLG_H