22 #ifndef AGS_ENGINE_AC_DISPLAY_H 23 #define AGS_ENGINE_AC_DISPLAY_H 25 #include "ags/shared/gui/gui_main.h" 29 using AGS::Shared::GUIMain;
33 #define DISPLAYTEXT_SPEECH 0 35 #define DISPLAYTEXT_MESSAGEBOX 1 37 #define DISPLAYTEXT_NORMALOVERLAY 2 41 Shared::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,
48 ScreenOverlay *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);
51 void display_at(
int xx,
int yy,
int wii,
const char *text);
53 void post_display_cleanup();
58 bool try_auto_play_speech(
const char *text,
const char *&replace_text,
int charid);
60 int GetTextDisplayLength(
const char *text);
62 int GetTextDisplayTime(
const char *text,
int canberel = 0);
64 void wouttext_outline(Shared::Bitmap *ds,
int xxp,
int yyp,
int usingfont, color_t text_color,
const char *texx);
65 void wouttext_aligned(Shared::Bitmap *ds,
int usexp,
int yy,
int oriwid,
int usingfont, color_t text_color,
const char *text, HorAlignment align);
66 void do_corner(Shared::Bitmap *ds,
int sprn,
int xx1,
int yy1,
int typx,
int typy);
68 int get_but_pic(GUIMain *guo,
int indx);
69 void draw_button_background(Shared::Bitmap *ds,
int xx1,
int yy1,
int xx2,
int yy2, GUIMain *iep);
72 int get_textwindow_border_width(
int twgui);
74 int get_textwindow_top_border_height(
int twgui);
80 void 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);
81 void 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);
83 int get_textwindow_padding(
int ifnum);