diff options
| author | Dušan Ďurech <dusan.d@centrum.cz> | 2009-12-27 20:49:44 +0100 |
|---|---|---|
| committer | Dušan Ďurech <dusan.d@centrum.cz> | 2009-12-27 20:49:44 +0100 |
| commit | cdc100ff4a0ceecae2ee2cecaf9df6b82b8636e4 (patch) | |
| tree | c28235253651978153fc97657cf73a2b376197c5 /src/client/yes_no_dialog.h | |
| parent | fda7d7a9443a05d7ec0870be482b735a7b4f7ef9 (diff) | |
implements yes/no dialog if to quit the game or not
Diffstat (limited to 'src/client/yes_no_dialog.h')
| -rw-r--r-- | src/client/yes_no_dialog.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/client/yes_no_dialog.h b/src/client/yes_no_dialog.h new file mode 100644 index 0000000..3cef74c --- /dev/null +++ b/src/client/yes_no_dialog.h @@ -0,0 +1,20 @@ +#ifndef YES_NO_DIALOG_H +#define YES_NO_DIALOG_H + +#define YES_NO_ACTIVE_TIME_INTERVAL 500 + +#define YES_NO_DIALOG_SIZE_X 320 +#define YES_NO_DIALOG_SIZE_Y 120 + +#define YES_NO_DIALOG_LOCATIN_X (WINDOW_SIZE_X / 2 - YES_NO_DIALOG_SIZE_X / 2) +#define YES_NO_DIALOG_LOCATIN_Y (WINDOW_SIZE_Y / 2 - YES_NO_DIALOG_SIZE_Y / 2) + +extern void yes_no_dialog_init(); +extern void yes_no_dialog_set_active(bool_t active); +extern bool_t yes_no_dialog_is_active(); +extern void yes_no_dialog_set(char *label, void *function_yes, void *function_no, void *p_param); +extern void yes_no_dialog_draw(); +extern void yes_no_dialog_event(); +extern void yes_no_dialog_quit(); + +#endif /* YES_NO_DIALOG_H */ |