Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_ch3_GSB02_Draw_0

(view raw script w/o annotations or w/e)
1
if (con == 0 && 
scr_debug
scr_debug

function
scr_debug()
{ if (global.debug == 1) return 1; }
() && show_debug)
2
{
3
    draw_set_color(c_white);
4
    draw_set_halign(fa_center);
5
    draw_set_valign(fa_middle);
6
    var _confirm = "[Z]";
7
    var _cancel = "[X]";
8
    draw_text_transformed(camerax() + 320, cameray() + 240, string_hash_to_newline(_confirm + " Play it!#" + _cancel + " Nevermind"), 2, 2, 0);
9
    draw_set_halign(fa_left);
10
    draw_set_valign(fa_top);
11
}
12
if (silhouettes)
13
{
14
    depth = instrument[1].depth - 10;
15
    if (i_ex(instrument[0]) && instrument[0].visible)
16
    {
17
        with (instrument[0])
18
        {
19
            var _floor = obj_rhythmgame.y + 394;
20
            scr_draw_self_silhouette_plus(-2, 4);
21
        }
22
    }
23
    if (i_ex(instrument[1]) && instrument[1].visible)
24
    {
25
        with (instrument[1])
26
        {
27
            var _floor = obj_rhythmgame.y + 394;
28
            scr_draw_self_silhouette_plus();
29
        }
30
    }
31
}