stravid/slotcars — pull request #221 by tombu (2012-10-08 13:33:08+00:00)
Title: Feature/quickplay button in playscreen

Introduces a 'Quickplay' button in the PlayScreen, next to the 'Restart' button. This is handled with an touch/click listener instead of a normal link because a link wouldn´t work if you already are in the 'Quickplay' route state. The listener sends 'quickplay' to the route manger which then reacts accordingly.

It was not that easy to get it work because the PlayScreen (which is used by the Play AND the Quickplay state) gets destroyed too late and entering the next state causes the creation of a new PlayScreen. So, I delayed the creation of the PlayScreen when entering Quickplay by 500ms.

Also, there is now a `Shared.RouteState` which tells the application to destroy the current screen when exiting the state.