2023-07-09 22:02:59 +02:00
|
|
|
#ifndef DIALOG_H
|
|
|
|
#define DIALOG_H
|
|
|
|
|
|
|
|
#include <gint/display.h>
|
|
|
|
#include <string.h>
|
|
|
|
#include "game.h"
|
|
|
|
#include "map.h"
|
|
|
|
|
|
|
|
#define F_WIDTH (32*PXSIZE)
|
|
|
|
#define F_HEIGHT (32*PXSIZE)
|
|
|
|
|
2023-07-13 12:06:48 +02:00
|
|
|
int showtext_opt(Game *game, bopti_image_t *face, char *text,
|
2023-07-19 17:43:02 +02:00
|
|
|
int call_before_end(Game *game, unsigned int i),
|
|
|
|
bool start_anim,
|
|
|
|
bool end_anim,
|
|
|
|
void for_each_screen(Game *game, unsigned int i),
|
2023-07-19 20:06:28 +02:00
|
|
|
int line_duration, bool line_anim, unsigned int start_i,
|
|
|
|
bool wait_continue);
|
2023-07-19 17:43:02 +02:00
|
|
|
|
|
|
|
void showtext_dialog(Game *game, bopti_image_t *face, char *text,
|
|
|
|
bool dialog_start, bool dialog_end);
|
2023-07-13 12:06:48 +02:00
|
|
|
|
2023-07-15 19:26:32 +02:00
|
|
|
int showtext_dialog_ask(Game *game, bopti_image_t *face, char *text, bool start,
|
|
|
|
bool end, char *choices, int choices_amount,
|
|
|
|
int default_choice);
|
|
|
|
|
2023-07-09 22:02:59 +02:00
|
|
|
#endif
|