Beispiel #1
0
        public void Delete(object userData)
        {
            MenuAction menuAction = userData as MenuAction;

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

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

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

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

            view.ConnectParent(menuAction.node);
        }