Deltarune (Chapter Select) script viewer

← back to main script listing

gml_Object_obj_screen_loading_Create_0

(view raw script w/o annotations or w/e)
1
_target_chapter = -1;
2
_init = false;
3
_callback = -4;
4
_initialize_text = "";
5
_font = 4;
6
7
show_loading_screen = function(arg0, arg1)
8
{
9
    _target_chapter = arg0;
10
    _callback = arg1;
11
    _initialize_text = get_text(_target_chapter);
12
    _font = get_font();
13
    _init = true;
14
    alarm[0]
 = 1;
gml_Object_obj_screen_loading_Alarm_0.gml

_callback(_target_chapter);
15
};
16
17
get_text = function(arg0)
18
{
19
    var _text = "INITIALIZING\nCHAPTER " + string(arg0);
20
    if (global.lang == "ja")
21
        _text = "CHAPTER " + string(arg0) + "を\nはじめます";
22
    if (arg0 == 0)
23
    {
24
        _text = "LOADING\nCHAPTER\nSELECT";
25
        if (global.lang == "ja")
26
            _text = "チャプター\n選択画面\nよみこみ中";
27
    }
28
    return _text;
29
};
30
31
get_font = function()
32
{
33
    return (global.lang == "en") ? 4 : 9;
34
};