Beispiel #1
0
 public static IEnumerable <GizmoUi> GetGizmos()
 {
     foreach (NodeUi node in nodes.Values)
     {
         GizmoUi gizmo = node as GizmoUi;
         if (gizmo != null)
         {
             yield return(gizmo);
         }
     }
 }
Beispiel #2
0
        public static void Register(NodeUi nodeUi)
        {
            if (nodeUi.IsSidebarNode)
            {
                return;
            }
            DebugUtils.Assert(!nodes.ContainsKey(nodeUi.Node));
            if (nodes.ContainsKey(nodeUi.Node))
            {
                return;
            }
            nodes[nodeUi.Node] = nodeUi;
            RRCSManager.Instance.selectionManager.SetSelectables(GetSelectables());

            nodeUi.IndexTextActive = showOrderLabels;
            GizmoUi gimoUi = nodeUi as GizmoUi;

            if (gimoUi != null)
            {
                gimoUi.TextActive = showPortLabels;
            }
        }