Пример #1
0
		public frmMiniMap(frmMain aMainForm)
		{
			//
			// Required for Windows Form Designer support
			//
			InitializeComponent();

			//
			// TODO: Add any constructor code after InitializeComponent call
			//
			mMainForm = aMainForm;
		}
Пример #2
0
		public frmSound(frmMain aMainForm)
		{
			//
			// Required for Windows Form Designer support
			//
			InitializeComponent();

			//
			// TODO: Add any constructor code after InitializeComponent call
			//
			mMainForm= aMainForm;
			mlstSounds = new ArrayList();
		}
Пример #3
0
		public frmTileSets(frmMain aMainForm)
		{
			InitializeComponent();

			mMainForm = aMainForm;
			
			mOpenFileDialog = new OpenFileDialog();
			mOpenFileDialog.Filter = "tileset files (*.tsd)|*.tsd|All files (*.*)|*.*";
			mOpenFileDialog.InitialDirectory = (string)Directory.GetCurrentDirectory().Clone();

			mlstTileSets = new ArrayList();

			objRotationList.SelectedIndex =0;
		}
Пример #4
0
		public frmParticles(frmMain aMainForm)
		{
			//
			// Required for Windows Form Designer support
			//
			InitializeComponent();

			//
			// TODO: Add any constructor code after InitializeComponent call
			//
			
			mMainForm = aMainForm;
			
			mlstParticles = new ArrayList();
			mlstTypes = new ArrayList();
			
			XmlDocument Doc = new XmlDocument();
			try	{
				Doc.Load("MapEditor.cfg");
			}
			catch(XmlException e) 
			{

				MessageBox.Show("Couldn't load 'MapEditor.cfg'!\n"+e.ToString(), "Error");
				return;
			}
            
			XmlElement CfgElem = (XmlElement)Doc.FirstChild;
			foreach(XmlElement CfgElemChild in CfgElem.ChildNodes)
			{
				if(CfgElemChild.Name == "ParticleSystems")
				{
					foreach(XmlElement PartElem in CfgElemChild.ChildNodes)
					{
						cParticleType PType = new cParticleType();
						PType.msName = cHplXml.GetStr(PartElem,"Name","");
						PType.msDesc[0] = cHplXml.GetStr(PartElem,"XDesc","");
						PType.msDesc[1] = cHplXml.GetStr(PartElem,"YDesc","");
						PType.msDesc[2] = cHplXml.GetStr(PartElem,"ZDesc","");

						objTypeList.Items.Add(PType.msName);
						mlstTypes.Add(PType);
						objTypeList.SelectedIndex =0;
					}
					break;
				}
			}	
		}
Пример #5
0
		public frmLight(frmMain aMainForm)
		{
			//
			// Required for Windows Form Designer support
			//
			InitializeComponent();

			//
			// TODO: Add any constructor code after InitializeComponent call
			//
			
			mMainForm = aMainForm;
			objTypeList.SelectedIndex =0;

			mlstLights = new ArrayList();
		}
Пример #6
0
		public frmProps(frmMain aMainFrom)
		{
			//
			// Required for Windows Form Designer support
			//
			InitializeComponent();

			//
			// TODO: Add any constructor code after InitializeComponent call
			//

			mMainForm = aMainFrom;

			mlstPropData = new ArrayList();
			mlstProps = new ArrayList();

			mOpenFileDialog = new OpenFileDialog();
			mOpenFileDialog.Filter = "entity files (*.hed)|*.hed|All files (*.*)|*.*";
			mOpenFileDialog.InitialDirectory = (string)Directory.GetCurrentDirectory().Clone();

		}
Пример #7
0
		public frmMapProp(frmMain aMainForm)
		{
			//
			// Required for Windows Form Designer support
			//
			InitializeComponent();

			//
			// TODO: Add any constructor code after InitializeComponent call
			//
			mMainForm = aMainForm;

			objNameText.Text = mMainForm.msMapName;
			float fZ = mMainForm.mfLightZ;
			objZText.Text = fZ.ToString();
			objAmbientPanel.BackColor = mMainForm.mAmbientColor;
			int lW = mMainForm.mlMapWidth;
			int lH = mMainForm.mlMapHeight;
			objWidthText.Text = lW.ToString();
			objHeightText.Text = lH.ToString();
		}
Пример #8
0
		public cMapIO(frmMain aMainForm)
		{
			mMainForm = aMainForm;
		}