2021-06-03 21:01:32 -07:00
|
|
|
if (dialogue_mode) {
|
|
|
|
|
2021-06-13 02:20:47 -07:00
|
|
|
if ( actor_left_sprite != -1 ) {
|
|
|
|
draw_sprite_ext( actor_left_sprite, 0, 180, window_get_height(), 1, 1, 0, c_white, 1 - (.5 * last_active));
|
|
|
|
}
|
|
|
|
if ( actor_right_sprite != -1 ) {
|
|
|
|
draw_sprite_ext( actor_right_sprite, 0, window_get_width() - 180, window_get_height(), -1, 1, 0, c_white, .5 + (.5 * last_active));
|
|
|
|
}
|
2021-06-04 01:09:05 -07:00
|
|
|
|
2021-06-03 21:01:32 -07:00
|
|
|
// Draw dialogue box
|
|
|
|
draw_self();
|
|
|
|
|
2021-06-13 02:20:47 -07:00
|
|
|
draw_set_font(fn_dialogue_names);
|
2021-06-04 01:09:05 -07:00
|
|
|
draw_set_alpha(1);
|
2021-06-06 01:19:04 -07:00
|
|
|
if ( last_active == LEFT_ACTOR ) {
|
2021-06-13 02:20:47 -07:00
|
|
|
draw_set_alpha(0);
|
2021-06-03 21:01:32 -07:00
|
|
|
}
|
2021-06-04 01:09:05 -07:00
|
|
|
draw_set_halign( fa_right );
|
|
|
|
draw_text( 1080, 640, actor_right );
|
|
|
|
draw_set_halign( fa_left );
|
|
|
|
|
|
|
|
draw_set_alpha(1);
|
2021-06-06 01:19:04 -07:00
|
|
|
if ( last_active == RIGHT_ACTOR ) {
|
2021-06-13 02:20:47 -07:00
|
|
|
draw_set_alpha(0);
|
2021-06-03 21:01:32 -07:00
|
|
|
}
|
2021-06-04 01:09:05 -07:00
|
|
|
draw_text( 128, 640, actor_left );
|
|
|
|
draw_set_alpha(1);
|
2021-06-14 03:06:50 -07:00
|
|
|
|
2021-06-13 02:20:47 -07:00
|
|
|
draw_set_font(fn_dialogue_text);
|
|
|
|
draw_text( 145, 490, textspew );
|
2021-06-03 21:01:32 -07:00
|
|
|
|
2021-06-05 01:58:44 -07:00
|
|
|
if (text_advance_ready == TEXT_READY) {
|
2021-06-03 21:01:32 -07:00
|
|
|
loopdoop++;
|
|
|
|
draw_sprite( spr_text_arrow, round((loopdoop % 160) / 20), 1088, 608 );
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|