Deltarune (Chapter 2) 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
    texture_groups[array_length(texture_groups)] = "Console";
22
}
23
for (var i = 0; i < array_length(texture_groups); i++)
24
{
25
    var _tex_array = texturegroup_get_textures(texture_groups[i]);
26
    for (var j = 0; j < array_length(_tex_array); j++)
27
    {
28
        texturepagecount++;
29
        array_push(pages, _tex_array[j]);
30
    }
31
}