Deltarune script viewer

← back to main script listing

gml_Object_obj_choicer_neo_ch1_Draw_0

(view raw script w/o annotations or w/e)
1
if (dar == 1)
2
    scr_84_set_draw_font_ch1
scr_84_set_draw_font_ch1

function scr_84_set_draw_font_ch1(arg0) { global.chemg_font = arg0; draw_set_font(scr_84_get_font_ch1(arg0)); }
("main");
3
else
4
    scr_84_set_draw_font_ch1
scr_84_set_draw_font_ch1

function scr_84_set_draw_font_ch1(arg0) { global.chemg_font = arg0; draw_set_font(scr_84_get_font_ch1(arg0)); }
("mainbig");
5
textx = xx;
6
texty = yy;
7
for (i = 0; i < (choicetotal + 1); i += 1)
8
{
9
    draw_set_color(c_white);
10
    if (mychoice == i)
11
        draw_set_color(c_yellow);
12
    textx = textposx[i];
13
    texty = textposy[i];
14
    if (candraw == 1)
15
        draw_text(textx, texty, string_hash_to_newline(global.choicemsg[i]));
16
}
17
if (global.lang == "ja")
18
{
19
    if (candraw == 0 && choicetotal == 2 && mychoice == -1)
20
        hy += (20 * dar);
21
}
22
candraw = 1;
23
draw_sprite_ext(spr_heartsmall_ch1, 0, hx, hy, image_xscale, image_yscale, 0, c_white, 1);