|
1
|
function scr_draw_self_silhouette(arg0, arg1, arg2, arg3)
|
|
2
|
{
|
|
3
|
scr_draw_sprite_silhouette_ext(sprite_index, image_index, x, y, image_xscale, image_yscale, arg0, arg1, image_angle, arg2, arg3 * image_alpha);
|
|
4
|
}
|
|
5
|
|
|
6
|
function scr_draw_silhouettescr_draw_silhouette
function scr_draw_self_silhouette(arg0, arg1, arg2, arg3)
{
scr_draw_sprite_silhouette_ext(sprite_index, image_index, x, y, image_xscale, image_yscale, arg0, arg1, image_angle, arg2, arg3 * image_alpha);
}
function scr_draw_silhouette(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7)
{
scr_draw_sprite_silhouette_ext(arg0, arg1, arg2, arg3, 1, 1, arg4, arg5, image_angle, arg6, arg7);
}
function scr_draw_sprite_silhouette_ext(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10)
{
gpu_set_blendenable(false);
gpu_set_colorwriteenable(false, false, false, true);
draw_sprite_ext(arg0, arg1, arg2 + arg6, arg3 + arg7, arg4, arg5, arg8, c_white, 0);
draw_sprite_ext(arg0, arg1, arg2, arg3, arg4, arg5, arg8, arg9, arg10);
gpu_set_blendenable(true);
gpu_set_colorwriteenable(true, true, true, true);
gpu_set_blendmode_ext(bm_dest_alpha, bm_inv_dest_alpha);
gpu_set_alphatestenable(true);
draw_sprite_ext(arg0, arg1, arg2 + arg6, arg3 + arg7, arg4, arg5, arg8, arg9, 1);
gpu_set_alphatestenable(false);
gpu_set_blendmode(bm_normal);
}
function scr_draw_self_silhouette_plus(arg0 = 0, arg1 = 4)
{
gpu_set_blendenable(false);
gpu_set_colorwriteenable(false, false, false, true);
draw_set_alpha(0);
draw_set_color(c_black);
var _tl = scr_get_sprite_point(id, 0, 0, false);
var _br = scr_get_sprite_point(id, 1, 1, false);
draw_rectangle(_tl.x + arg0, _tl.y + arg1, _br.x + arg0, _br.y + arg1, false);
draw_set_color(c_white);
draw_set_alpha(1);
draw_sprite_ext(sprite_index, image_index, x, y, 2, 2, 0, c_white, 0.9);
gpu_set_blendenable(true);
gpu_set_colorwriteenable(true, true, true, true);
gpu_set_blendmode_ext(bm_dest_alpha, bm_inv_dest_alpha);
gpu_set_alphatestenable(true);
draw_sprite_ext(sprite_index, image_index, x + arg0, y + arg1, 2, 2, 0, c_black, 1);
gpu_set_alphatestenable(false);
gpu_set_blendmode(bm_normal);
}
function scr_draw_self_silhouette_plus_mask_start(arg0 = 0, arg1 = 4)
{
gpu_set_blendenable(false);
gpu_set_colorwriteenable(false, false, false, true);
draw_set_alpha(0);
draw_set_color(c_black);
var _tl = scr_get_sprite_point(id, 0, 0, false);
var _br = scr_get_sprite_point(id, 1, 1, false);
draw_rectangle(_tl.x + arg0, _tl.y + arg1, _br.x + arg0, _br.y + arg1, false);
draw_set_color(c_white);
draw_set_alpha(1);
draw_sprite_ext(sprite_index, image_index, x, y, 2, 2, 0, c_white, 0.9);
}
function scr_draw_self_silhouette_plus_mask_end(arg0 = 0, arg1 = 4)
{
gpu_set_blendenable(true);
gpu_set_colorwriteenable(true, true, true, true);
gpu_set_blendmode_ext(bm_dest_alpha, bm_inv_dest_alpha);
gpu_set_alphatestenable(true);
draw_sprite_ext(sprite_index, image_index, x + arg0, y + arg1, 2, 2, 0, c_black, 1);
gpu_set_alphatestenable(false);
gpu_set_blendmode(bm_normal);
draw_set_alpha(1);
} (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7)
|
|
7
|
{
|
|
8
|
scr_draw_sprite_silhouette_ext(arg0, arg1, arg2, arg3, 1, 1, arg4, arg5, image_angle, arg6, arg7);
|
|
9
|
}
|
|
10
|
|
|
11
|
function scr_draw_sprite_silhouette_ext(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10)
|
|
12
|
{
|
|
13
|
gpu_set_blendenable(false);
|
|
14
|
gpu_set_colorwriteenable(false, false, false, true);
|
|
15
|
draw_sprite_ext(arg0, arg1, arg2 + arg6, arg3 + arg7, arg4, arg5, arg8, c_white, 0);
|
|
16
|
draw_sprite_ext(arg0, arg1, arg2, arg3, arg4, arg5, arg8, arg9, arg10);
|
|
17
|
gpu_set_blendenable(true);
|
|
18
|
gpu_set_colorwriteenable(true, true, true, true);
|
|
19
|
gpu_set_blendmode_ext(bm_dest_alpha, bm_inv_dest_alpha);
|
|
20
|
gpu_set_alphatestenable(true);
|
|
21
|
draw_sprite_ext(arg0, arg1, arg2 + arg6, arg3 + arg7, arg4, arg5, arg8, arg9, 1);
|
|
22
|
gpu_set_alphatestenable(false);
|
|
23
|
gpu_set_blendmode(bm_normal);
|
|
24
|
}
|
|
25
|
|
|
26
|
function scr_draw_self_silhouette_plus(arg0 = 0, arg1 = 4)
|
|
27
|
{
|
|
28
|
gpu_set_blendenable(false);
|
|
29
|
gpu_set_colorwriteenable(false, false, false, true);
|
|
30
|
draw_set_alpha(0);
|
|
31
|
draw_set_color(c_black);
|
|
32
|
var _tl = scr_get_sprite_pointscr_get_sprite_point
function scr_get_sprite_point(arg0 = -4, arg1 = 0.5, arg2 = 0.5, arg3 = true)
{
var __v2 = new Vector2(0, 0);
if (arg0 != -4)
{
with (arg0)
{
__v2.x = (x - sprite_xoffset) + (sprite_width * arg1);
__v2.y = (y - sprite_yoffset) + (sprite_height * arg2);
if (arg3)
__v2 = scr_rotatevector_around(__v2, new Vector2(x, y), image_angle);
}
}
return __v2;
}
function scr_get_sprite_point_x(arg0, arg1 = 0.5, arg2 = true)
{
return scr_get_sprite_point(arg0, arg1, 0.5, arg2).x;
}
function scr_get_sprite_point_y(arg0, arg1 = 0.5, arg2 = true)
{
return scr_get_sprite_point(arg0, 0.5, arg1, arg2).y;
} (id, 0, 0, false);
|
|
33
|
var _br = scr_get_sprite_pointscr_get_sprite_point
function scr_get_sprite_point(arg0 = -4, arg1 = 0.5, arg2 = 0.5, arg3 = true)
{
var __v2 = new Vector2(0, 0);
if (arg0 != -4)
{
with (arg0)
{
__v2.x = (x - sprite_xoffset) + (sprite_width * arg1);
__v2.y = (y - sprite_yoffset) + (sprite_height * arg2);
if (arg3)
__v2 = scr_rotatevector_around(__v2, new Vector2(x, y), image_angle);
}
}
return __v2;
}
function scr_get_sprite_point_x(arg0, arg1 = 0.5, arg2 = true)
{
return scr_get_sprite_point(arg0, arg1, 0.5, arg2).x;
}
function scr_get_sprite_point_y(arg0, arg1 = 0.5, arg2 = true)
{
return scr_get_sprite_point(arg0, 0.5, arg1, arg2).y;
} (id, 1, 1, false);
|
|
34
|
draw_rectangle(_tl.x + arg0, _tl.y + arg1, _br.x + arg0, _br.y + arg1, false);
|
|
35
|
draw_set_color(c_white);
|
|
36
|
draw_set_alpha(1);
|
|
37
|
draw_sprite_ext(sprite_index, image_index, x, y, 2, 2, 0, c_white, 0.9);
|
|
38
|
gpu_set_blendenable(true);
|
|
39
|
gpu_set_colorwriteenable(true, true, true, true);
|
|
40
|
gpu_set_blendmode_ext(bm_dest_alpha, bm_inv_dest_alpha);
|
|
41
|
gpu_set_alphatestenable(true);
|
|
42
|
draw_sprite_ext(sprite_index, image_index, x + arg0, y + arg1, 2, 2, 0, c_black, 1);
|
|
43
|
gpu_set_alphatestenable(false);
|
|
44
|
gpu_set_blendmode(bm_normal);
|
|
45
|
}
|
|
46
|
|
|
47
|
function scr_draw_self_silhouette_plus_mask_start(arg0 = 0, arg1 = 4)
|
|
48
|
{
|
|
49
|
gpu_set_blendenable(false);
|
|
50
|
gpu_set_colorwriteenable(false, false, false, true);
|
|
51
|
draw_set_alpha(0);
|
|
52
|
draw_set_color(c_black);
|
|
53
|
var _tl = scr_get_sprite_pointscr_get_sprite_point
function scr_get_sprite_point(arg0 = -4, arg1 = 0.5, arg2 = 0.5, arg3 = true)
{
var __v2 = new Vector2(0, 0);
if (arg0 != -4)
{
with (arg0)
{
__v2.x = (x - sprite_xoffset) + (sprite_width * arg1);
__v2.y = (y - sprite_yoffset) + (sprite_height * arg2);
if (arg3)
__v2 = scr_rotatevector_around(__v2, new Vector2(x, y), image_angle);
}
}
return __v2;
}
function scr_get_sprite_point_x(arg0, arg1 = 0.5, arg2 = true)
{
return scr_get_sprite_point(arg0, arg1, 0.5, arg2).x;
}
function scr_get_sprite_point_y(arg0, arg1 = 0.5, arg2 = true)
{
return scr_get_sprite_point(arg0, 0.5, arg1, arg2).y;
} (id, 0, 0, false);
|
|
54
|
var _br = scr_get_sprite_pointscr_get_sprite_point
function scr_get_sprite_point(arg0 = -4, arg1 = 0.5, arg2 = 0.5, arg3 = true)
{
var __v2 = new Vector2(0, 0);
if (arg0 != -4)
{
with (arg0)
{
__v2.x = (x - sprite_xoffset) + (sprite_width * arg1);
__v2.y = (y - sprite_yoffset) + (sprite_height * arg2);
if (arg3)
__v2 = scr_rotatevector_around(__v2, new Vector2(x, y), image_angle);
}
}
return __v2;
}
function scr_get_sprite_point_x(arg0, arg1 = 0.5, arg2 = true)
{
return scr_get_sprite_point(arg0, arg1, 0.5, arg2).x;
}
function scr_get_sprite_point_y(arg0, arg1 = 0.5, arg2 = true)
{
return scr_get_sprite_point(arg0, 0.5, arg1, arg2).y;
} (id, 1, 1, false);
|
|
55
|
draw_rectangle(_tl.x + arg0, _tl.y + arg1, _br.x + arg0, _br.y + arg1, false);
|
|
56
|
draw_set_color(c_white);
|
|
57
|
draw_set_alpha(1);
|
|
58
|
draw_sprite_ext(sprite_index, image_index, x, y, 2, 2, 0, c_white, 0.9);
|
|
59
|
}
|
|
60
|
|
|
61
|
function scr_draw_self_silhouette_plus_mask_end(arg0 = 0, arg1 = 4)
|
|
62
|
{
|
|
63
|
gpu_set_blendenable(true);
|
|
64
|
gpu_set_colorwriteenable(true, true, true, true);
|
|
65
|
gpu_set_blendmode_ext(bm_dest_alpha, bm_inv_dest_alpha);
|
|
66
|
gpu_set_alphatestenable(true);
|
|
67
|
draw_sprite_ext(sprite_index, image_index, x + arg0, y + arg1, 2, 2, 0, c_black, 1);
|
|
68
|
gpu_set_alphatestenable(false);
|
|
69
|
gpu_set_blendmode(bm_normal);
|
|
70
|
draw_set_alpha(1);
|
|
71
|
}
|