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(); } }