using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using CodeImp.DoomBuilder.Map; using CodeImp.DoomBuilder.Geometry; using CodeImp.DoomBuilder.Windows; namespace CodeImp.DoomBuilder.ThreeDFloorMode { public partial class SlopeDataSectorDialog : Form { public SlopeDataSectorDialog() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { if (General.Map.Map.SelectedSectorsCount == 0) MessageBox.Show("No sectors selected. Please select exactly one sector", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); else if (General.Map.Map.SelectedSectorsCount > 1) MessageBox.Show(General.Map.Map.SelectedSectorsCount.ToString() + " sectors selected. Please select exactly one sector", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); else { General.Map.Map.ClearAllMarks(false); General.Map.Map.GetSelectedSectors(true).First().Marked = true; this.DialogResult = DialogResult.OK; this.Close(); } } private void SlopeDataSectorDialog_Load(object sender, EventArgs e) { webBrowser1.DocumentText = string.Format(System.Globalization.CultureInfo.GetCultureInfo("en-US"), @" The map does not contain a slope data sector. This sector is required by the slope mode to store data for the slope vertex groups. You have two options: