22#ifndef AGS_ENGINE_AC_DISPLAY_H
23#define AGS_ENGINE_AC_DISPLAY_H
25#include "ags/shared/gui/gui_main.h"
29using AGS::Shared::GUIMain;
33#define DISPLAYTEXT_SPEECH 0
35#define DISPLAYTEXT_MESSAGEBOX 1
37#define DISPLAYTEXT_NORMALOVERLAY 2
41Shared::Bitmap *create_textual_image(
const char *text,
int asspch,
int isThought,
42 int &xx,
int &yy,
int &adjustedXX,
int &adjustedYY,
int wii,
int usingfont,
int allowShrink,
48ScreenOverlay *display_main(
int xx,
int yy,
int wii,
const char *text,
int disp_type,
int usingfont,
49 int asspch,
int isThought,
int allowShrink,
bool overlayPositionFixed,
bool roomlayer =
false);
51void display_at(
int xx,
int yy,
int wii,
const char *text);
53void post_display_cleanup();
58bool try_auto_play_speech(
const char *text,
const char *&replace_text,
int charid);
60int GetTextDisplayLength(
const char *text);
62int GetTextDisplayTime(
const char *text,
int canberel = 0);
64void wouttext_outline(Shared::Bitmap *ds,
int xxp,
int yyp,
int usingfont, color_t text_color,
const char *texx);
65void wouttext_aligned(Shared::Bitmap *ds,
int usexp,
int yy,
int oriwid,
int usingfont, color_t text_color,
const char *text, HorAlignment align);
66void do_corner(Shared::Bitmap *ds,
int sprn,
int xx1,
int yy1,
int typx,
int typy);
68int get_but_pic(GUIMain *guo,
int indx);
69void draw_button_background(Shared::Bitmap *ds,
int xx1,
int yy1,
int xx2,
int yy2, GUIMain *iep);
72int get_textwindow_border_width(
int twgui);
74int get_textwindow_top_border_height(
int twgui);
80void draw_text_window(Shared::Bitmap **text_window_ds,
bool should_free_ds,
int *xins,
int *yins,
int *xx,
int *yy,
int *wii, color_t *set_text_color,
int ovrheight,
int ifnum);
81void draw_text_window_and_bar(Shared::Bitmap **text_window_ds,
bool should_free_ds,
82 int *xins,
int *yins,
int *xx,
int *yy,
int *wii, color_t *set_text_color,
int ovrheight = 0,
int ifnum = -1);
83int get_textwindow_padding(
int ifnum);