diff options
| author | Japa | 2010-04-26 08:00:41 +0000 |
|---|---|---|
| committer | Japa | 2010-04-26 08:00:41 +0000 |
| commit | 16a3644d7ff5856098db89c485421a765d587a28 (patch) | |
| tree | 4bf4b3f71c60bb0cabb2b1f0c0828fdc47946f04 /UserInput.cpp | |
| parent | 0141ce9cc799e9a3cbe5be67c97cc0e35849cbe6 (diff) | |
| download | stonesense-16a3644d7ff5856098db89c485421a765d587a28.tar.gz stonesense-16a3644d7ff5856098db89c485421a765d587a28.tar.bz2 stonesense-16a3644d7ff5856098db89c485421a765d587a28.tar.xz | |
added the Unstuck tool, and made the F10 sprite viewing screen noo lock things up.
Diffstat (limited to 'UserInput.cpp')
| -rw-r--r-- | UserInput.cpp | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/UserInput.cpp b/UserInput.cpp index 586aa32..125eead 100644 --- a/UserInput.cpp +++ b/UserInput.cpp @@ -315,8 +315,26 @@ void doKeys(int Key) paintboard();
}
- if(Key == ALLEGRO_KEY_F10){
- DoSpriteIndexOverlay();
+ if(Key == ALLEGRO_KEY_F10)
+ {
+ if(config.spriteIndexOverlay == false)
+ {
+ config.spriteIndexOverlay = true;
+ config.currentSpriteOverlay = -1;
+ }
+ else
+ {
+ config.currentSpriteOverlay ++;
+ if(config.currentSpriteOverlay >= IMGFilenames.size())
+ config.currentSpriteOverlay = -1;
+ }
+ }
+ if(Key == ALLEGRO_KEY_SPACE)
+ {
+ if(config.spriteIndexOverlay == true)
+ {
+ config.spriteIndexOverlay = false;
+ }
}
if(Key == ALLEGRO_KEY_F9 && config.show_intro){
config.show_intro = false;
|
