mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2025-01-18 14:31:50 +00:00
undo/redo information in log
This commit is contained in:
parent
87ea1c0e51
commit
2ac020e481
2 changed files with 9 additions and 2 deletions
|
@ -1,5 +1,3 @@
|
|||
- Add log in main window for debug versions
|
||||
|
||||
- Make things filter
|
||||
|
||||
- Change linedefs in configurations
|
||||
|
|
|
@ -96,6 +96,7 @@ namespace CodeImp.DoomBuilder.Editing
|
|||
// Clean up
|
||||
ClearUndos();
|
||||
ClearRedos();
|
||||
General.WriteLogLine("All undo and redo levels cleared.");
|
||||
|
||||
// Done
|
||||
isdisposed = true;
|
||||
|
@ -154,6 +155,8 @@ namespace CodeImp.DoomBuilder.Editing
|
|||
// Next ticket id
|
||||
if(++ticketid == int.MaxValue) ticketid = 1;
|
||||
|
||||
General.WriteLogLine("Creating undo snapshot \"" + description + "\", Group " + group + ", Tag " + grouptag + ", Ticket ID " + ticketid + "...");
|
||||
|
||||
// Make a snapshot
|
||||
u = new UndoSnapshot(description, General.Map.Map.Clone(), ticketid);
|
||||
|
||||
|
@ -189,6 +192,8 @@ namespace CodeImp.DoomBuilder.Editing
|
|||
// Check if the ticket id matches
|
||||
if(ticket == undos[0].ticketid)
|
||||
{
|
||||
General.WriteLogLine("Withdrawing undo snapshot \"" + undos[0].description + "\", Ticket ID " + ticket + "...");
|
||||
|
||||
// Remove the last made undo
|
||||
undos.RemoveAt(0);
|
||||
|
||||
|
@ -216,6 +221,8 @@ namespace CodeImp.DoomBuilder.Editing
|
|||
u = undos[0];
|
||||
undos.RemoveAt(0);
|
||||
|
||||
General.WriteLogLine("Performing undo \"" + u.description + "\", Ticket ID " + u.ticketid + "...");
|
||||
|
||||
// Make a snapshot for redo
|
||||
r = new UndoSnapshot(u, General.Map.Map.Clone());
|
||||
|
||||
|
@ -259,6 +266,8 @@ namespace CodeImp.DoomBuilder.Editing
|
|||
r = redos[0];
|
||||
redos.RemoveAt(0);
|
||||
|
||||
General.WriteLogLine("Performing redo \"" + r.description + "\", Ticket ID " + r.ticketid + "...");
|
||||
|
||||
// Make a snapshot for undo
|
||||
u = new UndoSnapshot(r, General.Map.Map.Clone());
|
||||
|
||||
|
|
Loading…
Reference in a new issue