blob: 06f1b26ee850c768f89639223bf25cfd6ec1a647 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
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
|