1 | object[0] = obj_battle_hp_max_self |
2 | object[1] = obj_battle_hp_current_self |
3 | object[2] = obj_fight |
4 | object[3] = obj_act |
5 | object[4] = obj_item |
6 | object[5] = obj_mercy |
7 | var alpha_new = greyscale_overlay_alpha |
8 | var alpha_id = shader_alpha |
9 | for (var i = 0; i < array_length_1d(object); i++) |
10 | { |
11 | with (object[i]) |
12 | { |
13 | shader_set(sh_grayscale) |
14 | shader_set_uniform_f(alpha_id, alpha_new) |
15 | draw_self() |
16 | shader_reset() |
17 | } |
18 | } |