Ejemplo n.º 1
0
        public void Delete(object userData)
        {
            MenuAction menuAction = userData as MenuAction;

            BTEditorManager.Manager.Delete(menuAction.node);
            Repaint();
        }
Ejemplo n.º 2
0
        public void DisconnectAll(object userData)
        {
            MenuAction menuAction = userData as MenuAction;

            BTEditorManager.Manager.DisconnectAll(menuAction.node);
            Repaint();
        }
Ejemplo n.º 3
0
        public void Unparent(object userData)
        {
            MenuAction menuAction = userData as MenuAction;

            BTEditorManager.Manager.Unparent(menuAction.node);
            Repaint();
        }
Ejemplo n.º 4
0
        // Context Menu actions

        public void Add(object userData)
        {
            MenuAction menuAction = userData as MenuAction;

            BTEditorManager.Manager.Add(menuAction.node, menuAction.position, menuAction.nodeType);
            view.ResizeCanvas();
            Repaint();
        }
Ejemplo n.º 5
0
        public void ConnectRightKillChild(object userData)
        {
            MenuAction menuAction = userData as MenuAction;

            view.ConnectRightKillChild(menuAction.node);
        }
Ejemplo n.º 6
0
        public void ConnectParent(object userData)
        {
            MenuAction menuAction = userData as MenuAction;

            view.ConnectParent(menuAction.node);
        }