Exemplo n.º 1
0
        public override void OnRedo(PaintingUndoRedo.TextureBackup backup)
        {
            var toClear = recordedStrokesForUndoRedo.Count;

            recordedStrokes.AddRange(backup.strokeRecord);

            recordedStrokesForUndoRedo = backup.strokeRecord;
        }
Exemplo n.º 2
0
        public override void OnUndo(PaintingUndoRedo.TextureBackup backup)
        {
            var toClear = recordedStrokesForUndoRedo.Count;

            recordedStrokes.RemoveLast(toClear);

            recordedStrokesForUndoRedo = backup.strokeRecord;
        }
 public virtual void OnTextureBackup(PaintingUndoRedo.TextureBackup backup)
 {
 }
Exemplo n.º 4
0
 public override void OnTextureBackup(PaintingUndoRedo.TextureBackup backup)
 {
     backup.strokeRecord        = recordedStrokesForUndoRedo;
     recordedStrokesForUndoRedo = new List <string>();
 }