public override void Apply(DialogEditorCtrlZ _dialogEditorCtrlZ) { if (targetNode is DialogNode) { (targetNode as DialogNode).connections.Remove(nb); } else if (targetNode is BeginDialogTagNode) { (targetNode as BeginDialogTagNode).firstDialogNode = null; } }
public override void ApplyReverse(DialogEditorCtrlZ _dialogEditorCtrlZ) { if (targetNode is DialogNode) { (targetNode as DialogNode).connections[nb] = linkTarget; } else if (targetNode is BeginDialogTagNode) { (targetNode as BeginDialogTagNode).firstDialogNode = linkTarget as DialogNode; } }
public override void ApplyReverse(DialogEditorCtrlZ _dialogEditorCtrlZ) { if (targetNode is DialogNode) { targetNode = targetDialog.AddDialogNodeNoCtrlZ(targetNode as DialogNode); _dialogEditorCtrlZ.UpdateRef(copy, targetNode, this); } else if (targetNode is SubDialogNode) { targetNode = targetDialog.AddSubDialogNoCtrlZ(copy as SubDialogNode); _dialogEditorCtrlZ.UpdateRef(copy, targetNode, this); } }
public CtrlZNodeDeleted(DialogEditorCtrlZ _dialogEditorCtrlZ, BaseNode _targetNode, Dialog _targetDialog) : base(eCtrlZAction.NodeDeleted, _targetNode, _targetDialog) { if (targetNode is DialogNode) { copy = new DialogNode(_targetNode as DialogNode); _dialogEditorCtrlZ.UpdateRef(targetNode, copy, this); } else if (_targetNode is SubDialogNode) { copy = new SubDialogNode(_targetNode as SubDialogNode); _dialogEditorCtrlZ.UpdateRef(targetNode, copy, this); } }
public override void Apply(DialogEditorCtrlZ _dialogEditorCtrlZ) { if (targetNode is DialogNode) { copy = new DialogNode(targetNode as DialogNode); _dialogEditorCtrlZ.UpdateRef(targetNode, copy, this); targetDialog.RemoveDialogNode(targetNode as DialogNode, false); } else if (targetNode is SubDialogNode) { copy = new SubDialogNode(targetNode as SubDialogNode); _dialogEditorCtrlZ.UpdateRef(targetNode, copy, this); targetDialog.RemoveSubDialogNode(targetNode as SubDialogNode, false); } }
public override void ApplyReverse(DialogEditorCtrlZ _dialogEditorCtrlZ) { if (targetNode is DialogNode) { DialogNode target = targetNode as DialogNode; if (nb == -2) { target.windowTitle = oldText; } else if (nb == -1) { target.text = oldText; } else { target.answers[nb] = oldText; } } else if (targetNode is SubDialogNode) { (targetNode as SubDialogNode).dialog.dialogName = oldText; } }
public abstract void ApplyReverse(DialogEditorCtrlZ _dialogEditorCtrlZ);
public abstract void Apply(DialogEditorCtrlZ _dialogEditorCtrlZ);
public override void ApplyReverse(DialogEditorCtrlZ _dialogEditorCtrlZ) { targetNode.windowTitle = oldName; }
public override void Apply(DialogEditorCtrlZ _dialogEditorCtrlZ) { targetNode.windowTitle = newName; }
public override void ApplyReverse(DialogEditorCtrlZ _dialogEditorCtrlZ) { targetNode.windowRect.position = oldPos; }
public override void Apply(DialogEditorCtrlZ _dialogEditorCtrlZ) { targetNode.windowRect.position = newPos; }
public override void ApplyReverse(DialogEditorCtrlZ _dialogEditorCtrlZ) { (targetNode as DialogNode).nbOfAnswers -= nb; }