|
1
|
if (!source)
|
|
2
|
exit;
|
|
3
|
image_blend = merge_color(c_black, c_white, image_alpha);
|
|
4
|
if (surface_exists(subSurf) && source.sprite_index != sprite_index)
|
|
5
|
surface_resize(subSurf, source.sprite_width, source.sprite_height);
|
|
6
|
sprite_index = source.sprite_index;
|
|
7
|
image_index = source.image_index;
|
|
8
|
image_xscale = source.image_xscale;
|
|
9
|
image_yscale = source.image_yscale;
|
|
10
|
gpu_set_blendmode(bm_normal);
|
|
11
|
draw_sprite_ext(sprite_index, image_index, screenx(), screeny(), image_xscale, image_yscale, image_angle, c_white, 1);
|
|
12
|
if (!surface_exists(subSurf))
|
|
13
|
subSurf = surface_create(sprite_width + 4, sprite_height + 4);
|
|
14
|
surface_set_target(subSurf);
|
|
15
|
draw_clear_alpha(c_black, 0);
|
|
16
|
d3d_set_fog(true, scr_get_outline_colorscr_get_outline_color
function scr_get_outline_color(arg0, arg1 = 8421504, arg2 = 1)
{
var col = arg1;
var krcol = 15245824;
var sucol = 13138410;
var racol = 1959605;
var gercol = 2533989;
var nocol = 12320748;
if (arg2 == 2)
{
col = 12736850;
krcol = 13462088;
sucol = 10305336;
racol = 13265482;
gercol = 12736850;
nocol = 12736850;
}
if (arg0.object_index == obj_mainchara)
col = krcol;
if (arg0.object_index == obj_caterpillarchara)
{
if (arg0.name == "susie")
col = sucol;
else if (arg0.name == "ralsei")
col = racol;
else if (arg0.name == "noelle")
col = nocol;
else
return 8421504;
}
if (object_get_parent(arg0.object_index) == 1276)
{
if (arg0.object_index == obj_herokris)
col = krcol;
else if (arg0.object_index == obj_herosusie)
col = sucol;
else if (arg0.object_index == obj_heroralsei)
col = racol;
else if (arg0.object_index == obj_heronoelle)
col = nocol;
}
if (arg0.object_index == obj_actor)
{
if (arg0.name == "kris")
col = krcol;
if (arg0.name == "susie")
col = sucol;
if (arg0.name == "ralsei")
col = racol;
if (arg0.name == "noelle")
col = nocol;
if (arg0.name == "gerson")
col = gercol;
}
if (room == room_dw_church_darkmaze)
{
with (obj_dw_church_darkmaze)
{
if (arg0 == germark)
col = gercol;
if (arg0 == gerson)
col = gercol;
if (arg0 == sumark)
col = sucol;
if (arg0 == ramark)
col = racol;
}
}
if (room == room_dw_church_intro_gerson)
{
with (obj_dw_church_intro_gerson)
{
if (arg0 == gerson)
col = gercol;
}
}
return col;
} (source), 0, 1);
|
|
17
|
draw_sprite_ext(sprite_index, image_index, sprite_xoffset, sprite_yoffset, image_xscale, image_yscale, image_angle, c_black, 1);
|
|
18
|
d3d_set_fog(false, c_black, 0, 0);
|
|
19
|
var _floorpos = (y + sprite_height) - 2 - (sprite_yoffset * 2);
|
|
20
|
gpu_set_blendmode(bm_normal);
|
|
21
|
draw_sprite_ext(sprite_index, image_index, sprite_xoffset, sprite_yoffset + 2, image_xscale, image_yscale, image_angle, c_black, 1);
|
|
22
|
image_alpha = 1;
|
|
23
|
draw_set_blend_mode(bm_subtract);
|
|
24
|
with (obj_darkness_window_light)
|
|
25
|
{
|
|
26
|
if (!relative)
|
|
27
|
{
|
|
28
|
draw_self();
|
|
29
|
}
|
|
30
|
else
|
|
31
|
{
|
|
32
|
var _yoff = y + (yoff * image_yscale);
|
|
33
|
draw_sprite_ext(sprite_index, image_index, x - other.x, (y + ((_floorpos - _yoff) * 2)) - other.y, image_xscale, image_yscale, image_angle, c_black, 1);
|
|
34
|
}
|
|
35
|
}
|
|
36
|
with (obj_darkness_floorArea_light)
|
|
37
|
draw_sprite_ext(sprite_index, image_index, x - other.x, y - other.y, image_xscale, image_yscale, image_angle, c_black, 1);
|
|
38
|
gpu_set_blendmode(bm_normal);
|
|
39
|
surface_reset_target();
|
|
40
|
draw_surface(subSurf, screenx(x - sprite_xoffset), screeny(y - sprite_yoffset));
|