diff options
Diffstat (limited to 'dialog.c')
-rw-r--r-- | dialog.c | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -3,12 +3,12 @@ #include "TZR.h" #include <stdio.h> -static const char *___dialog; +static char ___dialog[1024]; static int ___cursor; void dialog_set(const char *s) { - ___dialog = s; + strcat(___dialog, s); } void dialog_update(void) @@ -26,3 +26,8 @@ void dialog_draw(void) { font_draw(0, 0, ___dialog, ___cursor); } + +int dialog_done(void) +{ + return ___dialog[___cursor] == '\0'; +} |