Deltarune script viewer

← back to main script listing

gml_GlobalScript_scr_shopmorearrow

(view raw script w/o annotations or w/e)
1
function scr_shopmorearrow
scr_shopmorearrow

function scr_shopmorearrow(arg0) { if (pagemax > 0) draw_sprite_ext(spr_morearrow, 0, 370, 280 - (sin(cur_jewel / 12) * 3), 1, -1, 0, c_white, 1); if ((5 + pagemax) < arg0) { if (menu == 11) { if (itemsellname[5 + pagemax] != " ") draw_sprite_ext(spr_morearrow, 0, 370, 440 + (sin(cur_jewel / 12) * 3), 1, 1, 0, c_white, 1); } else { draw_sprite_ext(spr_morearrow, 0, 370, 440 + (sin(cur_jewel / 12) * 3), 1, 1, 0, c_white, 1); } } }
(arg0)
2
{
3
    if (pagemax > 0)
4
        draw_sprite_ext(spr_morearrow, 0, 370, 280 - (sin(cur_jewel / 12) * 3), 1, -1, 0, c_white, 1);
5
    if ((5 + pagemax) < arg0)
6
    {
7
        if (menu == 11)
8
        {
9
            if (itemsellname[5 + pagemax] != " ")
10
                draw_sprite_ext(spr_morearrow, 0, 370, 440 + (sin(cur_jewel / 12) * 3), 1, 1, 0, c_white, 1);
11
        }
12
        else
13
        {
14
            draw_sprite_ext(spr_morearrow, 0, 370, 440 + (sin(cur_jewel / 12) * 3), 1, 1, 0, c_white, 1);
15
        }
16
    }
17
}