void DisplayStepValues(State.DebuggingDataModel step, Dictionary <IGraphElementModel, GraphElement> modelsToNodeUiMapping) { if (step.values != null) { foreach (var value in step.values) { AddValueToNode(modelsToNodeUiMapping, value.Key, value.Value); } } }
void AddStyleClassToModel(State.DebuggingDataModel step, IReadOnlyDictionary <IGraphElementModel, GraphElement> modelsToNodeUiMapping, string highlightStyle) { if (step.nodeModel != null && modelsToNodeUiMapping.TryGetValue(step.nodeModel, out GraphElement ui)) { if (step.type == Debugger.VisualScriptingFrameTrace.StepType.Exception) { ui.AddToClassList(k_ExceptionHighlight); if (m_PauseState == PauseState.Paused || m_PlayState == PlayModeStateChange.EnteredEditMode) { ((VseGraphView)m_GraphView).UIController.AttachErrorBadge(ui, step.text, SpriteAlignment.TopLeft); } } else { ui.AddToClassList(highlightStyle); } } }