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
if (menu_option_selected == 1)
28
{
29
    var heart_xx = 320 - string_width(string_hash_to_newline("Retry")) * 0.5 - 20
30
    var heart_yy = 298
31
}
32
else if (menu_option_selected == 2)
33
{
34
    heart_xx = 320 - string_width(string_hash_to_newline("Continue")) * 0.5 - 20
35
    heart_yy = 358
36
}
37
else if (menu_option_selected == 3)
38
{
39
    heart_xx = 320 - (string_width(string_hash_to_newline("AUTO-RHYTHM: "))) * 0.5 - 20
40
    heart_yy = 418
41
}
42
draw_sprite(spr_heart_yellow_down, 0, heart_xx, heart_yy)
43
draw_set_alpha(1)
44
draw_set_halign(fa_left)