1 |
var paper_color = make_colour_rgb(255, 255, 245); |
2 |
draw_set_color(paper_color); |
3 |
draw_rectangle(16, 0, 305, 240, 0); |
4 |
draw_set_color(c_black); |
5 |
draw_set_halign(fa_center); |
6 |
draw_set_font(fnt_main); |
7 |
draw_text_ext(160, text_draw_y, string_hash_to_newline(mail_text), 18, -1); |
8 |
if (mail_text_colored != "") |
9 |
{ |
10 |
draw_set_color(mail_text_color); |
11 |
draw_text_ext(160, text_draw_y, string_hash_to_newline(mail_text_colored), 18, -1); |
12 |
} |
13 |
draw_set_color(c_black); |
14 |
draw_set_halign(fa_left); |
15 |
var mail_height = string_height_ext(string_hash_to_newline(mail_text), 18, -1); |
16 |
var stamp_yy = (text_draw_y + mail_height) - 12; |
17 |
var stamp_xx = 210; |
18 |
if (mail_stamp != -4) |
19 |
draw_sprite(mail_stamp, 0, 210, stamp_yy); |
20 |
draw_set_alpha(scroller_alpha); |
21 |
var heart_y = 20 + (200 * (1 - ((text_draw_y - text_draw_min) / (text_draw_max - text_draw_min)))); |
22 |
draw_rectangle(296, 20, 300, 220, false); |
23 |
draw_sprite(spr_heart_yellow_overworld, 0, 298, heart_y); |
24 |
draw_set_alpha(1); |