diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2012-06-10 18:52:24 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-06-10 18:52:24 (GMT) |
| commit | fd572e9da68385d13a147164cd07d50160f2fc69 (patch) | |
| tree | 2cd99a57db8f11f4d41defe4ca4253553cd0b562 /src/game/GameView.cpp | |
| parent | cdc4b4df86d61abf8fe08fe120afcb2393755660 (diff) | |
| download | powder-fd572e9da68385d13a147164cd07d50160f2fc69.zip powder-fd572e9da68385d13a147164cd07d50160f2fc69.tar.gz | |
Change stamp storage to a list, insert new stamps at the begining, 'l' loads the first stamp or the previously used stamp, 'k' shows the stamp browser
Diffstat (limited to 'src/game/GameView.cpp')
| -rw-r--r-- | src/game/GameView.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/game/GameView.cpp b/src/game/GameView.cpp index dbc2294..26a4311 100644 --- a/src/game/GameView.cpp +++ b/src/game/GameView.cpp @@ -741,6 +741,11 @@ void GameView::OnKeyPress(int key, Uint16 character, bool shift, bool ctrl, bool } break; case 'l': + c->LoadStamp(); + selectPoint2 = ui::Point(-1, -1); + selectPoint1 = selectPoint2; + break; + case 'k': selectPoint2 = ui::Point(-1, -1); selectPoint1 = selectPoint2; c->OpenStamps(); |
