diff options
| author | Japa Illo | 2012-03-04 17:04:27 +0530 |
|---|---|---|
| committer | Japa Illo | 2012-03-04 17:04:27 +0530 |
| commit | 50bbecc544aa227fb7bfc4a5c90c6b27369d8bcd (patch) | |
| tree | 5192971d0c752fe4da7504625c001ad3d60c7b19 /UserInput.cpp | |
| parent | 624bef8817b277e340c2312d6d1b62cb50fcb589 (diff) | |
| download | stonesense-50bbecc544aa227fb7bfc4a5c90c6b27369d8bcd.tar.gz stonesense-50bbecc544aa227fb7bfc4a5c90c6b27369d8bcd.tar.bz2 stonesense-50bbecc544aa227fb7bfc4a5c90c6b27369d8bcd.tar.xz | |
Added support for reading and displaying creature and building inventories.
Todo: some way to use them.
Signed-off-by: Japa Illo <japa.mala.illo@gmail.com>
Diffstat (limited to 'UserInput.cpp')
| -rw-r--r-- | UserInput.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/UserInput.cpp b/UserInput.cpp index 45a83c6..4f7d190 100644 --- a/UserInput.cpp +++ b/UserInput.cpp @@ -198,7 +198,7 @@ void doKeys(){ }
}
-void doKeys(int Key)
+void doKeys(int Key, DFHack::Core * c)
{
al_get_keyboard_state(&keyboard);
if(Key == ALLEGRO_KEY_ENTER){
@@ -210,7 +210,7 @@ void doKeys(int Key) timeToReloadSegment = true;
}
if(Key == ALLEGRO_KEY_D){
- paintboard();
+ paintboard(c);
}
if(Key == ALLEGRO_KEY_G){
//contentLoader.reload_configs();
@@ -291,11 +291,11 @@ void doKeys(int Key) else if (al_key_down(&keyboard,ALLEGRO_KEY_ALT) || al_key_down(&keyboard,ALLEGRO_KEY_ALTGR))
dumpSegment();
else
- saveScreenshot();
+ saveScreenshot(c);
}
if(Key == ALLEGRO_KEY_PAD_PLUS){
config.automatic_reload_time += config.automatic_reload_step;
- paintboard();
+ paintboard(c);
initAutoReload();
}
if(Key == ALLEGRO_KEY_PAD_MINUS && config.automatic_reload_time){
@@ -309,7 +309,7 @@ void doKeys(int Key) }
else
initAutoReload();
- paintboard();
+ paintboard(c);
}
if(Key == ALLEGRO_KEY_F9)
{
@@ -321,22 +321,22 @@ void doKeys(int Key) if(Key == ALLEGRO_KEY_PAD_8){
config.follow_DFcursor = false;
debugCursor.y--;
- paintboard();
+ paintboard(c);
}
if(Key == ALLEGRO_KEY_PAD_2){
config.follow_DFcursor = false;
debugCursor.y++;
- paintboard();
+ paintboard(c);
}
if(Key == ALLEGRO_KEY_PAD_4){
config.follow_DFcursor = false;
debugCursor.x--;
- paintboard();
+ paintboard(c);
}
if(Key == ALLEGRO_KEY_PAD_6){
config.follow_DFcursor = false;
debugCursor.x++;
- paintboard();
+ paintboard(c);
}
if(Key == ALLEGRO_KEY_F10)
|
