diff options
| author | Lieuwe <lieuwemo@gmail.com> | 2011-02-26 10:49:23 (GMT) |
|---|---|---|
| committer | Lieuwe <lieuwemo@gmail.com> | 2011-02-26 10:49:23 (GMT) |
| commit | 5387f235f909396595f21398be876cc19955826c (patch) | |
| tree | 37002f27192ec5d44ef1d5154476b629c816154a /src/interface.c | |
| parent | 669a672b3d083af22c6aeb37a636903ce30bcf6c (diff) | |
| download | powder-5387f235f909396595f21398be876cc19955826c.zip powder-5387f235f909396595f21398be876cc19955826c.tar.gz | |
python console
Diffstat (limited to 'src/interface.c')
| -rw-r--r-- | src/interface.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/interface.c b/src/interface.c index 9b1b495..f529d54 100644 --- a/src/interface.c +++ b/src/interface.c @@ -3839,7 +3839,7 @@ struct command_history { }; typedef struct command_history command_history; command_history *last_command = NULL; -char *console_ui(pixel *vid_buf,char error[255]) { //TODO: error messages, show previous commands +char *console_ui(pixel *vid_buf,char error[255],char console_more) { int mx,my,b,cc,ci = -1; pixel *old_buf=calloc((XRES+BARSIZE)*(YRES+MENUSIZE), PIXELSIZE); command_history *currentcommand; @@ -3871,8 +3871,7 @@ char *console_ui(pixel *vid_buf,char error[255]) { //TODO: error messages, show memcpy(vid_buf,old_buf,(XRES+BARSIZE)*YRES*PIXELSIZE); draw_line(vid_buf, 0, 219, XRES+BARSIZE-1, 219, 228, 228, 228, XRES+BARSIZE); - drawtext(vid_buf, 15, 15, "Welcome to The Powder Toy console v.3 (by cracker64)\n" - "Current commands are quit, set, reset, load, create, file, kill, sound\n" //TODO: help command + drawtext(vid_buf, 15, 15, "Welcome to The Powder Toy console v.3 (by cracker64, python by Doxin)" //TODO: help command ,255, 255, 255, 255); cc = 0; @@ -3900,8 +3899,10 @@ char *console_ui(pixel *vid_buf,char error[255]) { //TODO: error messages, show if(error && ed.str[0]=='\0') drawtext(vid_buf, 20, 207, error, 255, 127, 127, 200); - - drawtext(vid_buf, 5, 207, ">", 255, 255, 255, 240); + if(console_more==0) + drawtext(vid_buf, 5, 207, ">", 255, 255, 255, 240); + else + drawtext(vid_buf, 5, 207, "...", 255, 255, 255, 240); ui_edit_draw(vid_buf, &ed); ui_edit_process(mx, my, b, &ed); |
