Пример #1
0
        public override void onEndReparenting()
        {
            EWorldEditor EWorldEditor = "EWorldEditor";
            editor       Editor       = "Editor";

            UndoActionReparentObjects action = this.reparentUndoAction;

            this.reparentUndoAction = "";

            if (action.numObjects > 0)
            {
                if (action.numObjects == 1)
                {
                    action.actionName = "Reparent Object";
                }
                else
                {
                    action.actionName = "Reparent Objects";
                }

                action.addToManager(Editor.getUndoManager());

                EWorldEditor.syncGui();
            }
            else
            {
                action.delete();
            }
        }
        public override void onEndReparenting()
        {
            GuiEditorGui.GuiEditor GuiEditor = "GuiEditor";

            UndoActionReparentObjects action = this.reparentUndoAction;

            this.reparentUndoAction = "";

            if (action.numObjects > 0)
            {
                if (action.numObjects == 1)
                {
                    action.actionName = "Reparent Control";
                }
                else
                {
                    action.actionName = "Reparent Controls";
                }

                action.addToManager(GuiEditor.getUndoManager());

                GuiEditor.updateUndoMenu();
            }
            else
            {
                action.delete();
            }
        }
Пример #3
0
        public override void onBeginReparenting()
        {
            UndoActionReparentObjects UndoActionReparentObjects = "UndoActionReparentObjects";

            if (this.reparentUndoAction.isObject())
            {
                this.reparentUndoAction.delete();
            }

            UndoActionReparentObjects action = UndoActionReparentObjects.create(this);

            this.reparentUndoAction = action;
        }