1 |
if live_call() |
2 |
return global.live_result; |
3 |
object[0] = obj_fight |
4 |
object[1] = obj_act |
5 |
object[2] = obj_item |
6 |
object[3] = obj_mercy |
7 |
object[4] = obj_text_hp |
8 |
object[5] = obj_autofire_toggle |
9 |
var color_id = color_uniform |
10 |
var alpha_id = alpha_uniform |
11 |
var _color_new = color_new |
12 |
for (var i = 0; i < array_length_1d(object); i++) |
13 |
{ |
14 |
with (object[i]) |
15 |
{ |
16 |
shader_set(sh_replace_color) |
17 |
if (object_index == obj_autofire_toggle && global.autofire_on == false) |
18 |
_color_new = [0.5, 0.5, 0.5] |
19 |
else |
20 |
_color_new = other.color_new |
21 |
shader_set_uniform_f_array(color_id, _color_new) |
22 |
shader_set_uniform_f(alpha_id, (other.image_alpha * global.image_alpha_enemy_attacking)) |
23 |
draw_self() |
24 |
shader_reset() |
25 |
visible = false |
26 |
} |
27 |
} |
28 |
draw_set_font(fnt_mars_needs_cunnilingus) |
29 |
var text_col = make_color_rgb((color_new[0] * 255), (color_new[1] * 255), (color_new[2] * 255)) |
30 |
draw_set_halign(fa_left) |
31 |
draw_set_valign(fa_top) |
32 |
draw_text_colour(30, 400, string_hash_to_newline(string(global.player_name)), text_col, text_col, text_col, text_col, (global.image_alpha_enemy_attacking * image_alpha)) |
33 |
draw_text_colour(147, 400, string_hash_to_newline("LV " + string(global.player_level)), text_col, text_col, text_col, text_col, (global.image_alpha_enemy_attacking * image_alpha)) |
34 |
if (global.current_hp_self < 10 && global.current_hp_self > -10) |
35 |
draw_text_colour((314 + obj_battle_hp_max_self.sprite_width - 25), 400, string_hash_to_newline("0" + string(global.current_hp_self) + " / " + string(global.max_hp_self)), text_col, text_col, text_col, text_col, (global.image_alpha_enemy_attacking * image_alpha)) |
36 |
else |
37 |
draw_text_colour((314 + obj_battle_hp_max_self.sprite_width - 25), 400, string_hash_to_newline(string(global.current_hp_self) + " / " + string(global.max_hp_self)), text_col, text_col, text_col, text_col, (global.image_alpha_enemy_attacking * image_alpha)) |
38 |
draw_set_alpha(image_alpha) |
39 |
if instance_exists(obj_dialogue_box_battle_transformation_any) |
40 |
{ |
41 |
with (obj_dialogue_box_battle_transformation_any) |
42 |
{ |
43 |
draw_sprite_ext(sprite_index, image_index, x, y, image_xscale, image_yscale, 0, text_col, (1 * other.image_alpha)) |
44 |
draw_rectangle_colour(bbox_left, bbox_top, (bbox_left + 4), bbox_bottom, text_col, text_col, text_col, text_col, false) |
45 |
draw_rectangle_colour((bbox_right - 4), bbox_top, bbox_right, bbox_bottom, text_col, text_col, text_col, text_col, false) |
46 |
draw_rectangle_colour(bbox_left, bbox_top, bbox_right, (bbox_top + 4), text_col, text_col, text_col, text_col, false) |
47 |
draw_rectangle_colour(bbox_left, (bbox_bottom - 4), bbox_right, bbox_bottom, text_col, text_col, text_col, text_col, false) |
48 |
} |
49 |
} |
50 |
if instance_exists(obj_dialogue_box_battle_transformation_any_out) |
51 |
{ |
52 |
with (obj_dialogue_box_battle_transformation_any_out) |
53 |
{ |
54 |
draw_sprite_ext(sprite_index, image_index, x, y, image_xscale, image_yscale, 0, text_col, (1 * other.image_alpha)) |
55 |
draw_rectangle_colour(bbox_left, bbox_top, (bbox_left + 4), bbox_bottom, text_col, text_col, text_col, text_col, false) |
56 |
draw_rectangle_colour((bbox_right - 4), bbox_top, bbox_right, bbox_bottom, text_col, text_col, text_col, text_col, false) |
57 |
draw_rectangle_colour(bbox_left, bbox_top, bbox_right, (bbox_top + 4), text_col, text_col, text_col, text_col, false) |
58 |
draw_rectangle_colour(bbox_left, (bbox_bottom - 4), bbox_right, bbox_bottom, text_col, text_col, text_col, text_col, false) |
59 |
} |
60 |
} |
61 |
if instance_exists(obj_dialogue_box_battle_transformation_any_in) |
62 |
{ |
63 |
with (obj_dialogue_box_battle_transformation_any_in) |
64 |
{ |
65 |
draw_sprite_ext(sprite_index, image_index, x, y, image_xscale, image_yscale, 0, text_col, (1 * other.image_alpha)) |
66 |
draw_rectangle_colour(bbox_left, bbox_top, (bbox_left + 4), bbox_bottom, text_col, text_col, text_col, text_col, false) |
67 |
draw_rectangle_colour((bbox_right - 4), bbox_top, bbox_right, bbox_bottom, text_col, text_col, text_col, text_col, false) |
68 |
draw_rectangle_colour(bbox_left, bbox_top, bbox_right, (bbox_top + 4), text_col, text_col, text_col, text_col, false) |
69 |
draw_rectangle_colour(bbox_left, (bbox_bottom - 4), bbox_right, bbox_bottom, text_col, text_col, text_col, text_col, false) |
70 |
} |
71 |
} |
72 |
if instance_exists(obj_dialogue_box_battle_transformation_attack) |
73 |
{ |
74 |
with (obj_dialogue_box_battle_transformation_attack) |
75 |
{ |
76 |
draw_sprite_ext(sprite_index, image_index, x, y, image_xscale, image_yscale, 0, text_col, (1 * other.image_alpha)) |
77 |
draw_rectangle_colour(bbox_left, bbox_top, (bbox_left + 4), bbox_bottom, text_col, text_col, text_col, text_col, false) |
78 |
draw_rectangle_colour((bbox_right - 4), bbox_top, bbox_right, bbox_bottom, text_col, text_col, text_col, text_col, false) |
79 |
draw_rectangle_colour(bbox_left, bbox_top, bbox_right, (bbox_top + 4), text_col, text_col, text_col, text_col, false) |
80 |
draw_rectangle_colour(bbox_left, (bbox_bottom - 4), bbox_right, bbox_bottom, text_col, text_col, text_col, text_col, false) |
81 |
} |
82 |
} |
83 |
if instance_exists(obj_dialogue_box_battle) |
84 |
{ |
85 |
with (obj_dialogue_box_battle) |
86 |
{ |
87 |
draw_set_alpha(image_alpha * other.image_alpha) |
88 |
draw_self() |
89 |
draw_sprite_ext(sprite_index, image_index, x, y, image_xscale, image_yscale, 0, text_col, (1 * other.image_alpha)) |
90 |
draw_rectangle_colour(bbox_left, bbox_top, (bbox_left + 4), bbox_bottom, text_col, text_col, text_col, text_col, false) |
91 |
draw_rectangle_colour((bbox_right - 4), bbox_top, bbox_right, bbox_bottom, text_col, text_col, text_col, text_col, false) |
92 |
draw_rectangle_colour(bbox_left, bbox_top, bbox_right, (bbox_top + 4), text_col, text_col, text_col, text_col, false) |
93 |
draw_rectangle_colour(bbox_left, (bbox_bottom - 4), bbox_right, bbox_bottom, text_col, text_col, text_col, text_col, false) |
94 |
draw_set_alpha(1) |
95 |
} |
96 |
} |
97 |
draw_set_alpha(1) |