Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_dialoguer_Draw_0

(view raw script w/o annotations or w/e)
1
if (active == 1)
2
{
3
    if (
scr_debug
scr_debug

function
scr_debug()
{ return 0; }
())
4
    {
5
        if (keyboard_check_pressed(ord("D")))
6
        {
7
            if (global.tempflag[19] == 0)
8
                global.tempflag[19] = 1;
9
            else
10
                global.tempflag[19] = 0;
11
        }
12
    }
13
    if (global.tempflag[19] == 0)
14
        
scr_dbox
scr_dbox

function
scr_dbox()
{ xxx = camerax(); yyy = cameray(); if (global.darkzone == 0) { var off = side * 155; draw_sprite_ext(spr_pxwhite, 0, xxx + 16, yyy + 5 + off, 289, 76, 0, c_white, 1); draw_sprite_ext(spr_pxwhite, 0, xxx + 19, yyy + 8 + off, 283, 70, 0, c_black, 1); } if (global.darkzone == 1) { if (side == 0) { draw_set_color(c_black); draw_rectangle(xxx + 38, yyy + 16, xxx + 602, yyy + 154, false);
scr_darkbox((xxx + 32) - 8, (yyy + 10) - 8, xxx + 608 + 8, yyy + 160 + 8);
} else { draw_set_color(c_black); draw_rectangle(xxx + 38, yyy + 326, xxx + 602, yyy + 464, false);
scr_darkbox((xxx + 32) - 8, (yyy + 320) - 8, xxx + 608 + 8, yyy + 470 + 8);
} } }
();
15
    if (!i_ex(writer))
16
    {
17
        instance_destroy();
18
    }
19
    else if (global.tempflag[19] == 1)
20
    {
21
        draw_set_color(c_red);
22
        
scr_84_set_draw_font
scr_84_set_draw_font

function
scr_84_set_draw_font(arg0)
{ global.chemg_font = arg0; draw_set_font(
scr_84_get_font(arg0));
}
("mainbig");
23
        draw_text(camerax() + 16, cameray() + (174 * (global.darkzone + 1)), writer.msgno);
24
    }
25
}