Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_dialogue_box_battle_transformation_any_Draw_0

(view raw script w/o annotations or w/e)
1
if (battle_box_draw_enabled == false)
2
    exit;
3
if (sc_able == true)
4
{
5
    draw_sprite_ext(sprite_index, image_index, x, y, image_xscale, image_yscale, 0, c_white, 1 - sc_dcurrent);
6
    draw_set_alpha(1 - sc_dcurrent);
7
    draw_rectangle_colour(bbox_left, bbox_top, bbox_left + 4, bbox_bottom, c_white, c_white, c_white, c_white, false);
8
    draw_rectangle_colour(bbox_right - 4, bbox_top, bbox_right, bbox_bottom, c_white, c_white, c_white, c_white, false);
9
    draw_rectangle_colour(bbox_left, bbox_top, bbox_right, bbox_top + 4, c_white, c_white, c_white, c_white, false);
10
    draw_rectangle_colour(bbox_left, bbox_bottom - 4, bbox_right, bbox_bottom, c_white, c_white, c_white, c_white, false);
11
    draw_set_alpha(1);
12
    draw_sprite_ext(sc_sprite, sc_index, x + sc_xdisjoint, y + sc_ydisjoint, sc_xscale, sc_yscale, sc_angle, sc_color, sc_alpha * sc_dcurrent);
13
}
14
else
15
{
16
    draw_sprite_ext(sprite_index, image_index, x, y, image_xscale, image_yscale, 0, c_white, 1);
17
    draw_rectangle_colour(bbox_left, bbox_top, bbox_left + 4, bbox_bottom, c_white, c_white, c_white, c_white, false);
18
    draw_rectangle_colour(bbox_right - 4, bbox_top, bbox_right, bbox_bottom, c_white, c_white, c_white, c_white, false);
19
    draw_rectangle_colour(bbox_left, bbox_top, bbox_right, bbox_top + 4, c_white, c_white, c_white, c_white, false);
20
    draw_rectangle_colour(bbox_left, bbox_bottom - 4, bbox_right, bbox_bottom, c_white, c_white, c_white, c_white, false);
21
}