#if !defined(AFX_GAMEOBJPROPPANAL_H__5087DB16_FFD0_4601_B7DC_6924C7B4A500__INCLUDED_)
#define AFX_GAMEOBJPROPPANAL_H__5087DB16_FFD0_4601_B7DC_6924C7B4A500__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// GameObjPropPanal.h : header file
//

namespace MechWarrior4
{
class AI;
}

class EdGameObject;
class CObjProps;
#include "PanelDlg.h"

/////////////////////////////////////////////////////////////////////////////
// CGameObjPropPanal dialog
#define MEMCELLS 10
class UndoCommand;

class CGameObjPropPanal : public CPanelDlg
{
// Construction
public:
	void UpdateScriptSelection();
	void FillScriptList();
	void FillDriverList();
	CGameObjPropPanal(EdGameObject *obj,UndoCommand **cmd,CWnd* pParent = NULL);   // standard constructor
	CGameObjPropPanal(CObjProps *gobj,CWnd* pParent = NULL);   // standard constructor
	CObjProps	*MyMultiProps;
	UndoCommand **CmdLst;
	EdGameObject *MyObj;
	CString ResPath;
	bool BadScript;
	CEdit	*MemCell[MEMCELLS];
	float	*MCNum[MEMCELLS];
	bool MemCellChange[MEMCELLS],ScriptChange,AlignChange,DriverChange,SkinChange,RTypeChange,InvChange;
	// Dialog Data
	//{{AFX_DATA(CGameObjPropPanal)
	enum { IDD = IDD_GMEOBJPRPPAN };
	CButton	m_ChangeBut;
	CComboBox	m_SkinListCtrl;
	CStatic	m_RTypeCtl;
	CComboBox	m_ScriptList;
	CEdit	m_oMemCell0;
	CEdit	m_oMemCell1;
	CEdit	m_oMemCell2;
	CEdit	m_oMemCell3;
	CEdit	m_oMemCell4;
	CEdit	m_oMemCell5;
	CEdit	m_oMemCell6;
	CEdit	m_oMemCell7;
	CEdit	m_oMemCell8;
	CEdit	m_oMemCell9;
	CComboBox	m_Align;
	CComboBox	m_DriverType;
	CButton		m_ScriptFileListButton;
	float	m_oMCNum0;
	float	m_oMCNum1;
	float	m_oMCNum2;
	float	m_oMCNum3;
	float	m_oMCNum4;
	float	m_oMCNum5;
	float	m_oMCNum6;
	float	m_oMCNum7;
	float	m_oMCNum8;
	float	m_oMCNum9;
	float	m_MCNum;
	CString	m_ResType;
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CGameObjPropPanal)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support

	//}}AFX_VIRTUAL

// Implementation
protected:
	void RefreshScriptName();
	void SetControlState();
	void GetGameData(CMenu &menu);
	
	// Generated message map functions
	//{{AFX_MSG(CGameObjPropPanal)
	virtual void OnOK();
	virtual void OnCancel() {}

	virtual BOOL OnInitDialog();
	afx_msg void OnSelchangeDrivertypeCombo();
	afx_msg void OnAddscript();
	afx_msg void OnRestype();
	afx_msg void OnSelchangeSkinlist();
	afx_msg void OnSelchangeScript();
	afx_msg void OnChangeMemcell9();
	afx_msg void OnChangeMemcell8();
	afx_msg void OnChangeMemcell7();
	afx_msg void OnChangeMemcell6();
	afx_msg void OnChangeMemcell5();
	afx_msg void OnChangeMemcell4();
	afx_msg void OnChangeMemcell3();
	afx_msg void OnChangeMemcell2();
	afx_msg void OnChangeMemcell1();
	afx_msg void OnChangeMemcell0();
	afx_msg void OnSelchangeAlignlist();
	afx_msg void OnChange();
	afx_msg void OnInvul();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_GAMEOBJPROPPANAL_H__5087DB16_FFD0_4601_B7DC_6924C7B4A500__INCLUDED_)
