Deltarune (Chapter Select) script viewer

← back to main script listing

gml_Object_obj_ui_chapter_Draw_0

(view raw script w/o annotations or w/e)
1
if (_enabled)
2
{
3
    for (var i = 0; i < array_length(_completed_files); i++)
4
    {
5
        var star_index = _completed_files[i];
6
        draw_sprite_ext(spr_ui_star, star_index, x + 180, y + 26 + (i * 12), 1, 1, 0, c_white, _alpha);
7
    }
8
}
9
if (_title_enabled)
10
{
11
    draw_set_halign(fa_center);
12
    draw_set_color(_color);
13
    draw_set_alpha(_alpha);
14
    draw_set_font(_font);
15
    draw_text_transformed(x + 360, y + 26, _chapter_title, _scale, _scale, 0);
16
    draw_set_halign(fa_left);
17
    draw_set_color(c_white);
18
    draw_set_alpha(1);
19
}
20
draw_sprite_ext(spr_chapterIcon, _icon_index, (x + (view_wport[0] / 2)) - 130, y + 20, _scale, _scale, 0, _color, _alpha);
21
draw_sprite_ext(spr_horzBar, 0, x, y + 72, _scale, _scale, 0, c_white, _alpha);