Deltarune (Chapter 3) script viewer

← back to main script listing

gml_GlobalScript_scr_retro_pal_swapper_utilities

(view raw script w/o annotations or w/e)
1
function pal_swap_draw_palette(arg0, arg1, arg2, arg3)
2
{
3
    draw_sprite_part(arg0, 0, floor(arg1), 0, 1, sprite_get_height(arg0), arg2, arg3);
4
}
5
6
function pal_swap_get_color_count(arg0)
7
{
8
    return sprite_get_height(arg0);
9
}
10
11
function pal_swap_get_pal_count(arg0)
12
{
13
    return sprite_get_width(arg0);
14
}