private void SetupParameters() { SGSettings settings = UISGSettings.instance.GetSettings(); columns = settings.levelWidth; rows = settings.levelHeight; numRooms = new IntRange(settings.roomNumberMin, settings.roomNumberMax); roomWidth = new IntRange(settings.roomWidthMin, settings.roomWidthMax); roomHeight = new IntRange(settings.roomHeightMin, settings.roomHeightMax); corridorLength = new IntRange(settings.connectionLengthMin, settings.connectionLengthMax); }
private void ResetUI(object sender, EventArgs e) { this.BeginInvoke((Action) delegate() { this.Enabled = true; this.Focus(); }); StartButton.BeginInvoke((Action) delegate() { StartButton.Enabled = true; StartButton.Focus(); }); StopButton.BeginInvoke((Action) delegate() { StopButton.Enabled = false; }); numReplays.BeginInvoke((Action) delegate() { numReplays.Enabled = true; }); InputRecordHotkey.BeginInvoke((Action) delegate() { InputRecordHotkey.Enabled = true; }); InputStopHotkey.BeginInvoke((Action) delegate() { InputStopHotkey.Enabled = true; }); menuStrip.BeginInvoke((Action) delegate() { menuStrip.Enabled = true; }); SGSettings.BeginInvoke((Action) delegate() { SGSettings.Enabled = true; }); BBTagSettings.BeginInvoke((Action) delegate() { BBTagSettings.Enabled = true; }); GGXrdSettings.BeginInvoke((Action) delegate() { GGXrdSettings.Enabled = true; }); }