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)

908 views

Damn IE!

894 views

Undo / Redo done

998 views

Undo/Redo

1142 views

Change of plans

836 views

Here's the list

942 views

Minor update

993 views

Some progress

986 views
Advertisement