Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_dialogue_steamworks_33_Draw_64

(view raw script w/o annotations or w/e)
1
var yy = 40
2
var xx = 48
3
var line_sep = 18
4
draw_set_alpha(draw_alpha)
5
draw_sprite(spr_chem_compound_puzzle_overlay, 0, 0, 0)
6
draw_set_font(fnt_main)
7
draw_set_color(c_lime)
8
draw_set_halign(fa_left)
9
message_actual = string_copy(message[message_current], 0, cutoff)
10
draw_text_ext(xx, yy, string_hash_to_newline(message_actual), line_sep, -1)
11
if (choice == true)
12
{
13
    var ypos1 = 84
14
    var ypos2 = 100
15
    ypos3 = 116
16
    ypos4 = 132
17
    ypos5 = 148
18
    if (cutoff >= string_length(message[message_current]))
19
    {
20
        draw_set_color(c_gray)
21
        if (p == 1)
22
            draw_set_color(c_lime)
23
        draw_text((xx + 20), ypos1, string_hash_to_newline(ch[1]))
24
        draw_set_color(c_gray)
25
        if (p == 2)
26
            draw_set_color(c_lime)
27
        if (ch[2] != "")
28
            draw_text((xx + 20), ypos2, string_hash_to_newline(ch[2]))
29
        draw_set_color(c_gray)
30
        if (p == 3)
31
            draw_set_color(c_lime)
32
        if (ch[3] != "")
33
            draw_text((xx + 20), ypos3, string_hash_to_newline(ch[3]))
34
        draw_set_color(c_gray)
35
        if (p == 4)
36
            draw_set_color(c_lime)
37
        if (ch[4] != "")
38
            draw_text((xx + 20), ypos4, string_hash_to_newline(ch[4]))
39
        draw_set_color(c_gray)
40
        if (p == 5)
41
            draw_set_color(c_lime)
42
        if (ch[5] != "")
43
            draw_text((xx + 20), ypos5, string_hash_to_newline(ch[5]))
44
        draw_set_color(c_gray)
45
    }
46
}
47
draw_set_alpha(1)