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 60 Conv *globConv =
nullptr;
61 bool playerCommAllowed =
false;
62 int32 myFinalTrigger = 0;
63 bool interface_was_visible =
false;
68 int32 conv_font_spacing_h = 0;
69 int32 conv_font_spacing_v = 5;
70 int32 conv_default_h = conv_font_spacing_h;
71 int32 conv_default_v = conv_font_spacing_v;
72 int32 conv_shading = 65;
74 int32 conv_normal_colour = __BLACK;
75 int32 conv_normal_colour_alt1 = __GREEN;
76 int32 conv_normal_colour_alt2 = __GREEN;
77 int32 conv_hilite_colour = __YELLOW;
78 int32 conv_default_hilite_colour = __YELLOW;
79 int32 conv_hilite_colour_alt1 = __YELLOW;
80 int32 conv_hilite_colour_alt2 = __YELLOW;
81 int32 conv_default_normal_colour = __BLACK;
84 int32 width = 0, height = 0;
85 int32 glob_x = 0, glob_y = 0;
86 int32 r_x1 = 0, r_y1 = 0, r_x2 = 0, r_y2 = 0;
91 void conv_reset_all();
94 Conv *conv_load(
const char *filename,
int x1,
int y1, int32 myTrigger,
bool want_box =
true);
95 void conv_load_and_prepare(
const char *filename,
int trigger,
bool ignoreIt =
false);
97 void conv_unload(
Conv *c);
101 Conv *conv_get_handle();
102 void conv_set_handle(
Conv *c);
104 void conv_resume(
Conv *c);
106 void conv_reset(
char *filename);
108 void conv_reset_all();
109 void conv_play(
Conv *c);
112 const char *conv_sound_to_play();
113 int32 conv_whos_talking();
117 void conv_export_value(
Conv *c, int32 val,
int index);
118 void conv_export_value_curr(int32 val,
int index);
119 void conv_export_pointer(
Conv *c, int32 *val,
int index);
120 void conv_export_pointer_curr(int32 *val,
int index);
122 void conv_set_font_spacing(int32 h, int32 v);
123 void conv_set_text_colour(int32 norm_colour, int32 hi_colour);
125 void conv_set_text_colours(int32 norm_colour, int32 norm_colour_alt1, int32 norm_colour_alt2,
126 int32 hi_colour, int32 hi_colour_alt1, int32 hi_colour_alt2);
128 void conv_set_shading(int32 shade);
129 void conv_set_box_xy(int32 x, int32 y);
130 void conv_get_dlg_coords(int32 *x1, int32 *y1, int32 *x2, int32 *y2);
131 void conv_set_dlg_coords(int32 x1, int32 y1, int32 x2, int32 y2);
132 void conv_set_default_text_colour(int32 norm_colour, int32 hi_colour);
133 void conv_set_default_hv(int32 h, int32 v);
135 int conv_get_event();
136 void conv_set_event(
int e);
137 int conv_is_event_ready();
139 void conv_swap_words(
Conv *c);
140 int32 conv_current_node();
141 int32 conv_current_entry();
145 int conv_get_text(int32 offset, int32 size,
Conv *c);
Definition: gui_dialog.h:74
Definition: serializer.h:79
Definition: database.h:28