1 |
if live_call() |
2 |
return global.live_result; |
3 |
object[0] = obj_battle_hp_max_self |
4 |
object[1] = obj_battle_hp_current_self |
5 |
object[2] = obj_fight |
6 |
object[3] = obj_act |
7 |
object[4] = obj_item |
8 |
object[5] = obj_mercy |
9 |
object[6] = obj_martlet_final_hair |
10 |
object[7] = obj_martlet_final_wing |
11 |
object[8] = obj_martlet_final_head |
12 |
object[9] = obj_martlet_final_base |
13 |
object[10] = obj_text_hp |
14 |
object[11] = obj_martlet_final_leg_back |
15 |
object[12] = obj_martlet_final_leg_front |
16 |
object[13] = obj_martlet_final_talon_back |
17 |
object[14] = obj_martlet_final_talon_front |
18 |
var alpha_new = starlo_take_aim_overlay_alpha |
19 |
var alpha_id = shader_alpha |
20 |
for (var i = 0; i < array_length_1d(object); i++) |
21 |
{ |
22 |
if instance_exists(object[i]) |
23 |
{ |
24 |
with (object[i]) |
25 |
{ |
26 |
shader_set(sh_grayscale) |
27 |
shader_set_uniform_f(alpha_id, alpha_new) |
28 |
draw_self() |
29 |
if (object_index == obj_martlet_final_wing) |
30 |
{ |
31 |
if (!surface_exists(wing_surf)) |
32 |
wing_surf = surface_create(surface_get_width(application_surface), surface_get_height(application_surface)) |
33 |
surface_set_target(wing_surf) |
34 |
draw_clear_alpha(c_black, 0) |
35 |
draw_sprite_ext(spr_martlet_final_wing_mask, image_index, x, y, image_xscale, 1, image_angle, c_white, image_alpha) |
36 |
draw_set_blend_mode_ext(7, 8) |
37 |
draw_sprite_tiled(space_test, 0, 0, 0) |
38 |
draw_set_blend_mode(0) |
39 |
surface_reset_target() |
40 |
draw_surface(wing_surf, 0, 0) |
41 |
} |
42 |
shader_reset() |
43 |
} |
44 |
} |
45 |
} |