Deltarune script viewer

← back to main script listing

gml_GlobalScript_scr_drawinbox_ext

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

function scr_drawinbox_ext(arg0, arg1, arg2, arg3) { var _boxleft, _boxtop, _yy, _xx; _minx = arg0 - (arg2 / 2); _miny = arg1 - (arg3 / 2); _maxx = (_boxleft - (x - sprite_xoffset)) + 1; _maxy = (_boxtop - (y - sprite_yoffset)) + 1; draw_sprite_part_ext(sprite_index, image_index, _xx, _yy, arg2, arg3, _boxleft + 1, _boxtop + 1, sign(image_xscale), sign(image_yscale), image_blend, image_alpha); }
(arg0, arg1, arg2, arg3)
2
{
3
    var _boxleft, _boxtop, _yy, _xx;
4
    _minx = arg0 - (arg2 / 2);
5
    _miny = arg1 - (arg3 / 2);
6
    _maxx = (_boxleft - (x - sprite_xoffset)) + 1;
7
    _maxy = (_boxtop - (y - sprite_yoffset)) + 1;
8
    draw_sprite_part_ext(sprite_index, image_index, _xx, _yy, arg2, arg3, _boxleft + 1, _boxtop + 1, sign(image_xscale), sign(image_yscale), image_blend, image_alpha);
9
}