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.

61 lines
1.3 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef MAPANIMATIONDLG_H
  8. #define MAPANIMATIONDLG_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. #include "HammerBar.h"
  13. #include "MapClass.h"
  14. class CMapAnimationDlg : public CHammerBar
  15. {
  16. public:
  17. CMapAnimationDlg();
  18. bool Create( CWnd *pParentWnd );
  19. void RunFrame( void );
  20. void SelectionChanged( CMapObjectList &NewSelList);
  21. protected:
  22. //{{AFX_DATA(CMapAnimationDlg)
  23. enum { IDD = IDD_ANIMATIONDLG };
  24. CSliderCtrl m_TimeSlider; // time in animation
  25. CButton m_Play; // plays the current animation
  26. //}}AFX_DATA
  27. //{{AFX_MSG( CMapAnimationDlg )
  28. afx_msg void OnHScroll( UINT nSBCode, UINT nPos, CScrollBar* pScrollBar );
  29. afx_msg void OnPlay();
  30. afx_msg void OnCreateKeyFrame();
  31. afx_msg void UpdateControl( CCmdUI *pCmdUI );
  32. //}}AFX_MSG
  33. void AdvanceAnimationTime( void );
  34. void InitTimeSlider( void );
  35. void UpdateAnimationTime( void );
  36. void ResetTimeSlider( void );
  37. void PausePlayback( void );
  38. bool m_bPlaying;
  39. bool m_bEnabled;
  40. float m_flAnimationDuration;
  41. float m_flAnimationStart;
  42. float m_flAnimTime;
  43. DECLARE_MESSAGE_MAP()
  44. };
  45. #endif // MAPANIMATIONDLG_H