| 1 |
var _color_current = make_color_rgb(255, color_number_current, color_number_current); |
| 2 |
if (instance_exists(obj_dialogue_box_battle_transformation_any)) |
| 3 |
{ |
| 4 |
with (obj_dialogue_box_battle_transformation_any) |
| 5 |
{ |
| 6 |
draw_sprite_ext(sprite_index, image_index, x, y, image_xscale, image_yscale, 0, _color_current, 1); |
| 7 |
draw_rectangle_colour(bbox_left, bbox_top, bbox_left + 4, bbox_bottom, _color_current, _color_current, _color_current, _color_current, false); |
| 8 |
draw_rectangle_colour(bbox_right - 4, bbox_top, bbox_right, bbox_bottom, _color_current, _color_current, _color_current, _color_current, false); |
| 9 |
draw_rectangle_colour(bbox_left, bbox_top, bbox_right, bbox_top + 4, _color_current, _color_current, _color_current, _color_current, false); |
| 10 |
draw_rectangle_colour(bbox_left, bbox_bottom - 4, bbox_right, bbox_bottom, _color_current, _color_current, _color_current, _color_current, false); |
| 11 |
} |
| 12 |
} |
| 13 |
if (instance_exists(obj_dialogue_box_battle_transformation_any_out)) |
| 14 |
{ |
| 15 |
with (obj_dialogue_box_battle_transformation_any_out) |
| 16 |
{ |
| 17 |
draw_sprite_ext(sprite_index, image_index, x, y, image_xscale, image_yscale, 0, _color_current, 1); |
| 18 |
draw_rectangle_colour(bbox_left, bbox_top, bbox_left + 4, bbox_bottom, _color_current, _color_current, _color_current, _color_current, false); |
| 19 |
draw_rectangle_colour(bbox_right - 4, bbox_top, bbox_right, bbox_bottom, _color_current, _color_current, _color_current, _color_current, false); |
| 20 |
draw_rectangle_colour(bbox_left, bbox_top, bbox_right, bbox_top + 4, _color_current, _color_current, _color_current, _color_current, false); |
| 21 |
draw_rectangle_colour(bbox_left, bbox_bottom - 4, bbox_right, bbox_bottom, _color_current, _color_current, _color_current, _color_current, false); |
| 22 |
} |
| 23 |
} |
| 24 |
if (instance_exists(obj_dialogue_box_battle_transformation_any_in)) |
| 25 |
{ |
| 26 |
with (obj_dialogue_box_battle_transformation_any_in) |
| 27 |
{ |
| 28 |
draw_sprite_ext(sprite_index, image_index, x, y, image_xscale, image_yscale, 0, _color_current, 1); |
| 29 |
draw_rectangle_colour(bbox_left, bbox_top, bbox_left + 4, bbox_bottom, _color_current, _color_current, _color_current, _color_current, false); |
| 30 |
draw_rectangle_colour(bbox_right - 4, bbox_top, bbox_right, bbox_bottom, _color_current, _color_current, _color_current, _color_current, false); |
| 31 |
draw_rectangle_colour(bbox_left, bbox_top, bbox_right, bbox_top + 4, _color_current, _color_current, _color_current, _color_current, false); |
| 32 |
draw_rectangle_colour(bbox_left, bbox_bottom - 4, bbox_right, bbox_bottom, _color_current, _color_current, _color_current, _color_current, false); |
| 33 |
} |
| 34 |
} |
| 35 |
if (instance_exists(obj_dialogue_box_battle_transformation_attack)) |
| 36 |
{ |
| 37 |
with (obj_dialogue_box_battle_transformation_attack) |
| 38 |
{ |
| 39 |
draw_sprite_ext(sprite_index, image_index, x, y, image_xscale, image_yscale, 0, _color_current, 1); |
| 40 |
draw_rectangle_colour(bbox_left, bbox_top, bbox_left + 4, bbox_bottom, _color_current, _color_current, _color_current, _color_current, false); |
| 41 |
draw_rectangle_colour(bbox_right - 4, bbox_top, bbox_right, bbox_bottom, _color_current, _color_current, _color_current, _color_current, false); |
| 42 |
draw_rectangle_colour(bbox_left, bbox_top, bbox_right, bbox_top + 4, _color_current, _color_current, _color_current, _color_current, false); |
| 43 |
draw_rectangle_colour(bbox_left, bbox_bottom - 4, bbox_right, bbox_bottom, _color_current, _color_current, _color_current, _color_current, false); |
| 44 |
} |
| 45 |
} |
| 46 |
if (instance_exists(obj_dialogue_box_battle)) |
| 47 |
{ |
| 48 |
with (obj_dialogue_box_battle) |
| 49 |
{ |
| 50 |
draw_set_alpha(image_alpha); |
| 51 |
draw_self(); |
| 52 |
draw_sprite_ext(sprite_index, image_index, x, y, image_xscale, image_yscale, 0, _color_current, 1); |
| 53 |
draw_rectangle_colour(bbox_left, bbox_top, bbox_left + 4, bbox_bottom, _color_current, _color_current, _color_current, _color_current, false); |
| 54 |
draw_rectangle_colour(bbox_right - 4, bbox_top, bbox_right, bbox_bottom, _color_current, _color_current, _color_current, _color_current, false); |
| 55 |
draw_rectangle_colour(bbox_left, bbox_top, bbox_right, bbox_top + 4, _color_current, _color_current, _color_current, _color_current, false); |
| 56 |
draw_rectangle_colour(bbox_left, bbox_bottom - 4, bbox_right, bbox_bottom, _color_current, _color_current, _color_current, _color_current, false); |
| 57 |
draw_set_alpha(1); |
| 58 |
} |
| 59 |
} |