Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_menu_flowey_pacifist_Draw_0

(view raw script w/o annotations or w/e)
1
if live_call()
2
    return global.live_result;
3
with (other)
4
{
5
    draw_set_font(fnt_main)
6
    draw_set_halign(fa_left)
7
    if (room == rm_mainmenu)
8
    {
9
        if (p[1] == true)
10
            draw_set_color(c_yellow)
11
        draw_text(((__view_get((0 << 0), 0)) + 85), 160, string_hash_to_newline("Continue"))
12
        draw_set_color(c_white)
13
        if (p[2] == true)
14
            draw_set_color(c_yellow)
15
        draw_text(((__view_get((0 << 0), 0)) + 175), 160, string_hash_to_newline("Reset"))
16
        draw_set_color(c_white)
17
        if (p[3] == true)
18
            draw_set_color(c_yellow)
19
        draw_set_halign(fa_center)
20
        draw_text(((__view_get((0 << 0), 0)) + 160), 160, string_hash_to_newline("Config"))
21
        draw_set_color(c_white)
22
        draw_set_color(c_white)
23
        draw_set_halign(fa_left)
24
        ini_open("Save.sav")
25
        draw_text(((__view_get((0 << 0), 0)) + 65), 60, string_hash_to_newline("Clover"))
26
        draw_text(((__view_get((0 << 0), 0)) + 145), 60, string_hash_to_newline("LV" + (string(ini_read_real("Save1", "LV", 1)))))
27
        var play_time = ini_read_real("Playtime", "Seconds", 0)
28
        var string_minutes = string(play_time div 60)
29
        var string_seconds = string(play_time % 60)
30
        if (real(string_minutes) < 10)
31
            string_minutes = "0" + string_minutes
32
        if (real(string_seconds) < 10)
33
            string_seconds = "0" + string_seconds
34
        draw_text(((__view_get((0 << 0), 0)) + 210), 60, string_hash_to_newline(string_minutes + ":" + string_seconds))
35
        draw_text(((__view_get((0 << 0), 0)) + 65), 80, string_hash_to_newline(ini_read_string("Save1", "rmName", "Room Name")))
36
        ini_close()
37
    }
38
    else
39
    {
40
        draw_set_alpha(choice_alpha)
41
        draw_set_font(fnt_battle)
42
        draw_set_color(c_white)
43
        draw_set_halign(fa_center)
44
        if (p[1] == true && choice_alpha >= 1)
45
            draw_set_color(c_yellow)
46
        draw_text(120, 190, string_hash_to_newline("RESET"))
47
        draw_set_color(c_white)
48
        if (p[2] == true)
49
            draw_set_color(c_yellow)
50
        draw_text(200, 190, string_hash_to_newline("WAIT"))
51
        draw_set_halign(fa_left)
52
        draw_set_color(c_white)
53
        draw_set_alpha(1)
54
    }
55
}