From edcd03307b8473116d3fa346c9de63a0c863b293 Mon Sep 17 00:00:00 2001 From: EvanR Date: Sun, 16 May 2010 19:18:49 -0500 Subject: [PATCH] Info command. --- edit.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/edit.c b/edit.c index 0b5c3e1..a6f2e7d 100644 --- a/edit.c +++ b/edit.c @@ -438,7 +438,7 @@ int raw_open(char* stagename){ strcpy(bgtiles_file, file2); strcpy(fgtiles_file, file3); - strcpy(my_file, path); + strcpy(my_file, stagename); return 0; } @@ -1021,6 +1021,14 @@ void keydown(SDLKey key, SDLMod mod, Uint16 c){ case SDLK_b: console_printf("change background..."); break; + case SDLK_i: + console_printf("name: %s", my_file); + console_printf("zone: %s", zone_path); + console_printf("size: %d x %d", raw_w, raw_h); + console_printf("background: %s", bgimage_file); + console_printf("bg tileset: %s", bgtiles_file); + console_printf("fg tileset: %s", fgtiles_file); + break; case SDLK_q: case SDLK_ESCAPE: console_printf("Really quit? (Y/N)"); -- 2.11.4.GIT