Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_board_inventory_Draw_0

(view raw script w/o annotations or w/e)
1
draw_sprite_ext(sprite_index, image_index, x, y, image_xscale, image_yscale, image_angle, image_blend, image_alpha);
2
if (room == room_board_1)
3
{
4
    if (keycount > 0)
5
    {
6
        draw_sprite_ext(spr_board_key, 6, x + 8, y + 10 + 0, 2, 2, 0, c_white, 1);
7
        draw_sprite_ext(spr_board_inventory_counter, keycount, x + 8 + 18, y + 10 + 34 + 0, 2, 2, 0, c_white, 1);
8
    }
9
    if (qcount)
10
    {
11
        draw_sprite_ext(spr_board_inventory_q, 0, x + 8, y + 10 + 48, 2, 2, 0, c_white, 1);
12
        draw_sprite_ext(spr_board_inventory_counter, qcount, x + 8 + 18, y + 10 + 34 + 48, 2, 2, 0, c_white, 1);
13
    }
14
    if (lancer != 0)
15
    {
16
        draw_sprite_ext(spr_board_lancer_down, 1, x + 8, y + 10 + 96, 2, 2, 0, c_white, 1);
17
        draw_sprite_ext(spr_board_inventory_counter, lancer, x + 8 + 18, y + 10 + 34 + 96, 2, 2, 0, c_white, 1);
18
    }
19
    if (sunmoonstone != 0)
20
        draw_sprite_ext(spr_board_sunmoonstone, 1, x + 8, y + 10 + 144, 2, 2, 0, c_white, 1);
21
    if (rouxlsblock != 0)
22
        draw_sprite_ext(spr_board_rouxlsblock, 1, x + 8, y + 10 + 192, 2, 2, 0, c_white, 1);
23
}
24
if (room == room_board_2)
25
{
26
    if (camera == true)
27
    {
28
        var photocount = global.flag[1041 got_half_flower] + global.flag[1042 got_spring_photo] + global.flag[1043 got_cactus_photo] + global.flag[1227 got_antlion_photo];
29
        draw_sprite_ext(spr_board_playercamera_pickup, 0, x + 8, (y + 10 + 0) - 2, 2, 2, 0, c_white, 1);
30
        if (photocount > 0)
31
        {
32
            draw_sprite_ext(spr_board_inventory_photocounter, 0, x + 8, y + 10 + 30, 2, 2, 0, c_white, 1);
33
            draw_sprite_ext(spr_board_inventory_counter, photocount, x + 8 + 18, y + 10 + 34 + 0, 2, 2, 0, c_white, 1);
34
        }
35
    }
36
    if (qcount == 1)
37
        draw_sprite_ext(spr_board_b2tennaglasses, 0, x + 8, y + 10 + 48, 2, 2, 0, c_white, 1);
38
    if (qcount == 2)
39
        draw_sprite_ext(spr_board_b2tennaglasses, 2, x + 8, y + 10 + 48, 2, 2, 0, c_white, 1);
40
    if (lancer != 0)
41
    {
42
        draw_sprite_ext(spr_board_lancer_down, 1, x + 8, y + 10 + 96, 2, 2, 0, c_white, 1);
43
        draw_sprite_ext(spr_board_inventory_counter, lancer, x + 8 + 18, y + 10 + 34 + 96, 2, 2, 0, c_white, 1);
44
    }
45
    if (ninfriendo && b2drawninfriendo)
46
        draw_sprite_ext(spr_board_inventory_ninfriendo, global.flag[1017 fave_weather], x + 8, y + 10 + 144, 2, 2, 0, c_white, 1);
47
    if (rouxlsblock != 0)
48
        draw_sprite_ext(spr_board_rouxlsblock, 1, x + 8, y + 10 + 192, 2, 2, 0, c_white, 1);
49
}
50
if (room == room_board_3)
51
{
52
    if (qcount)
53
    {
54
        draw_sprite_ext(spr_board_inventory_q, 0, x + 8, y + 10 + 0, 2, 2, 0, c_white, 1);
55
        draw_sprite_ext(spr_board_inventory_counter, qcount, x + 8 + 18, y + 10 + 34 + 0, 2, 2, 0, c_white, 1);
56
    }
57
    if (lancer > 0)
58
    {
59
        draw_sprite_ext(spr_board_lancer_down, 0, x + 8, y + 10 + 48, 2, 2, 0, c_white, 1);
60
        draw_sprite_ext(spr_board_inventory_counter, lancer, x + 8 + 18, y + 10 + 34 + 48, 2, 2, 0, c_white, 1);
61
    }
62
    if (obj_mainchara_board.camera == true)
63
        draw_sprite_ext(spr_board_playercamera_pickup, 0, x + 8, (y + 10 + 96) - 2, 2, 2, 0, c_white, 1);
64
}