1 |
text_draw_min = (-(string_height_ext(string_hash_to_newline(mail_text), 18, -1))) + 180 |
2 |
if global.down_key |
3 |
{ |
4 |
if ((text_draw_y - scroll_speed) > text_draw_min) |
5 |
text_draw_y -= scroll_speed |
6 |
else |
7 |
text_draw_y = text_draw_min |
8 |
scrolling_active = true |
9 |
alarm[0] = 15 |
10 |
} |
11 |
if global.up_key |
12 |
{ |
13 |
if ((text_draw_y + scroll_speed) < text_draw_max) |
14 |
text_draw_y += scroll_speed |
15 |
else |
16 |
text_draw_y = text_draw_max |
17 |
scrolling_active = true |
18 |
alarm[0] = 15 |
19 |
} |
20 |
if keyboard_multicheck_pressed(1) |
21 |
instance_destroy() |
22 |
if scrolling_active |
23 |
{ |
24 |
if (scroller_alpha < 1) |
25 |
scroller_alpha += 0.1 |
26 |
} |
27 |
else if (scroller_alpha > 0) |
28 |
scroller_alpha -= 0.1 |