Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_prefetchtex_Create_0

(view raw script w/o annotations or w/e)
1
texturepagecount = 0;
2
prog = 0;
3
loaded = false;
4
con = 0;
5
pages = [];
6
draw = false;
7
if (!variable_global_exists("prefetchtexload"))
8
{
9
    global.prefetchtexload = false;
10
}
11
else if (global.prefetchtexload == true)
12
{
13
    loaded = true;
14
    visible = false;
15
}
16
texture_groups = ["Default", "ConsolePS4"];
17
if (global.is_console)
18
{
19
    if (scr_is_switch_os())
20
        texture_groups = ["Default", "ConsoleSwitch"];
21
    array_push(texture_groups, "Console");
22
}
23
array_push(texture_groups, "AutoCrop");
24
array_push(texture_groups, "NoAutoCrop");
25
for (var i = 0; i < array_length(texture_groups); i++)
26
{
27
    var _tex_array = texturegroup_get_textures(texture_groups[i]);
28
    for (var j = 0; j < array_length(_tex_array); j++)
29
    {
30
        texturepagecount++;
31
        array_push(pages, _tex_array[j]);
32
    }
33
}