mirror of
https://github.com/ptitSeb/Serious-Engine
synced 2024-11-25 03:40:26 +01:00
87 lines
2.8 KiB
C++
87 lines
2.8 KiB
C++
/* Copyright (c) 2002-2012 Croteam Ltd.
|
|
This program is free software; you can redistribute it and/or modify
|
|
it under the terms of version 2 of the GNU General Public License as published by
|
|
the Free Software Foundation
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License along
|
|
with this program; if not, write to the Free Software Foundation, Inc.,
|
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */
|
|
|
|
#if !defined(AFX_DLGCREATEANIMATEDTEXTURE_H__C517CED3_FA6C_11D1_82E9_000000000000__INCLUDED_)
|
|
#define AFX_DLGCREATEANIMATEDTEXTURE_H__C517CED3_FA6C_11D1_82E9_000000000000__INCLUDED_
|
|
|
|
#if _MSC_VER >= 1000
|
|
#pragma once
|
|
#endif // _MSC_VER >= 1000
|
|
// DlgCreateAnimatedTexture.h : header file
|
|
//
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// CDlgCreateAnimatedTexture dialog
|
|
|
|
class CDlgCreateAnimatedTexture : public CDialog
|
|
{
|
|
// Construction
|
|
public:
|
|
CDlgCreateAnimatedTexture(CDynamicArray<CTFileName> &afnPictures, CWnd* pParent = NULL); // standard constructor
|
|
~CDlgCreateAnimatedTexture();
|
|
void ReleaseCreatedTexture(void);
|
|
void InitAnimationsCombo(void);
|
|
void RefreshTexture(void);
|
|
|
|
CDynamicArray<CTFileName> *m_pafnPictures;
|
|
BOOL m_bPreviewWindowsCreated;
|
|
PIX m_pixSourceWidth;
|
|
PIX m_pixSourceHeight;
|
|
CTFileName m_fnSourceFileName;
|
|
CTFileName m_fnCreatedFileName;
|
|
CWndDisplayTexture m_wndViewDetailTexture;
|
|
CWndDisplayTexture m_wndViewCreatedTexture;
|
|
CTextureData *m_ptdCreated;
|
|
|
|
// Dialog Data
|
|
//{{AFX_DATA(CDlgCreateAnimatedTexture)
|
|
enum { IDD = IDD_CREATE_ANIMATED_TEXTURE };
|
|
CButton m_ctrlCheckButton;
|
|
CComboBox m_ctrlAnimationsCombo;
|
|
CString m_strEditScript;
|
|
CString m_strSizeInPixels;
|
|
CString m_strCreatedTextureName;
|
|
//}}AFX_DATA
|
|
|
|
|
|
// Overrides
|
|
// ClassWizard generated virtual function overrides
|
|
//{{AFX_VIRTUAL(CDlgCreateAnimatedTexture)
|
|
protected:
|
|
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
|
|
//}}AFX_VIRTUAL
|
|
|
|
// Implementation
|
|
protected:
|
|
|
|
// Generated message map functions
|
|
//{{AFX_MSG(CDlgCreateAnimatedTexture)
|
|
afx_msg void OnPaint();
|
|
afx_msg void OnChequeredAlpha();
|
|
afx_msg void OnBrowseDetail();
|
|
afx_msg void OnDetailNone();
|
|
afx_msg void OnCreateTexture();
|
|
afx_msg void OnRefreshTexture();
|
|
virtual BOOL OnInitDialog();
|
|
afx_msg void OnSelchangeTextureAnimations();
|
|
//}}AFX_MSG
|
|
DECLARE_MESSAGE_MAP()
|
|
};
|
|
|
|
//{{AFX_INSERT_LOCATION}}
|
|
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
|
|
|
|
#endif // !defined(AFX_DLGCREATEANIMATEDTEXTURE_H__C517CED3_FA6C_11D1_82E9_000000000000__INCLUDED_)
|