2001-03-13 22:00:34 +01:00
|
|
|
#if !defined(AFX_LAYERSHADEGUI_H__28B4764C_E86F_481B_9822_CFAE6CD32C9D__INCLUDED_)
|
|
|
|
#define AFX_LAYERSHADEGUI_H__28B4764C_E86F_481B_9822_CFAE6CD32C9D__INCLUDED_
|
|
|
|
|
|
|
|
#if _MSC_VER > 1000
|
|
|
|
#pragma once
|
|
|
|
#endif // _MSC_VER > 1000
|
|
|
|
// LayerShadeGUI.h : header file
|
|
|
|
//
|
|
|
|
|
2001-04-30 23:49:54 +02:00
|
|
|
#ifndef u8
|
|
|
|
typedef unsigned char u8;
|
|
|
|
#endif
|
2001-03-13 22:00:34 +01:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// CGUILayerShade dialog
|
|
|
|
|
|
|
|
class CGUILayerShade : public CDialog
|
|
|
|
{
|
|
|
|
// Construction
|
|
|
|
public:
|
|
|
|
CGUILayerShade(CWnd* pParent = NULL); // standard constructor
|
|
|
|
|
|
|
|
// Dialog Data
|
|
|
|
//{{AFX_DATA(CGUILayerShade)
|
2001-03-22 21:49:58 +01:00
|
|
|
enum { IDD = IDD_LAYER_SHADE };
|
2001-05-05 23:18:12 +02:00
|
|
|
CSpinButtonCtrl m_GfxPosYSpin;
|
|
|
|
CSpinButtonCtrl m_GfxPosXSpin;
|
2001-04-30 23:49:54 +02:00
|
|
|
CComboBox m_DefList;
|
|
|
|
CSpinButtonCtrl m_ShadeCountSpin;
|
|
|
|
CEdit m_ShadeCount;
|
|
|
|
CEdit m_ShadeR0;
|
|
|
|
CEdit m_ShadeG0;
|
|
|
|
CEdit m_ShadeB0;
|
|
|
|
CEdit m_ShadeR1;
|
|
|
|
CEdit m_ShadeG1;
|
|
|
|
CEdit m_ShadeB1;
|
|
|
|
CEdit m_ShadeR2;
|
|
|
|
CEdit m_ShadeG2;
|
|
|
|
CEdit m_ShadeB2;
|
|
|
|
CEdit m_ShadeR3;
|
|
|
|
CEdit m_ShadeG3;
|
|
|
|
CEdit m_ShadeB3;
|
|
|
|
CSpinButtonCtrl m_GfxCurrentSpin;
|
|
|
|
CEdit m_GfxCurrent;
|
|
|
|
CComboBox m_GfxBankList;
|
|
|
|
CEdit m_GfxPosX;
|
|
|
|
CEdit m_GfxPosY;
|
|
|
|
CSpinButtonCtrl m_GfxSpinx0;
|
|
|
|
CSpinButtonCtrl m_GfxSpiny0;
|
|
|
|
CEdit m_Gfxx0;
|
|
|
|
CEdit m_Gfxy0;
|
|
|
|
CEdit m_GfxR0;
|
|
|
|
CEdit m_GfxG0;
|
|
|
|
CEdit m_GfxB0;
|
|
|
|
CSpinButtonCtrl m_GfxSpinx1;
|
|
|
|
CSpinButtonCtrl m_GfxSpiny1;
|
|
|
|
CEdit m_Gfxx1;
|
|
|
|
CEdit m_Gfxy1;
|
|
|
|
CEdit m_GfxR1;
|
|
|
|
CEdit m_GfxG1;
|
|
|
|
CEdit m_GfxB1;
|
|
|
|
CSpinButtonCtrl m_GfxSpinx2;
|
|
|
|
CSpinButtonCtrl m_GfxSpiny2;
|
|
|
|
CEdit m_Gfxx2;
|
|
|
|
CEdit m_Gfxy2;
|
|
|
|
CEdit m_GfxR2;
|
|
|
|
CEdit m_GfxG2;
|
|
|
|
CEdit m_GfxB2;
|
|
|
|
CSpinButtonCtrl m_GfxSpinx3;
|
|
|
|
CSpinButtonCtrl m_GfxSpiny3;
|
|
|
|
CEdit m_Gfxx3;
|
|
|
|
CEdit m_Gfxy3;
|
|
|
|
CEdit m_GfxR3;
|
|
|
|
CEdit m_GfxG3;
|
|
|
|
CEdit m_GfxB3;
|
|
|
|
CComboBox m_GfxTransList;
|
2001-03-13 22:00:34 +01:00
|
|
|
//}}AFX_DATA
|
|
|
|
|
|
|
|
void OnOK();
|
|
|
|
|
|
|
|
// Overrides
|
|
|
|
// ClassWizard generated virtual function overrides
|
|
|
|
//{{AFX_VIRTUAL(CGUILayerShade)
|
|
|
|
protected:
|
|
|
|
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
|
|
|
|
//}}AFX_VIRTUAL
|
|
|
|
|
|
|
|
// Implementation
|
2001-04-30 23:49:54 +02:00
|
|
|
public:
|
|
|
|
void EnableCallback() {CallbackFlag=true;}
|
|
|
|
void DisableCallback() {CallbackFlag=false;}
|
|
|
|
void SetVal(CEdit &Dlg,int &Val,int Min=-1,int Max=-1);
|
|
|
|
void GetVal(CEdit &Dlg,int &Val,int Min=-1,int Max=-1);
|
|
|
|
void SetRGB(CEdit &RDlg,CEdit &GDlg,CEdit &BDlg,u8 &R,u8 &G,u8 &B);
|
|
|
|
void GetRGB(CEdit &RDlg,CEdit &GDlg,CEdit &BDlg,u8 &R,u8 &G,u8 &B);
|
|
|
|
|
|
|
|
void SetShadeRGB(int idx,u8 &R,u8 &G,u8 &B);
|
|
|
|
void GetShadeRGB(int idx,u8 &R,u8 &G,u8 &B);
|
|
|
|
void SetGfxRGB(int idx,u8 &R,u8 &G,u8 &B);
|
|
|
|
void GetGfxRGB(int idx,u8 &R,u8 &G,u8 &B);
|
|
|
|
|
2001-03-13 22:00:34 +01:00
|
|
|
protected:
|
2001-04-30 23:49:54 +02:00
|
|
|
bool CallbackFlag;
|
2001-03-13 22:00:34 +01:00
|
|
|
|
|
|
|
// Generated message map functions
|
|
|
|
//{{AFX_MSG(CGUILayerShade)
|
2001-04-07 23:05:33 +02:00
|
|
|
afx_msg void OnChangeParam();
|
2001-04-30 23:49:54 +02:00
|
|
|
afx_msg void OnGoto();
|
|
|
|
afx_msg void OnDelete();
|
|
|
|
afx_msg void OnChangeCurrent();
|
|
|
|
afx_msg void OnNew();
|
2001-03-13 22:00:34 +01:00
|
|
|
//}}AFX_MSG
|
|
|
|
DECLARE_MESSAGE_MAP()
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
//{{AFX_INSERT_LOCATION}}
|
|
|
|
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
|
|
|
|
|
|
|
|
#endif // !defined(AFX_LAYERSHADEGUI_H__28B4764C_E86F_481B_9822_CFAE6CD32C9D__INCLUDED_)
|