Undo and redo part 2

Published June 05, 2007
Advertisement
Got a simple application with undo/redo up and running today. Basically each of the buttons registers a ButtonPressAction every time they are pressed, and if you do a undo you register a ButtonPressRemoveAction. And the code to actuallt undo/redo is index based, it manipulates the listbox.items at the current index.
The CircularStack class is made in a couple of seconds so I won't take any responsibility on that it is perfect :)

Try it if you want. Clicky
Previous Entry Undo/Redo
Next Entry Undo / Redo done
0 likes 0 comments

Comments

Nobody has left a comment. You can be the first!
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Profile
Author
Advertisement

Latest Entries

Pissed (again)

922 views

Damn IE!

908 views

Undo / Redo done

1013 views

Undo/Redo

1158 views

Change of plans

852 views

Here's the list

957 views

Minor update

1007 views

Some progress

1009 views
Advertisement