Ejemplo n.º 1
0
        public void Render()
        {
            if (chainesAreDirty)
            {
                chainesAreDirty = false;
                ReconstructMessageChains();
            }

            if (messageActors.Count > 0)
            {
                foreach (MessageLine line in messageLines)
                {
                    line.RenderLine();
                }

                foreach (MessageActorWidget actor in messageActors)
                {
                    actor.Render();
                }


                foreach (MessageLine line in messageLines)
                {
                    line.RenderMessages(ShowMessages);
                }
            }
            else
            {
                CodeControlEditorStyles.SetLabelStyle(CodeControlEditorStyles.LabelStyle.WarningMessage);
                GUI.color = CodeControlEditorStyles.NoContentColor;
                GUI.Label(new Rect(18, 15, 300, 100), "No Messages Sent.");
                CodeControlEditorStyles.ResetLabelStyle();
            }
        }
Ejemplo n.º 2
0
 public void Render()
 {
     if (rootNodes.Count > 0)
     {
         foreach (ModelTypeWidgetNode rootNode in rootNodes)
         {
             rootNode.Render();
         }
     }
     else
     {
         CodeControlEditorStyles.SetLabelStyle(CodeControlEditorStyles.LabelStyle.WarningMessage);
         GUI.color = CodeControlEditorStyles.NoContentColor;
         GUI.Label(new Rect(18, 15, 300, 100), "No Models Found.");
         CodeControlEditorStyles.ResetLabelStyle();
     }
 }
Ejemplo n.º 3
0
        public void Render()
        {
            if (modelRelationsWidgets.Count > 0)
            {
                CodeControlEditorStyles.SetLabelStyle(CodeControlEditorStyles.LabelStyle.ModelRelationsTitle);
                GUI.Label(new Rect(CodeControlMonitorWindow.WindowOffset.x, CodeControlMonitorWindow.WindowOffset.y, ModelRelationsWidget.Width, 30), "Actor");
                GUI.Label(new Rect(CodeControlMonitorWindow.WindowOffset.x + ModelRelationsWidget.WidgetMarginHor, CodeControlMonitorWindow.WindowOffset.y, ModelRelationsWidget.Width, 30), "Model");
                GUI.Label(new Rect(CodeControlMonitorWindow.WindowOffset.x + 2.0f * ModelRelationsWidget.WidgetMarginHor, CodeControlMonitorWindow.WindowOffset.y, ModelRelationsWidget.Width, 30), "Handler");
                CodeControlEditorStyles.ResetLabelStyle();

                foreach (ModelRelationsWidget widget in modelRelationsWidgets)
                {
                    widget.Render();
                }
            }
            else
            {
                CodeControlEditorStyles.SetLabelStyle(CodeControlEditorStyles.LabelStyle.WarningMessage);
                GUI.color = CodeControlEditorStyles.NoContentColor;
                GUI.Label(new Rect(18, 15, 300, 100), "No Model Changes Notified.");
                CodeControlEditorStyles.ResetLabelStyle();
            }
        }
Ejemplo n.º 4
0
        public void Render()
        {
            Vector2 start = TypeWidget.Position - .25f * ModelTypeWidget.Width * Vector2.right + .5f * ModelTypeWidget.Height * Vector2.up;

            foreach (ModelTypeWidgetNode node in nodes)
            {
                Vector2 end = node.TypeWidget.Position - .5f * ModelTypeWidget.Width * Vector2.right;
                Vector2 mid = new Vector2(start.x, end.y);
                RenderingHelper.RenderLineInMonitorWindow(start, mid, Color.white, 1);
                RenderingHelper.RenderLineInMonitorWindow(mid, end, Color.white, 1);
                start = new Vector2(TypeWidget.Position.x - .25f * ModelTypeWidget.Width, node.TypeWidget.Position.y);
            }

            TypeWidget.Render();

            foreach (ModelTypeWidgetNode node in nodes)
            {
                Vector2 aggregationCountPosition = node.TypeWidget.Position - .70f * ModelTypeWidget.Width * Vector2.right + CodeControlMonitorWindow.WindowOffset;
                CodeControlEditorStyles.SetLabelStyle(CodeControlEditorStyles.LabelStyle.AggregationCountType);
                GUI.Label(new Rect(aggregationCountPosition.x - 100, aggregationCountPosition.y - 8, 100, 30), node.AggregationCountType);
                CodeControlEditorStyles.ResetLabelStyle();
                node.Render();
            }
        }