Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_ch4_PDC14A_choicer_Draw_0

(view raw script w/o annotations or w/e)
1
if (canchoose == 1)
2
{
3
    draw_set_color(c_white);
4
    ossafe_fill_rectangle(camerax() + 16, cameray() + 160, camerax() + 304, cameray() + 235, false);
5
    draw_set_color(c_black);
6
    ossafe_fill_rectangle(camerax() + 19, cameray() + 163, camerax() + 301, cameray() + 232, false);
7
    
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));
}
("main");
8
    textx = xx;
9
    texty = yy;
10
    for (i = 0; i < (choicetotal + 1); i += 1)
11
    {
12
        draw_set_color((mychoice == i) ? c_yellow : c_white);
13
        textx = textposx[i];
14
        texty = textposy[i];
15
        draw_text(textx, texty, string_hash_to_newline(global.choicemsg[i]));
16
    }
17
    draw_sprite_ext(heartSprite, 0, hx, hy, image_xscale, image_yscale, 0, c_white, 1);
18
}