Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_scr_draw_dialogue_box_anywhere

(view raw script w/o annotations or w/e)
1
function scr_draw_dialogue_box_anywhere
scr_draw_dialogue_box_anywhere

function scr_draw_dialogue_box_anywhere(argument0, argument1, argument2, argument3) //gml_Script_scr_draw_dialogue_box_anywhere { var xs1 = argument0 var ys1 = argument1 bsize = argument2 var xs2 = xs1 + bsize var ys2 = ys1 + bsize var xx = argument3 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) }
(argument0, argument1, argument2, argument3) //gml_Script_scr_draw_dialogue_box_anywhere
2
{
3
    var xs1 = argument0
4
    var ys1 = argument1
5
    bsize = argument2
6
    var xs2 = xs1 + bsize
7
    var ys2 = ys1 + bsize
8
    var xx = argument3
9
    if (position == 0)
10
        var yy = 198
11
    else
12
        yy = 45
13
    draw_sprite_ext(spr_dialoguebox, 1, xx, yy, xs2, ys2, image_angle, c_white, image_alpha)
14
    draw_sprite_ext(spr_dialoguebox, 0, xx, yy, xs1, ys1, image_angle, image_blend, image_alpha)
15
}