Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_debug_main_menu_Draw_64

(view raw script w/o annotations or w/e)
1
draw_set_font(fnt_arcade)
2
draw_set_halign(fa_left)
3
draw_text(20, 10, string_hash_to_newline("DEBUG MAIN MENU V 0.2"))
4
if (pos == 0)
5
    draw_set_color(c_yellow)
6
draw_text(20, 20, string_hash_to_newline("CONTINUE"))
7
draw_set_color(c_white)
8
if (pos == 1)
9
    draw_set_color(c_yellow)
10
draw_text(20, 60, string_hash_to_newline("ROUTE SELECT: " + current_route))
11
draw_set_color(c_white)
12
if (pos >= 2)
13
    draw_set_color(c_yellow)
14
draw_text(20, 70, string_hash_to_newline("RESET FROM:"))
15
draw_set_color(c_white)
16
draw_set_color(c_white)
17
if (pos == 2 || pos == 6)
18
    draw_set_color(c_yellow)
19
draw_roundrect(20, 80, 140, 140, false)
20
draw_set_color(c_white)
21
if (pos == 3)
22
    draw_set_color(c_yellow)
23
draw_roundrect(180, 80, 300, 140, false)
24
draw_set_color(c_white)
25
if (pos == 4)
26
    draw_set_color(c_yellow)
27
draw_roundrect(20, 160, 140, 220, false)
28
draw_set_color(c_white)
29
if (pos == 5)
30
    draw_set_color(c_yellow)
31
draw_roundrect(180, 160, 300, 220, false)
32
draw_set_color(c_white)
33
draw_set_color(c_black)
34
draw_roundrect(23, 83, 137, 137, false)
35
draw_roundrect(183, 83, 297, 137, false)
36
draw_roundrect(23, 163, 137, 217, false)
37
draw_roundrect(183, 163, 297, 217, false)
38
draw_set_halign(fa_center)
39
draw_set_color(c_white)
40
if (page == 1)
41
{
42
    draw_sprite(spr_dalvhdown, -1, 80, 110)
43
    draw_sprite(spr_martlet_down, -1, 240, 120)
44
    draw_sprite(spr_mo_down_dunes, -1, 80, 190)
45
    draw_sprite(spr_npc_drinki, -1, 240, 190)
46
    draw_text(80, 145, string_hash_to_newline("Dark Ruins"))
47
    draw_text(240, 145, string_hash_to_newline("Snowdin"))
48
    draw_text(80, 225, string_hash_to_newline("The Dunes"))
49
    draw_text(240, 225, string_hash_to_newline("The Oasis"))
50
    draw_text(310, 108, string_hash_to_newline("->"))
51
}
52
if (page == 2)
53
{
54
    draw_sprite(spr_npc_cooper_talk, -1, 80, 118)
55
    draw_text(80, 145, string_hash_to_newline("The Wild East"))
56
    draw_text(10, 108, string_hash_to_newline("<-"))
57
}
58
draw_text(160, 225, string_hash_to_newline("Page:" + string(page) + "/2"))
59
draw_set_halign(fa_left)