|
1
|
siner++;
|
|
2
|
if (state == "intro" || state == "aiming")
|
|
3
|
{
|
|
4
|
if (i_ex(obj_shutta_nobyacttest) && obj_shutta_nobyacttest.photocooldowntimer > 0)
|
|
5
|
draw_sprite_ext(sprite_index, 1, x, y, image_xscale, image_yscale, image_angle, image_blend, image_alpha);
|
|
6
|
else
|
|
7
|
draw_sprite_ext(sprite_index, 0, x, y, image_xscale, image_yscale, image_angle, image_blend, image_alpha);
|
|
8
|
if (flash_alpha > 0 && (state == "capture" || state == "result"))
|
|
9
|
{
|
|
10
|
}
|
|
11
|
else if (flash_alpha > 0)
|
|
12
|
{
|
|
13
|
draw_sprite_stretched_ext(spr_whitepixel, 0, x - 82, y - 64, 32 * image_xscale, 32 * image_yscale, c_white, flash_alpha);
|
|
14
|
flash_alpha -= 0.1;
|
|
15
|
}
|
|
16
|
draw_sprite_ext(spr_shutta_hands2, 0, (x - (width / 2)) + 4, y - (height / 2) - 4, 2, 2, 0, c_white, image_alpha);
|
|
17
|
draw_sprite_ext(spr_shutta_hands2, 1, (x + (width / 2)) - 4, y + (height / 2) + 4, 2, 2, 0, c_white, image_alpha);
|
|
18
|
draw_set_color(c_white);
|
|
19
|
draw_set_alpha(image_alpha - 0.5);
|
|
20
|
if (reticle_over_good_shot)
|
|
21
|
{
|
|
22
|
draw_set_color(c_lime);
|
|
23
|
draw_set_alpha(1);
|
|
24
|
}
|
|
25
|
draw_circle(x, y, reticle_size, true);
|
|
26
|
if (reticle_over_good_shot)
|
|
27
|
draw_circle(x, y, reticle_size + 1, true);
|
|
28
|
draw_set_alpha(1);
|
|
29
|
draw_set_color(c_white);
|
|
30
|
if (reticle_over_good_shot_prev != reticle_over_good_shot)
|
|
31
|
{
|
|
32
|
snd_stop(snd_menumove);
|
|
33
|
snd_play(snd_menumove);
|
|
34
|
}
|
|
35
|
reticle_over_good_shot_prev = reticle_over_good_shot;
|
|
36
|
var _tx = camerax() + 200;
|
|
37
|
var _ty = cameray() + 295;
|
|
38
|
if (!i_ex(obj_tenna_minigame_ui))
|
|
39
|
{
|
|
40
|
draw_set_alpha(introtimer / 10);
|
|
41
|
ossafe_fill_rectangle_color(_tx, _ty - 5, _tx + ((1 - (timer / timer_duration)) * 180), _ty + 5, c_aqua, c_aqua, c_aqua, c_aqua, 0);
|
|
42
|
draw_set_alpha(1);
|
|
43
|
draw_sprite_ext(spr_poppup_hourglass, 1, _tx, _ty, 2, 2, 0, c_white, introtimer / 10);
|
|
44
|
}
|
|
45
|
}
|
|
46
|
if ((state == "result" || state == "outro") && tookaphoto == true && subact != "bullets")
|
|
47
|
{
|
|
48
|
if (!surface_exists(photo_surface))
|
|
49
|
{
|
|
50
|
}
|
|
51
|
var _border_width = 10;
|
|
52
|
var _border_offset = point_distance(0, 0, _border_width, _border_width);
|
|
53
|
var _scale = 1.5;
|
|
54
|
var _px = x - ((photo_width * _scale) / 2);
|
|
55
|
var _py = y - ((photo_height * _scale) / 2);
|
|
56
|
draw_sprite_ext(spr_whitepixel, 0, _px - lengthdir_x(_border_offset, -45 + angle), _py - lengthdir_y(_border_offset, -45 + angle), (photo_width * _scale) + (_border_width * 2), (photo_height * _scale) + (_border_width * 2), angle, c_white, 1);
|
|
57
|
draw_sprite_ext(screenshot, 0, _px, _py, _scale, _scale, angle, c_white, 1);
|
|
58
|
}
|
|
59
|
if (subact == "bullets" && flash_alpha > 0)
|
|
60
|
{
|
|
61
|
}
|