public frmMiniMap(frmMain aMainForm) { // // Required for Windows Form Designer support // InitializeComponent(); // // TODO: Add any constructor code after InitializeComponent call // mMainForm = aMainForm; }
public frmSound(frmMain aMainForm) { // // Required for Windows Form Designer support // InitializeComponent(); // // TODO: Add any constructor code after InitializeComponent call // mMainForm= aMainForm; mlstSounds = new ArrayList(); }
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; }
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; } } }
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(); }
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(); }
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(); }
public cMapIO(frmMain aMainForm) { mMainForm = aMainForm; }