Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_dialogue_special_Draw_64

(view raw script w/o annotations or w/e)
1
if live_call()
2
    return global.live_result;
3
if (!can_draw)
4
    return;
5
draw_set_font(fnt_main)
6
draw_set_color(text_col)
7
draw_set_halign(fa_left)
8
scr_draw_dialogue_box
scr_draw_dialogue_box

function scr_draw_dialogue_box(argument0, argument1, argument2) //gml_Script_scr_draw_dialogue_box { var xs1 = argument0 var ys1 = argument1 bsize = argument2 var xs2 = xs1 + bsize var ys2 = ys1 + bsize var xx = 160 if (position == 0) var yy = 198 else yy = 45 draw_sprite_ext(spr_dialoguebox, 1, xx, yy, xs2, ys2, image_angle, c_white, image_alpha) draw_sprite_ext(spr_dialoguebox, 0, xx, yy, xs1, ys1, image_angle, image_blend, image_alpha) }
(4.421875, 1.09375, 0.1)
9
if (letter_array == -1)
10
    return;
11
for (var i = 1; i <= letter_current; i++)
12
{
13
    if (mode == "shake")
14
    {
15
        text_x_mod = random_range(-0.5, 0.5)
16
        text_y_mod = random_range(-0.5, 0.5)
17
    }
18
    else if (mode == "swirl")
19
    {
20
        text_x_mod = lengthdir_x(1, (swirl_deg - 15 * i))
21
        text_y_mod = lengthdir_y(1, (swirl_deg - 15 * i))
22
    }
23
    draw_text_ext((text_x[i] + text_x_mod), (text_y[i] + text_y_mod), string_hash_to_newline(letter_array[i]), 20, -1)
24
}