diff options
| author | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
|---|---|---|
| committer | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
| commit | 3bf9df6b2785fa6d951086978a3e66f49427166a (patch) | |
| tree | 2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /hammer/mapanimationdlg.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'hammer/mapanimationdlg.h')
| -rw-r--r-- | hammer/mapanimationdlg.h | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/hammer/mapanimationdlg.h b/hammer/mapanimationdlg.h new file mode 100644 index 0000000..06f1b26 --- /dev/null +++ b/hammer/mapanimationdlg.h @@ -0,0 +1,61 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +// $NoKeywords: $ +//=============================================================================// + +#ifndef MAPANIMATIONDLG_H +#define MAPANIMATIONDLG_H +#ifdef _WIN32 +#pragma once +#endif + + +#include "HammerBar.h" +#include "MapClass.h" + + +class CMapAnimationDlg : public CHammerBar +{ +public: + CMapAnimationDlg(); + + bool Create( CWnd *pParentWnd ); + + void RunFrame( void ); + void SelectionChanged( CMapObjectList &NewSelList); + +protected: + + //{{AFX_DATA(CMapAnimationDlg) + enum { IDD = IDD_ANIMATIONDLG }; + CSliderCtrl m_TimeSlider; // time in animation + CButton m_Play; // plays the current animation + //}}AFX_DATA + + //{{AFX_MSG( CMapAnimationDlg ) + afx_msg void OnHScroll( UINT nSBCode, UINT nPos, CScrollBar* pScrollBar ); + afx_msg void OnPlay(); + afx_msg void OnCreateKeyFrame(); + afx_msg void UpdateControl( CCmdUI *pCmdUI ); + //}}AFX_MSG + + void AdvanceAnimationTime( void ); + + void InitTimeSlider( void ); + void UpdateAnimationTime( void ); + void ResetTimeSlider( void ); + void PausePlayback( void ); + + + bool m_bPlaying; + bool m_bEnabled; + float m_flAnimationDuration; + float m_flAnimationStart; + float m_flAnimTime; + + DECLARE_MESSAGE_MAP() +}; + +#endif // MAPANIMATIONDLG_H |