public cArea(frmAreas aAForm,int alX,int alY, float afZ) : base(alX,alY,100) { mAForm = aAForm; mlTypeNum = mAForm.objTypeList.SelectedIndex; }
public cArea(frmAreas aAForm, int alX, int alY, float afZ) : base(alX, alY, 100) { mAForm = aAForm; mlTypeNum = mAForm.objTypeList.SelectedIndex; }
public frmMain() { // // Required for Windows Form Designer support // InitializeComponent(); mTilesetsForm = new frmTileSets(this); mLayersForm = new frmLayers(this); mPropsForm = new frmProps(this); mSoundForm = new frmSound(this); mParticlesForm = new frmParticles(this); mAreasForm = new frmAreas(this); mNewMapForm = new frmNewMap(); mLightForm = new frmLight(this); mMiniMapForm = new frmMiniMap(this); mlstEnityLists = new ArrayList(); mlstEnityLists.Add(mPropsForm.mlstProps); mlstEnityLists.Add(mLightForm.mlstLights); mlstEnityLists.Add(mSoundForm.mlstSounds); mlstEnityLists.Add(mParticlesForm.mlstParticles); mlstEnityLists.Add(mAreasForm.mlstAreas); mlstActiveForms = new ArrayList(); mPopupMenu = new ContextMenu(); objMapPanel.ContextMenu = mPopupMenu; mMapIO = new cMapIO(this); mOpenFileDialog = new OpenFileDialog(); mOpenFileDialog.Filter = "HPL Map files (*.hpl)|*.hpl"; mOpenFileDialog.InitialDirectory = (string)Directory.GetCurrentDirectory().Clone(); mSaveFileDialog = new SaveFileDialog(); mSaveFileDialog.Filter = "HPL Map files (*.hpl)|*.hpl"; mSaveFileDialog.InitialDirectory = (string)Directory.GetCurrentDirectory().Clone(); mSelectFontOn = new Font("Microsoft Sans Serif",8,FontStyle.Bold); mSelectFontOff = objModeSelectButton.Font; mSelectColorOff = objModeSelectButton.BackColor; mlstSelectedEntities = new ArrayList(); mSelectRect = new Rectangle(0,0,0,0); mlstCopiedEntities = new ArrayList(); }