Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_chefs_toggles_Draw_0

(view raw script w/o annotations or w/e)
1
get_view_xy(view_current);
2
x = vx + (vw / 2);
3
y = (vy + (vh / 2)) - (selection * 48);
4
t++;
5
draw_set_font(fnt_mainbig);
6
draw_set_halign(fa_center);
7
for (var i = 0; i < menu_length; i++)
8
{
9
    draw_set_color(#305182);
10
    var _text = option[i];
11
    if (i == selection && selection != (menu_length - 1))
12
        _text = "<- " + option[i] + " ->";
13
    draw_text(x + 2, y + (i * 48) + 2, _text);
14
    if (selection == i)
15
    {
16
        if (selected && (t % 3) == 0)
17
            draw_set_color(c_white);
18
        else
19
            draw_set_color(#61D3E3);
20
    }
21
    else
22
    {
23
        draw_set_color(#4192C3);
24
    }
25
    draw_text(x, y + (i * 48), _text);
26
}