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

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

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

            BTEditorManager.Manager.Unparent(menuAction.node);
            Repaint();
        }
Exemplo 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();
        }
Exemplo n.º 5
0
        public void ConnectRightKillChild(object userData)
        {
            MenuAction menuAction = userData as MenuAction;

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

            view.ConnectParent(menuAction.node);
        }