private void acceptButton_Click(object sender, EventArgs e) { bool themeChanged = (Settings.Default.ColorTheme != themeComboBox.SelectedIndex); bool basicDisplayNameChanged = (Settings.Default.UseBasicDisplayName != useBasicDisplayNameCheckBox.Checked); bool showVersionChanged = (Settings.Default.ShowVersionInfo != showVersionCheckBox.Checked); bool limitDisplayLengthChanged = (Settings.Default.IsDisplayLengthLimited != limitDisplayLengthCheckBox.Checked) || (Settings.Default.LimitedDisplayLength != (int)displayLengthNumericUpDown.Value); bool languageChanged = (Settings.Default.Language != languageComboBox.SelectedIndex); Settings.Default.Language = languageComboBox.SelectedIndex; Settings.Default.ColorTheme = themeComboBox.SelectedIndex; Settings.Default.ShowNodeToolTips = nodeToolTipsCheckBox.Checked; Settings.Default.ShowControlsOnStartUp = showControlsCheckBox.Checked; Settings.Default.CheckLatestVersion = checkBoxChecktheLatest.Checked; Settings.Default.DumpConnectData = dumpConnectDataCheckBox.Checked; Settings.Default.ShowVersionInfo = showVersionCheckBox.Checked; Settings.Default.UseBasicDisplayName = useBasicDisplayNameCheckBox.Checked; Settings.Default.NoResultTreatAsError = checkBoxTweatAsError.Checked; Settings.Default.IsDisplayLengthLimited = limitDisplayLengthCheckBox.Checked; Settings.Default.LimitedDisplayLength = (int)displayLengthNumericUpDown.Value; Settings.Default.ConcurrentProcessBehaviors = concurrentProcessBehaviorsCheckBox.Checked; Nodes.Node.ColorTheme = (Nodes.Node.ColorThemes)Settings.Default.ColorTheme; Behaviac.Design.Nodes.Action.NoResultTreatAsError = Settings.Default.NoResultTreatAsError; if (Settings.Default.ShowProfilingInfo != showProfileCheckBox.Checked) { Settings.Default.ShowProfilingInfo = showProfileCheckBox.Checked; Network.NetworkManager.Instance.SendProfiling(Settings.Default.ShowProfilingInfo); } Plugin.UseBasicDisplayName = Settings.Default.UseBasicDisplayName; //Plugin.ConcurrentProcessBehaviors = Settings.Default.ConcurrentProcessBehaviors; NodeViewData.ShowNodeId = Settings.Default.ShowVersionInfo; NodeViewData.IsDisplayLengthLimited = Settings.Default.IsDisplayLengthLimited; NodeViewData.LimitedDisplayLength = Settings.Default.LimitedDisplayLength; if (themeChanged || basicDisplayNameChanged || showVersionChanged || limitDisplayLengthChanged) { BehaviorTreeViewDock.RefreshAll(); PropertiesDock.UpdatePropertyGrids(); } if (languageChanged) { MessageBox.Show(Resources.LanguageChangedWarning, Resources.Warning, MessageBoxButtons.OK); //MainWindow.Instance.ReloadLayout(); } Settings.Default.FastExportFileType.Clear(); foreach (ListViewItem it in listView1.CheckedItems) { Settings.Default.FastExportFileType.Add(it.Text); } }
private void deleteBreakpoints(string[] behaviorFilenames, string[] nodeIds, DebugDataPool.Action[] actions) { Debug.Check(behaviorFilenames.Length == nodeIds.Length && nodeIds.Length == actions.Length); for (int i = 0; i < behaviorFilenames.Length; i++) { DebugDataPool.RemoveBreakPoint(behaviorFilenames[i], nodeIds[i], actions[i]); } BehaviorTreeViewDock.RefreshAll(); Inspect(); }
private void showButton_Click(object sender, EventArgs e) { HighlightBreakPoint.ShowBreakPoint = !HighlightBreakPoint.ShowBreakPoint; BehaviorTreeViewDock.RefreshAll(); if (HighlightBreakPoint.ShowBreakPoint) { showButton.ToolTipText = Resources.BreakpointsHide; } else { showButton.ToolTipText = Resources.BreakpointsShow; } }