Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_game_over_choice_Draw_0

(view raw script w/o annotations or w/e)
1
draw_set_font(global.font_type_text);
2
draw_set_alpha(image_alpha);
3
draw_set_color(c_white);
4
draw_set_halign(fa_center);
5
draw_set_valign(fa_top);
6
if (retry_enabled)
7
    draw_text(320, 280, string_hash_to_newline("Retry"));
8
if (rhythm_enabled)
9
{
10
    draw_text(320, 400, string_hash_to_newline("AUTO-RHYTHM:"));
11
    if (global.option_autorhythm)
12
        option = "ON";
13
    else
14
        option = "OFF";
15
    draw_text(440, 400, string_hash_to_newline(option));
16
}
17
if (autofire_enabled)
18
{
19
    draw_text(320, 400, string_hash_to_newline(string("AUTO-FIRE ({0}):", global.pause_key)));
20
    if (global.option_autoshoot)
21
        option = "ON";
22
    else
23
        option = "OFF";
24
    draw_text(460, 400, string_hash_to_newline(option));
25
}
26
draw_text(320, 340, string_hash_to_newline("Continue"));
27
var heart_xx, heart_yy;
28
if (menu_option_selected == 1)
29
{
30
    heart_xx = 320 - (string_width(string_hash_to_newline("Retry")) * 0.5) - 20;
31
    heart_yy = 298;
32
}
33
else if (menu_option_selected == 2)
34
{
35
    heart_xx = 320 - (string_width(string_hash_to_newline("Continue")) * 0.5) - 20;
36
    heart_yy = 358;
37
}
38
else if (menu_option_selected == 3)
39
{
40
    heart_xx = 320 - (string_width(string_hash_to_newline("AUTO-RHYTHM: ")) * 0.5) - 20;
41
    heart_yy = 418;
42
}
43
draw_sprite(spr_heart_yellow_down, 0, heart_xx, heart_yy);
44
draw_set_alpha(1);
45
draw_set_halign(fa_left);