23 #ifndef M4_ADV_R_CONV_IO_H 24 #define M4_ADV_R_CONV_IO_H 26 #include "common/array.h" 27 #include "common/serializer.h" 28 #include "m4/m4_types.h" 29 #include "m4/adv_r/conv.h" 30 #include "m4/graphics/gr_pal.h" 31 #include "m4/gui/gui_dialog.h" 35 #define HIDDEN 0x00000004 36 #define DESTROYED 0x00000008 46 #define CONV_UNKNOWN_MODE 0 47 #define CONV_GET_TEXT_MODE 1 48 #define CONV_SET_TEXT_MODE 2 49 #define CONV_GET_MESG_MODE 3 50 #define CONV_UPDATE_MODE 4 52 #define DECL_POINTER 1 59 Conv *globConv =
nullptr;
60 bool playerCommAllowed =
false;
61 int32 myFinalTrigger = 0;
62 bool interface_was_visible =
false;
67 int32 conv_font_spacing_h = 0;
68 int32 conv_font_spacing_v = 5;
69 int32 conv_default_h = conv_font_spacing_h;
70 int32 conv_default_v = conv_font_spacing_v;
71 int32 conv_shading = 65;
73 int32 conv_normal_colour = __BLACK;
74 int32 conv_normal_colour_alt1 = __GREEN;
75 int32 conv_normal_colour_alt2 = __GREEN;
76 int32 conv_hilite_colour = __YELLOW;
77 int32 conv_default_hilite_colour = __YELLOW;
78 int32 conv_hilite_colour_alt1 = __YELLOW;
79 int32 conv_hilite_colour_alt2 = __YELLOW;
80 int32 conv_default_normal_colour = __BLACK;
83 int32 width = 0, height = 0;
84 int32 glob_x = 0, glob_y = 0;
85 int32 r_x1 = 0, r_y1 = 0, r_x2 = 0, r_y2 = 0;
90 void conv_reset_all();
93 Conv *conv_load(
const char *filename,
int x1,
int y1, int32 myTrigger,
bool want_box =
true);
94 void conv_load_and_prepare(
const char *filename,
int trigger,
bool ignoreIt =
false);
96 void conv_unload(
Conv *c);
100 Conv *conv_get_handle();
101 void conv_set_handle(
Conv *c);
103 void conv_resume(
Conv *c);
105 void conv_reset(
char *filename);
107 void conv_reset_all();
108 void conv_play(
Conv *c);
111 const char *conv_sound_to_play();
112 int32 conv_whos_talking();
116 void conv_export_value(
Conv *c, int32 val,
int index);
117 void conv_export_value_curr(int32 val,
int index);
118 void conv_export_pointer(
Conv *c, int32 *val,
int index);
119 void conv_export_pointer_curr(int32 *val,
int index);
121 void conv_set_font_spacing(int32 h, int32 v);
122 void conv_set_text_colour(int32 norm_colour, int32 hi_colour);
124 void conv_set_text_colours(int32 norm_colour, int32 norm_colour_alt1, int32 norm_colour_alt2,
125 int32 hi_colour, int32 hi_colour_alt1, int32 hi_colour_alt2);
127 void conv_set_shading(int32 shade);
128 void conv_set_box_xy(int32 x, int32 y);
129 void conv_get_dlg_coords(int32 *x1, int32 *y1, int32 *x2, int32 *y2);
130 void conv_set_dlg_coords(int32 x1, int32 y1, int32 x2, int32 y2);
131 void conv_set_default_text_colour(int32 norm_colour, int32 hi_colour);
132 void conv_set_default_hv(int32 h, int32 v);
134 int conv_get_event();
135 void conv_set_event(
int e);
136 int conv_is_event_ready();
138 void conv_swap_words(
Conv *c);
139 int32 conv_current_node();
140 int32 conv_current_entry();
144 int conv_get_text(int32 offset, int32 size,
Conv *c);
Definition: gui_dialog.h:74
Definition: serializer.h:79
Definition: database.h:28