Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_darkcontroller_Draw_0

(view raw script w/o annotations or w/e)
1
xx = __view_get(e__VW.XView, 0);
2
yy = __view_get(e__VW.YView, 0);
3
tpoff = (tp - tpy) + yy;
4
bpoff = -bp + bpy + yy;
5
if (global.chapter == 3 && i_ex(obj_tenna_enemy))
6
    exit;
7
if (drawchar == 1)
8
{
9
    draw_set_color(c_black);
10
    draw_rectangle(xx - 10, (yy + 480) - bp - 1, xx + 650, yy + 500, false);
11
    draw_set_color(c_black);
12
    draw_rectangle(xx - 10, yy + tp, xx + 650, yy - 10, false);
13
    
scr_charbox
scr_charbox

function
scr_charbox()
{ for (c = 0; c < 4; c += 1) { if (havechar[c] == 1) { if (c == 0) charcolor = hpcolor[0]; if (c == 1) charcolor = hpcolor[1]; if (c == 2) charcolor = hpcolor[2]; if (c == 3) charcolor = hpcolor[3]; gc = global.charturn; xchunk = 0; if (charpos[c] == 0 && chartotal == 3) xchunk = 0; if (charpos[c] == 1 && chartotal == 3) xchunk = 213; if (charpos[c] == 2 && chartotal == 3) xchunk = 426; if (charpos[c] == 0 && chartotal == 2) xchunk = 108; if (charpos[c] == 1 && chartotal == 2) xchunk = 322; if (charpos[c] == 0 && chartotal == 1) xchunk = 213; if (gc == charpos[c]) { if (rouxlsgridenabled == false) { if (mmy[c] > -32) mmy[c] -= 2; if (mmy[c] > -24) mmy[c] -= 4; if (mmy[c] > -16) mmy[c] -= 6; if (mmy[c] > -8) mmy[c] -= 8; if (mmy[c] < -32) mmy[c] = -64; } else { if (mmy[c] > -170) mmy[c] -= 2; if (mmy[c] > -160) mmy[c] -= 4; if (mmy[c] > -150) mmy[c] -= 6; if (mmy[c] > -140) mmy[c] -= 12; if (mmy[c] > -32) mmy[c] -= 32; } } else if (rouxlsgridenabled == false) { if (mmy[c] < -14) mmy[c] += 15; else mmy[c] = 0; } else { if (mmy[c] < -14) mmy[c] += 32; if (mmy[c] > -14) mmy[c] = 0; } if (rouxlsgridenabled && mmy[c] != 0) { draw_set_color(c_black); draw_rectangle(xx + xchunk + 2, (480 - bp - 1) + yy + mmy[c], xx + xchunk + 210, (480 - bp) + yy + 0 + 33, false); } if (gc == charpos[c]) { if (global.myfight == 0) { if (rouxlsgridenabled == false) {
scr_selectionmatrix(xx + xchunk, (480 - bp) + yy);
} else { draw_rectangle(xx + xchunk, (480 - bp - 3) + yy + mmy[c], xx + xchunk + 212, 480 - bp, false); draw_set_color(c_black); draw_rectangle(xx + xchunk + 2, (480 - bp - 1) + yy + mmy[c], xx + xchunk + 210, 480 - bp, false); slmxx = xx + xchunk; slmyy = (480 - bp) + yy; s_siner += 2; draw_set_color(charcolor); draw_rectangle(slmxx, (480 - bp) + 40 + yy + mmy[c], slmxx + 212, (480 - bp) + 43 + yy + mmy[c], false); for (i = 0; i < 12; i += 1) { myxx = s_siner + (i * (10 * pi)); draw_set_alpha(sin(myxx / 60)); draw_line_width(slmxx, (slmyy - 3) + (mmy[c] * 0.75), slmxx, slmyy + 33, 2); draw_line_width(slmxx + 210 + 1, (slmyy - 3) + (mmy[c] * 0.75), slmxx + 210 + 1, slmyy + 33, 2); if (mmy[c] < -140) ...
();
14
    if (global.menuno == 0)
15
        deschaver = 0;
16
    if (deschaver == 0)
17
    {
18
        draw_sprite_ext(menu_sprite, global.menucoord[0], xx + 20, (yy + tp) - 56, 2, 2, 0, c_white, 1);
19
        msprite[0] = spr_darkitembt;
20
        msprite[1] = spr_darkequipbt;
21
        msprite[2] = spr_darktalkbt;
22
        msprite[3] = spr_darktechbt;
23
        msprite[4] = spr_darkconfigbt;
24
        for (i = 0; i < 5; i += 1)
25
        {
26
            off = 1;
27
            if (global.menucoord[0] == i)
28
                off = 0;
29
            if ((global.menuno - 1) == i)
30
                off = 2;
31
            spritemx = 0;
32
            if (i >= 2)
33
                spritemx = -100;
34
            if (i != 2)
35
                draw_sprite_ext(msprite[i], off, xx + 120 + (i * 100) + spritemx, (yy + tp) - 60, 2, 2, 0, c_white, 1);
36
        }
37
        var ymod = 0;
38
        if (global.flag[1044 points] > 0 && global.chapter == 3)
39
            ymod = -7;
40
        draw_set_color(c_white);
41
        
scr_84_set_draw_font
scr_84_set_draw_font

function
scr_84_set_draw_font(arg0)
{ global.chemg_font = arg0; draw_set_font(
scr_84_get_font(arg0));
}
("mainbig");
42
        draw_text(xx + 520, ((yy + tp) - 60) + ymod, string_hash_to_newline(stringsetsubloc("D$ ~1", string(global.gold), "obj_darkcontroller_slash_Draw_0_gml_47_0")));
43
        if (ymod != 0)
44
            draw_text(xx + 520, ((yy + tp) - 32) + ymod, string_hash_to_newline(stringsetsubloc("PTs ~1", string(global.flag[1044 points]), "obj_darkcontroller_slash_Draw_0_gml_58_0")));
45
    }
46
}
47
if (global.menuno == 5)
48
{
49
    var lang_off = langopt([90, 410, 420], [85, 412, 422]);
50
    draw_set_color(c_black);
51
    draw_rectangle(xx + 60, yy + lang_off[0], xx + 580, yy + lang_off[1], false);
52
    
scr_darkbox
scr_darkbox

function
scr_darkbox(arg0, arg1, arg2, arg3)
{ cur_jewel += 1; textbox_width = arg2 - arg0 - 63; if (textbox_width < 0) textbox_width = 0; textbox_height = arg3 - arg1 - 63; if (textbox_height < 0) textbox_height = 0; if (textbox_width > 0) { draw_sprite_stretched(spr_textbox_top, 0, arg0 + 32, arg1, textbox_width, 32); draw_sprite_ext(spr_textbox_top, 0, arg0 + 32, arg3 + 1, textbox_width, -2, 0, c_white, 1); } if (textbox_height > 0) { draw_sprite_ext(spr_textbox_left, 0, arg2 + 1, arg1 + 32, -2, textbox_height, 0, c_white, 1); draw_sprite_ext(spr_textbox_left, 0, arg0, arg1 + 32, 2, textbox_height, 0, c_white, 1); } if (global.flag[8 simplify_vfx] == 0) { draw_sprite_ext(spr_textbox_topleft, cur_jewel / 10, arg0, arg1, 2, 2, 0, c_white, 1); draw_sprite_ext(spr_textbox_topleft, cur_jewel / 10, arg2 + 1, arg1, -2, 2, 0, c_white, 1); draw_sprite_ext(spr_textbox_topleft, cur_jewel / 10, arg0, arg3 + 1, 2, -2, 0, c_white, 1); draw_sprite_ext(spr_textbox_topleft, cur_jewel / 10, arg2 + 1, arg3 + 1, -2, -2, 0, c_white, 1); } else { draw_sprite_ext(spr_textbox_topleft, 0, arg0, arg1, 2, 2, 0, c_white, 1); draw_sprite_ext(spr_textbox_topleft, 0, arg2 + 1, arg1, -2, 2, 0, c_white, 1); draw_sprite_ext(spr_textbox_topleft, 0, arg0, arg3 + 1, 2, -2, 0, c_white, 1); draw_sprite_ext(spr_textbox_topleft, 0, arg2 + 1, arg3 + 1, -2, -2, 0, c_white, 1); } }
(xx + 50, (yy + lang_off[0]) - 10, xx + 590, yy + lang_off[2]);
53
    if ((global.submenu >= 30 && global.submenu <= 33) || global.submenu == 36)
54
    {
55
        var _xPos = (global.lang == "en") ? (xx + 170) : (xx + 150);
56
        var _heartXPos = (global.lang == "en") ? (xx + 145) : (xx + 125);
57
        var _selectXPos = (global.lang == "ja" && global.is_console) ? (xx + 385) : (xx + 430);
58
        draw_set_color(c_white);
59
        draw_text(xx + 270, yy + 100, string_hash_to_newline(stringsetloc(
CONFIG
"CONFIG", "obj_darkcontroller_slash_Draw_0_gml_74_0"
)));
60
        audvol = string(round(abs(global.flag[17 audio_volume] * 100))) + "%";
61
        musvol = string(round(abs(global.flag[16 music_volume] * 100))) + "%";
62
        runoff = stringsetloc(
OFF
"OFF", "obj_darkcontroller_slash_Draw_0_gml_82_0"
);
63
        if (global.flag[11 auto_run] == 1)
64
            runoff = stringsetloc(
ON
"ON", "obj_darkcontroller_slash_Draw_0_gml_82_1"
);
65
        flashoff = stringsetloc(
OFF
"OFF", "obj_darkcontroller_slash_Draw_0_gml_83_0"
);
66
        if (global.flag[8 simplify_vfx] == 1)
67
            flashoff = stringsetloc(
ON
"ON", "obj_darkcontroller_slash_Draw_0_gml_83_1"
);
68
        shakeoff = stringsetloc(
OFF
"OFF", "obj_darkcontroller_slash_Draw_0_gml_84_0"
);
69
        if (global.flag[12 disable_shaking] == 1)
70
            shakeoff = stringsetloc(
ON
"ON", "obj_darkcontroller_slash_Draw_0_gml_84_1"
);
71
        if (!global.is_console)
72
        {
73
            fullscreenoff = stringsetloc(
OFF
"OFF", "obj_darkcontroller_slash_Draw_0_gml_87_0"
);
74
            if (window_get_fullscreen())
75
                fullscreenoff = stringsetloc(
ON
"ON", "obj_darkcontroller_slash_Draw_0_gml_87_1"
);
76
        }
77
        draw_sprite(spr_heart, 0, _heartXPos, yy + 160 + (global.submenucoord[30] * 35));
78
        if (global.submenu == 33)
79
            draw_set_color(c_yellow);
80
        draw_text(_xPos, yy + 150, string_hash_to_newline(stringsetloc(
Master Volume
"Master Volume", "obj_darkcontroller_slash_Draw_0_gml_86_0"
)));
81
        draw_text(_selectXPos, yy + 150, string_hash_to_newline(audvol));
82
        draw_set_color(c_white);
83
        draw_text(_xPos, yy + 185, string_hash_to_newline(stringsetloc(
Controls
"Controls", "obj_darkcontroller_slash_Draw_0_gml_91_0"
)));
84
        draw_text(_xPos, yy + 220, string_hash_to_newline(stringsetloc(
Simplify VFX
"Simplify VFX", "obj_darkcontroller_slash_Draw_0_gml_92_0"
)));
85
        draw_text(_selectXPos, yy + 220, string_hash_to_newline(flashoff));
86
        if (global.is_console)
87
        {
88
            draw_text(_xPos, yy + 255, string_hash_to_newline(autorun_text));
89
            draw_text(_selectXPos, yy + 255, string_hash_to_newline(runoff));
90
            if (global.submenu == 36)
91
                draw_set_color(c_yellow);
92
            else if (global.disable_border)
93
                draw_set_color(c_gray);
94
            draw_text(_xPos, yy + 290, stringsetloc(
Border
"Border", "obj_darkcontroller_slash_Draw_0_gml_112_0"
));
95
            draw_text(_selectXPos, yy + 290, border_options[selected_border]);
96
            draw_set_color(c_white);
97
            draw_text(_xPos, yy + 325, string_hash_to_newline(stringsetloc(
Return to Title
"Return to Title", "obj_darkcontroller_slash_Draw_0_gml_95_0"
)));
98
            draw_text(_xPos, yy + 360, string_hash_to_newline(back_text));
99
        }
100
        else
101
        {
102
            draw_text(_xPos, yy + 255, string_hash_to_newline(stringsetloc(
Fullscreen
"Fullscreen", "obj_darkcontroller_slash_Draw_0_gml_93_0"
)));
103
            draw_text(xx + 430, yy + 255, string_hash_to_newline(fullscreenoff));
104
            draw_text(_xPos, yy + 290, string_hash_to_newline(autorun_text));
105
            draw_text(xx + 430, yy + 290, string_hash_to_newline(runoff));
106
            draw_text(_xPos, yy + 325, string_hash_to_newline(stringsetloc(
Return to Title
"Return to Title", "obj_darkcontroller_slash_Draw_0_gml_95_0"
)));
107
            draw_text(_xPos, yy + 360, string_hash_to_newline(back_text));
108
        }
109
    }
110
    if (global.submenu == 34)
111
    {
112
    }
113
    if (global.submenu == 35)
114
    {
115
        var is_dualshock = global.gamepad_type == "Sony DualShock 4" || global.gamepad_type == "DualSense Wireless Controller";
116
        var _yOffset = (global.lang == "en") ? 0 : -4;
117
        var _headerOffset = (is_dualshock && global.lang == "ja") ? -5 : 0;
118
        draw_set_color(c_white);
119
        draw_text(xx + 105, yy + 100 + _headerOffset, string_hash_to_newline(stringsetloc(
Function
"Function", "obj_darkcontroller_slash_Draw_0_gml_113_0"
)));
120
        if (global.is_console)
121
        {
122
            var buttonXPos = (scr_is_switch_os() && global.lang == "en") ? (xx + 445) : (xx + 435);
123
            var buttonYPos = yy + 100 + _yOffset;
124
            draw_text(buttonXPos, buttonYPos, stringsetloc(
Button
"Button", "obj_darkcontroller_slash_Draw_0_gml_147_0"
));
125
        }
126
        else
127
        {
128
            draw_text(xx + 325, yy + 100 + _headerOffset, string_hash_to_newline(stringsetloc(
Key
"Key", "obj_darkcontroller_slash_Draw_0_gml_114_0"
)));
129
            if (obj_gamecontroller.gamepad_active)
130
                draw_text(xx + 435, yy + 100 + _headerOffset, string_hash_to_newline(stringsetloc(
Gamepad
"Gamepad", "obj_darkcontroller_slash_Draw_0_gml_115_0"
)));
131
        }
132
        my_function[0] = stringsetloc(
DOWN
"DOWN", "obj_darkcontroller_slash_Draw_0_gml_117_0"
);
133
        my_function[1] = stringsetloc(
RIGHT
"RIGHT", "obj_darkcontroller_slash_Draw_0_gml_118_0"
);
134
        my_function[2] = stringsetloc(
UP
"UP", "obj_darkcontroller_slash_Draw_0_gml_119_0"
);
135
        my_function[3] = stringsetloc(
LEFT
"LEFT", "obj_darkcontroller_slash_Draw_0_gml_120_0"
);
136
        my_function[4] = stringsetloc(
CONFIRM
"CONFIRM", "obj_darkcontroller_slash_Draw_0_gml_121_0"
);
137
        my_function[5] = stringsetloc(
CANCEL
"CANCEL", "obj_darkcontroller_slash_Draw_0_gml_122_0"
);
138
        my_function[6] = stringsetloc(
MENU
"MENU", "obj_darkcontroller_slash_Draw_0_gml_123_0"
);
139
        my_function[7] = stringsetloc(
Reset to default
"Reset to default", "obj_darkcontroller_slash_Draw_0_gml_124_0"
);
140
        my_function[8] = stringsetloc(
Finish
"Finish", "obj_darkcontroller_slash_Draw_0_gml_125_0"
);
141
        var voff = langopt(0, -8);
142
        var vspacing = langopt(28, 30);
143
        if (global.is_console || is_dualshock)
144
        {
145
            var _heartYPos = (global.lang == "en") ? (yy + 146) : (yy + 144);
146
            var _heartHeight = (global.lang == "en") ? 29 : 30;
147
            draw_sprite(spr_heart, 0, xx + 80, _heartYPos + (global.submenucoord[35] * _heartHeight) + _yOffset);
148
        }
149
        else
150
        {
151
            var heart_offset = (global.lang == "en") ? 28 : 29;
152
            draw_sprite(spr_heart, 0, xx + 80, (yy + 150 + (global.submenucoord[35] * heart_offset) + _yOffset) - 2);
153
        }
154
        var line_padding = (global.lang == "ja") ? 1 : 0;
155
        for (i = 0; i <= 8; i += 1)
156
        {
157
            draw_set_color(c_white);
158
            if (global.submenucoord[35] == i)
159
                draw_set_color(c_aqua);
160
            if (global.submenucoord[35] == i && control_select_con == 1)
161
                draw_set_color(c_red);
162
            if (i == 7 && control_flash_timer > 0)
163
                draw_set_color(merge_color(c_aqua, c_yellow, (control_flash_timer / 10) - 0.1));
164
            var _textYPos;
165
            if (is_dualshock)
166
            {
167
                var _textHeight = 29;
168
                _textYPos = (global.lang == "en") ? (yy + 137) : (yy + 136);
169
                draw_text(xx + 105, _textYPos + (i * (_textHeight + line_padding)) + _yOffset, string_hash_to_newline(my_function[i]));
170
            }
171
            else
172
            {
173
                draw_text(xx + 105, yy + 140 + (i * (28 + line_padding)) + _yOffset, string_hash_to_newline(my_function[i]));
174
            }
175
            if (i < 7)
176
            {
177
                if (is_dualshock)
178
                {
179
                    var _sprite = 
scr_getbuttonsprite
scr_getbuttonsprite

function
scr_getbuttonsprite(arg0, arg1)
{ var control = arg0; var isString = arg1; var button = noone; var is_dualshock = os_type == os_ps4 || global.gamepad_type == "Sony DualShock 4"; var is_dualsense = os_type == os_ps5 || global.gamepad_type == "DualSense Wireless Controller"; var button_sprite = button_questionmark; var invert = is_dualshock && (global.typer == 50 || global.typer == 70 || global.typer == 71); if (isString) { if (control == "A") { button_sprite = button_xbox_left; if (scr_is_switch_os()) { button_sprite = button_switch_left_0; } else if (is_dualshock || is_dualsense) { button_sprite = invert ? button_ps4_dpad_left_dark : button_ps4_dpad_left; if (is_dualsense) button_sprite = invert ? button_ps4_dpad_left_dark : button_ps5_dpad_left; } return button_sprite; } if (control == "D") { button_sprite = button_xbox_right; if (scr_is_switch_os()) { button_sprite = button_switch_right_0; } else if (is_dualshock || is_dualsense) { button_sprite = invert ? button_ps4_dpad_right_dark : button_ps4_dpad_right; if (is_dualsense) button_sprite = invert ? button_ps4_dpad_right_dark : button_ps5_dpad_right; } return button_sprite; } if (control == "W") { button_sprite = button_xbox_up; if (scr_is_switch_os()) { button_sprite = button_switch_up_0; } else if (is_dualshock || is_dualsense) { button_sprite = invert ? button_ps4_dpad_up_dark : button_ps4_dpad_up; if (is_dualsense) button_sprite = invert ? button_ps4_dpad_up_dark : button_ps5_dpad_up; } return button_sprite; } if (control == "S") { button_sprite = button_xbox_down; if (scr_is_switch_os()) { button_sprite = button_switch_down_0; } else if (is_dualshock || is_dualsense) { button_sprite = invert ? button_ps4_dpad_down_dark : button_ps4_dpad_down; if (is_dualsense) button_sprite = invert ? button_ps4_dpad_down_dark : button_ps5_dpad_down; } return button_sprite; } if (control == "l") { button_sprite = button_xbox_left_bumper; if (is_dualshock || is_dualsense) { button_sprite = button_ps4_l1; if (is_dualsense) button_sprite = button_ps5_l1; } if (scr_is_switch_os()) button_sprite = button_switch_l_0; return button_sprite; } if (control == "L") { button_sprite = button_xbox_left_trigger; if (is_dualshock || is_dualsense) { button_sprite = button_ps4_l2; if (is_dualsense) button_sprite = button_ps5_l2; } if (scr_is_switch_os()) button_sprite = button_switch_zl_0; return button_sprite; } if (control == "r") { button_sprite = button_xbox_right_bumper; if (is_dualshock || is_dualsense) ...
(global.input_g[i], false);
180
                    var _sprite_height = 29;
181
                    var _xPos = xx + 465;
182
                    var _yPos = yy + 139;
183
                    if (_sprite == button_ps4_dpad_up || _sprite == button_ps4_dpad_down || _sprite == button_ps4_dpad_left || _sprite == button_ps4_dpad_right)
184
                    {
185
                        _sprite_height = 30;
186
                        _yPos = _textYPos + 0.5;
187
                        _xPos = xx + 463;
188
                    }
189
                    else if (_sprite == button_ps4_options)
190
                    {
191
                        _sprite_height = 29.5;
192
                        _yPos = _textYPos + 0.5;
193
                        _xPos = xx + 460;
194
                    }
195
                    draw_sprite_ext(_sprite, 0, _xPos, _yPos + (i * (_sprite_height + line_padding)) + _yOffset, 2, 2, 0, c_white, 1);
196
                    if (!global.is_console)
197
                        draw_text(xx + 325, yy + voff + 140 + (i * vspacing), string_hash_to_newline(global.asc_def[global.input_k[i]]));
198
                }
199
                else if (global.is_console)
200
                {
201
                    if (obj_gamecontroller.gamepad_active)
202
                    {
203
                        var _sprite = (
scr_getbuttonsprite
scr_getbuttonsprite

function
scr_getbuttonsprite(arg0, arg1)
{ var control = arg0; var isString = arg1; var button = noone; var is_dualshock = os_type == os_ps4 || global.gamepad_type == "Sony DualShock 4"; var is_dualsense = os_type == os_ps5 || global.gamepad_type == "DualSense Wireless Controller"; var button_sprite = button_questionmark; var invert = is_dualshock && (global.typer == 50 || global.typer == 70 || global.typer == 71); if (isString) { if (control == "A") { button_sprite = button_xbox_left; if (scr_is_switch_os()) { button_sprite = button_switch_left_0; } else if (is_dualshock || is_dualsense) { button_sprite = invert ? button_ps4_dpad_left_dark : button_ps4_dpad_left; if (is_dualsense) button_sprite = invert ? button_ps4_dpad_left_dark : button_ps5_dpad_left; } return button_sprite; } if (control == "D") { button_sprite = button_xbox_right; if (scr_is_switch_os()) { button_sprite = button_switch_right_0; } else if (is_dualshock || is_dualsense) { button_sprite = invert ? button_ps4_dpad_right_dark : button_ps4_dpad_right; if (is_dualsense) button_sprite = invert ? button_ps4_dpad_right_dark : button_ps5_dpad_right; } return button_sprite; } if (control == "W") { button_sprite = button_xbox_up; if (scr_is_switch_os()) { button_sprite = button_switch_up_0; } else if (is_dualshock || is_dualsense) { button_sprite = invert ? button_ps4_dpad_up_dark : button_ps4_dpad_up; if (is_dualsense) button_sprite = invert ? button_ps4_dpad_up_dark : button_ps5_dpad_up; } return button_sprite; } if (control == "S") { button_sprite = button_xbox_down; if (scr_is_switch_os()) { button_sprite = button_switch_down_0; } else if (is_dualshock || is_dualsense) { button_sprite = invert ? button_ps4_dpad_down_dark : button_ps4_dpad_down; if (is_dualsense) button_sprite = invert ? button_ps4_dpad_down_dark : button_ps5_dpad_down; } return button_sprite; } if (control == "l") { button_sprite = button_xbox_left_bumper; if (is_dualshock || is_dualsense) { button_sprite = button_ps4_l1; if (is_dualsense) button_sprite = button_ps5_l1; } if (scr_is_switch_os()) button_sprite = button_switch_l_0; return button_sprite; } if (control == "L") { button_sprite = button_xbox_left_trigger; if (is_dualshock || is_dualsense) { button_sprite = button_ps4_l2; if (is_dualsense) button_sprite = button_ps5_l2; } if (scr_is_switch_os()) button_sprite = button_switch_zl_0; return button_sprite; } if (control == "r") { button_sprite = button_xbox_right_bumper; if (is_dualshock || is_dualsense) ...
(global.input_g[i], false) != noone) ?
scr_getbuttonsprite
scr_getbuttonsprite

function
scr_getbuttonsprite(arg0, arg1)
{ var control = arg0; var isString = arg1; var button = noone; var is_dualshock = os_type == os_ps4 || global.gamepad_type == "Sony DualShock 4"; var is_dualsense = os_type == os_ps5 || global.gamepad_type == "DualSense Wireless Controller"; var button_sprite = button_questionmark; var invert = is_dualshock && (global.typer == 50 || global.typer == 70 || global.typer == 71); if (isString) { if (control == "A") { button_sprite = button_xbox_left; if (scr_is_switch_os()) { button_sprite = button_switch_left_0; } else if (is_dualshock || is_dualsense) { button_sprite = invert ? button_ps4_dpad_left_dark : button_ps4_dpad_left; if (is_dualsense) button_sprite = invert ? button_ps4_dpad_left_dark : button_ps5_dpad_left; } return button_sprite; } if (control == "D") { button_sprite = button_xbox_right; if (scr_is_switch_os()) { button_sprite = button_switch_right_0; } else if (is_dualshock || is_dualsense) { button_sprite = invert ? button_ps4_dpad_right_dark : button_ps4_dpad_right; if (is_dualsense) button_sprite = invert ? button_ps4_dpad_right_dark : button_ps5_dpad_right; } return button_sprite; } if (control == "W") { button_sprite = button_xbox_up; if (scr_is_switch_os()) { button_sprite = button_switch_up_0; } else if (is_dualshock || is_dualsense) { button_sprite = invert ? button_ps4_dpad_up_dark : button_ps4_dpad_up; if (is_dualsense) button_sprite = invert ? button_ps4_dpad_up_dark : button_ps5_dpad_up; } return button_sprite; } if (control == "S") { button_sprite = button_xbox_down; if (scr_is_switch_os()) { button_sprite = button_switch_down_0; } else if (is_dualshock || is_dualsense) { button_sprite = invert ? button_ps4_dpad_down_dark : button_ps4_dpad_down; if (is_dualsense) button_sprite = invert ? button_ps4_dpad_down_dark : button_ps5_dpad_down; } return button_sprite; } if (control == "l") { button_sprite = button_xbox_left_bumper; if (is_dualshock || is_dualsense) { button_sprite = button_ps4_l1; if (is_dualsense) button_sprite = button_ps5_l1; } if (scr_is_switch_os()) button_sprite = button_switch_l_0; return button_sprite; } if (control == "L") { button_sprite = button_xbox_left_trigger; if (is_dualshock || is_dualsense) { button_sprite = button_ps4_l2; if (is_dualsense) button_sprite = button_ps5_l2; } if (scr_is_switch_os()) button_sprite = button_switch_zl_0; return button_sprite; } if (control == "r") { button_sprite = button_xbox_right_bumper; if (is_dualshock || is_dualsense) ...
(global.input_g[i], false) : button_switch_left_0;
204
                        var _xPos = (global.lang == "en") ? (xx + 475) : (xx + 465);
205
                        if (_sprite == button_switch_lStickClick_0 || _sprite == button_switch_rStickClick_0)
206
                            _xPos -= 3;
207
                        draw_sprite_ext(_sprite, 0, _xPos, yy + 144 + (i * (28 + line_padding)) + _yOffset, 2, 2, 0, c_white, 1);
208
                    }
209
                }
210
                else
211
                {
212
                    draw_text(xx + 325, yy + voff + 140 + (i * vspacing), string_hash_to_newline(global.asc_def[global.input_k[i]]));
213
                    if (obj_gamecontroller.gamepad_active)
214
                    {
215
                        var _sprite = 
scr_getbuttonsprite
scr_getbuttonsprite

function
scr_getbuttonsprite(arg0, arg1)
{ var control = arg0; var isString = arg1; var button = noone; var is_dualshock = os_type == os_ps4 || global.gamepad_type == "Sony DualShock 4"; var is_dualsense = os_type == os_ps5 || global.gamepad_type == "DualSense Wireless Controller"; var button_sprite = button_questionmark; var invert = is_dualshock && (global.typer == 50 || global.typer == 70 || global.typer == 71); if (isString) { if (control == "A") { button_sprite = button_xbox_left; if (scr_is_switch_os()) { button_sprite = button_switch_left_0; } else if (is_dualshock || is_dualsense) { button_sprite = invert ? button_ps4_dpad_left_dark : button_ps4_dpad_left; if (is_dualsense) button_sprite = invert ? button_ps4_dpad_left_dark : button_ps5_dpad_left; } return button_sprite; } if (control == "D") { button_sprite = button_xbox_right; if (scr_is_switch_os()) { button_sprite = button_switch_right_0; } else if (is_dualshock || is_dualsense) { button_sprite = invert ? button_ps4_dpad_right_dark : button_ps4_dpad_right; if (is_dualsense) button_sprite = invert ? button_ps4_dpad_right_dark : button_ps5_dpad_right; } return button_sprite; } if (control == "W") { button_sprite = button_xbox_up; if (scr_is_switch_os()) { button_sprite = button_switch_up_0; } else if (is_dualshock || is_dualsense) { button_sprite = invert ? button_ps4_dpad_up_dark : button_ps4_dpad_up; if (is_dualsense) button_sprite = invert ? button_ps4_dpad_up_dark : button_ps5_dpad_up; } return button_sprite; } if (control == "S") { button_sprite = button_xbox_down; if (scr_is_switch_os()) { button_sprite = button_switch_down_0; } else if (is_dualshock || is_dualsense) { button_sprite = invert ? button_ps4_dpad_down_dark : button_ps4_dpad_down; if (is_dualsense) button_sprite = invert ? button_ps4_dpad_down_dark : button_ps5_dpad_down; } return button_sprite; } if (control == "l") { button_sprite = button_xbox_left_bumper; if (is_dualshock || is_dualsense) { button_sprite = button_ps4_l1; if (is_dualsense) button_sprite = button_ps5_l1; } if (scr_is_switch_os()) button_sprite = button_switch_l_0; return button_sprite; } if (control == "L") { button_sprite = button_xbox_left_trigger; if (is_dualshock || is_dualsense) { button_sprite = button_ps4_l2; if (is_dualsense) button_sprite = button_ps5_l2; } if (scr_is_switch_os()) button_sprite = button_switch_zl_0; return button_sprite; } if (control == "r") { button_sprite = button_xbox_right_bumper; if (is_dualshock || is_dualsense) ...
(global.input_g[i], false);
216
                        var _xPos = (global.lang == "en") ? (xx + 475) : (xx + 465);
217
                        if (sprite_get_width(_sprite) < 12)
218
                            _xPos += 2;
219
                        draw_sprite_ext(_sprite, 0, _xPos, yy + 144 + (i * (28 + line_padding)) + _yOffset, 2, 2, 0, c_white, 1);
220
                    }
221
                }
222
            }
223
        }
224
    }
225
}
226
if (global.menuno == 4)
227
{
228
    var memxx = xx;
229
    if (global.lang == "ja")
230
        xx += -15;
231
    draw_set_color(c_black);
232
    draw_rectangle(xx + 60, yy + 90, xx + langopt(580, 612), yy + 410, false);
233
    
scr_darkbox
scr_darkbox

function
scr_darkbox(arg0, arg1, arg2, arg3)
{ cur_jewel += 1; textbox_width = arg2 - arg0 - 63; if (textbox_width < 0) textbox_width = 0; textbox_height = arg3 - arg1 - 63; if (textbox_height < 0) textbox_height = 0; if (textbox_width > 0) { draw_sprite_stretched(spr_textbox_top, 0, arg0 + 32, arg1, textbox_width, 32); draw_sprite_ext(spr_textbox_top, 0, arg0 + 32, arg3 + 1, textbox_width, -2, 0, c_white, 1); } if (textbox_height > 0) { draw_sprite_ext(spr_textbox_left, 0, arg2 + 1, arg1 + 32, -2, textbox_height, 0, c_white, 1); draw_sprite_ext(spr_textbox_left, 0, arg0, arg1 + 32, 2, textbox_height, 0, c_white, 1); } if (global.flag[8 simplify_vfx] == 0) { draw_sprite_ext(spr_textbox_topleft, cur_jewel / 10, arg0, arg1, 2, 2, 0, c_white, 1); draw_sprite_ext(spr_textbox_topleft, cur_jewel / 10, arg2 + 1, arg1, -2, 2, 0, c_white, 1); draw_sprite_ext(spr_textbox_topleft, cur_jewel / 10, arg0, arg3 + 1, 2, -2, 0, c_white, 1); draw_sprite_ext(spr_textbox_topleft, cur_jewel / 10, arg2 + 1, arg3 + 1, -2, -2, 0, c_white, 1); } else { draw_sprite_ext(spr_textbox_topleft, 0, arg0, arg1, 2, 2, 0, c_white, 1); draw_sprite_ext(spr_textbox_topleft, 0, arg2 + 1, arg1, -2, 2, 0, c_white, 1); draw_sprite_ext(spr_textbox_topleft, 0, arg0, arg3 + 1, 2, -2, 0, c_white, 1); draw_sprite_ext(spr_textbox_topleft, 0, arg2 + 1, arg3 + 1, -2, -2, 0, c_white, 1); } }
(xx + 50, yy + 80, xx + langopt(590, 622), yy + 420);
234
    draw_set_color(c_white);
235
    draw_rectangle(xx + 60, yy + 216, xx + 60 + langopt(520, 552), yy + 216 + 5, false);
236
    draw_rectangle(xx + 294, yy + 220, xx + 294 + 5, (yy + 220 + 195) - 4, false);
237
    if (global.lang == "ja")
238
        draw_rectangle(xx + 60, yy + 216, xx + 60 + 552, yy + 216 + 5, false);
239
    draw_sprite_ext(_spr_dmenu_captions, 0, xx + 124, yy + 84, 2, 2, 0, c_white, 1);
240
    draw_sprite_ext(_spr_dmenu_captions, 4, xx + 124, yy + 210, 2, 2, 0, c_white, 1);
241
    draw_sprite_ext(_spr_dmenu_captions, 5, xx + 380, yy + 210, 2, 2, 0, c_white, 1);
242
    if (global.lang == "ja")
243
        draw_sprite_ext(_spr_dmenu_captions, 6, xx + 310, yy + 225, 1, 1, 0, c_white, 1);
244
    else
245
        draw_sprite_ext(_spr_dmenu_captions, 6, xx + 340, yy + 225, 1, 1, 0, c_white, 1);
246
    coord = global.submenucoord[20];
247
    charcoord = global.char[coord];
248
    menusiner += 1;
249
    draw_set_color(c_white);
250
    
scr_84_set_draw_font
scr_84_set_draw_font

function
scr_84_set_draw_font(arg0)
{ global.chemg_font = arg0; draw_set_font(
scr_84_get_font(arg0));
}
("mainbig");
251
    draw_text(xx + 130, yy + 105, string_hash_to_newline(global.charname[charcoord]));
252
    for (i = 0; i < 3; i += 1)
253
    {
254
        chosen = 0.4;
255
        if (i == coord)
256
            chosen = 1;
257
        draw_sprite_ext(spr_equipchar_ch2, global.char[i], 90 + xx + (i * 50), 160 + yy, 2, 2, 0, c_white, chosen);
258
    }
259
    if (global.submenu == 20)
260
        draw_sprite(spr_heart_harrows, menusiner / 20, 100 + xx + (coord * 50), 141 + yy);
261
    var ch_yoff = yy + 230;
262
    var ch_vspace = langopt(25, 28);
263
    var falselv = "1";
264
    if (global.chapter == 2)
265
    {
266
        falselv = "2";
267
        if (global.plot >= 200)
268
            falselv = "3";
269
    }
270
    var ch_y;
271
    for (var ch_i = 0; ch_i < 6; ch_i++)
272
        ch_y[ch_i] = ch_yoff + (ch_i * ch_vspace);
273
    draw_set_color(c_white);
274
    draw_text(xx + 100, ch_y[0], string_hash_to_newline(stringsetloc(
Attack:
"Attack: ", "obj_darkcontroller_slash_Draw_0_gml_207_0"
)));
275
    draw_item_icon(xx + 74, ch_y[0] + 6, 1);
276
    draw_text(xx + 100, ch_y[1], string_hash_to_newline(stringsetloc(
Defense:
"Defense: ", "obj_darkcontroller_slash_Draw_0_gml_208_0"
)));
277
    draw_item_icon(xx + 74, ch_y[1] + 6, 4);
278
    draw_text(xx + 100, ch_y[2], string_hash_to_newline(stringsetloc(
Magic:
"Magic: ", "obj_darkcontroller_slash_Draw_0_gml_209_0"
)));
279
    draw_item_icon(xx + 74, ch_y[2] + 6, 5);
280
    draw_text(xx + 100, ch_y[5], string_hash_to_newline(stringsetloc(
Guts:
"Guts: ", "obj_darkcontroller_slash_Draw_0_gml_212_0"
)));
281
    draw_item_icon(xx + 74, ch_y[5] + 6, 9);
282
    char_desc = stringsetloc(
LV1
"LV1 ", "obj_darkcontroller_slash_Draw_0_gml_214_0"
);
283
    guts_amount = 0;
284
    fluff_amount = 0;
285
    asterisk_amount = 0;
286
    if (charcoord == 1)
287
    {
288
        guts_amount = 1;
289
        if (global.chapter == 2 || global.chapter == 3)
290
            guts_amount = 2;
291
        if (global.chapter < 3)
292
        {
293
            draw_set_color(c_dkgray);
294
            draw_text(xx + 100, ch_y[4], string_hash_to_newline(stringsetloc(
???
"???", "obj_darkcontroller_slash_Draw_0_gml_226_0"
)));
295
        }
296
        else
297
        {
298
            draw_set_color(c_white);
299
            if (global.flag[1255 sword_route_kills] > 0)
300
            {
301
                draw_text(xx + 100 + 130, ch_y[4], string(clamp(global.flag[1255 sword_route_kills], 0, 9999)));
302
                var memfont = draw_get_font();
303
                draw_set_font(fnt_mainbig);
304
                draw_text((xx + 100) - 26, ch_y[4], "*");
305
                draw_set_font(memfont);
306
            }
307
            else
308
            {
309
                draw_set_color(c_dkgray);
310
                draw_text(xx + 100, ch_y[4], string_hash_to_newline(stringsetloc(
???
"???", "obj_darkcontroller_slash_Draw_0_gml_416_0"
)));
311
            }
312
        }
313
        if (dograndom >= 97)
314
        {
315
            draw_set_color(c_white);
316
            draw_text(xx + 100, ch_y[3], string_hash_to_newline(stringsetloc(
Dog:
"Dog:", "obj_darkcontroller_slash_Draw_0_gml_231_0"
)));
317
            draw_sprite_ext(spr_dog_sleep, -threebuffer / 30, xx + 220, ch_y[3] + 5, 2, 2, 0, c_white, 1);
318
        }
319
        else
320
        {
321
            draw_set_color(c_dkgray);
322
            draw_text(xx + 100, ch_y[3], string_hash_to_newline(stringsetloc(
???
"???", "obj_darkcontroller_slash_Draw_0_gml_236_0"
)));
323
        }
324
        draw_set_color(c_white);
325
        if (global.chapter >= 3)
326
        {
327
            char_desc = stringsetloc(
LV3 Tactician#Commands the party#by ACTs.
"LV3 Tactician#Commands the party#by ACTs.", "obj_darkcontroller_slash_Draw_0_gml_448_0"
);
328
            if (global.plot >= 250)
329
                char_desc = stringsetloc(
LV3 Director#Moves the actors#around.
"LV3 Director#Moves the actors#around.", "obj_darkcontroller_slash_Draw_0_gml_451_0"
);
330
            if (
scr_flag_get
scr_flag_get

function
scr_flag_get(arg0)
{ var flag_value = global.flag[arg0]; return flag_value; }
(1078) > 0)
331
                char_desc = stringsetloc(
LV3 Moss Mystery#Intermediate moss#skills.
"LV3 Moss Mystery#Intermediate moss#skills.", "obj_darkcontroller_slash_Draw_0_gml_456_0"
);
332
            if (
scr_flag_get
scr_flag_get

function
scr_flag_get(arg0)
{ var flag_value = global.flag[arg0]; return flag_value; }
(1055) == 1)
333
                char_desc = stringsetloc(
LV3 Blazer#Specializes in#sword attacks.
"LV3 Blazer#Specializes in#sword attacks.", "obj_darkcontroller_slash_Draw_0_gml_461_0"
);
334
            if (
scr_flag_get
scr_flag_get

function
scr_flag_get(arg0)
{ var flag_value = global.flag[arg0]; return flag_value; }
(1055) == 3)
335
                char_desc = stringsetloc(
LV3 Ice Blazer#Specializes in#sword attacks.
"LV3 Ice Blazer#Specializes in#sword attacks.", "obj_darkcontroller_slash_Draw_0_gml_466_0"
);
336
            if (
scr_flag_get
scr_flag_get

function
scr_flag_get(arg0)
{ var flag_value = global.flag[arg0]; return flag_value; }
(1055) == 6)
337
                char_desc = stringsetloc(
LV3 Sheath#Breath quickens#around swords.
"LV3 Sheath#Breath quickens#around swords.", "obj_darkcontroller_slash_Draw_0_gml_471_0"
);
338
            if (
scr_keyitemcheck
scr_keyitemcheck

function
scr_keyitemcheck(arg0)
{ haveit = 0; itemcount = 0; for (i = 0; i < 12; i += 1) { if (global.keyitem[i] == arg0) haveit = 1; if (global.keyitem[i] == arg0) itemcount += 1; } return haveit; }
(2))
339
                char_desc = stringsetloc(
LV3 Enjoying#the youthful#days.
"LV3 Enjoying#the youthful#days.", "obj_darkcontroller_slash_Draw_0_gml_476_0"
);
340
        }
341
    }
342
    if (charcoord == 2)
343
    {
344
        guts_amount = 2;
345
        rude_amount = 100;
346
        if (global.chapter == 1)
347
        {
348
            if (global.plot >= 154)
349
                rude_amount = 99;
350
        }
351
        if (global.chapter == 2)
352
            rude_amount -= 11;
353
        if (global.chapter == 3)
354
            guts_amount = 3;
355
        draw_text(xx + 100, ch_y[3], string_hash_to_newline(stringsetloc(
Rudeness
"Rudeness ", "obj_darkcontroller_slash_Draw_0_gml_251_0"
)));
356
        draw_item_icon(xx + 74, ch_y[3] + 6, 13);
357
        draw_text(xx + 230, ch_y[3], string_hash_to_newline(rude_amount));
358
        if (global.chapter == 3)
359
        {
360
            char_desc = stringsetloc(
LV3 Dark Knight#Does damage using#dark energy.
"LV3 Dark Knight#Does damage using#dark energy.", "obj_darkcontroller_slash_Draw_0_gml_528_0"
);
361
            if (global.plot >= 250)
362
                char_desc = stringsetloc(
LV3 Dark Actor#Participates in#occult ACTs.
"LV3 Dark Actor#Participates in#occult ACTs.", "obj_darkcontroller_slash_Draw_0_gml_532_0"
);
363
            if (global.flag[1256 times_plucked_grass] <= 0)
364
            {
365
                draw_set_color(c_dkgray);
366
                draw_text(xx + 100, ch_y[4], string_hash_to_newline(stringsetloc(
???
"??? ", "obj_darkcontroller_slash_Draw_0_gml_536_0"
)));
367
                draw_set_color(c_white);
368
            }
369
            else
370
            {
371
                var grasstime = (round(get_timer()) / 1000000) * 4;
372
                draw_sprite_ext(spr_board_grabbablegrass, grasstime, xx + 66, ch_y[4] + 2, 2, 2, 0, c_white, 1);
373
                draw_text(xx + 100, ch_y[4], stringsetloc(
Plucked
"Plucked", "obj_darkcontroller_slash_Draw_0_gml_552_0"
));
374
                draw_text(xx + 230, ch_y[4], string(clamp(global.flag[1256 times_plucked_grass], 0, 99)));
375
            }
376
        }
377
    }
378
    if (charcoord == 3)
379
    {
380
        guts_amount = 0;
381
        fluff_amount = 1;
382
        kindness_amount = 100;
383
        kind_icon = 10;
384
        kind_text = stringsetloc(
Kindness
"Kindness", "obj_darkcontroller_slash_Draw_0_gml_327_0"
);
385
        if (dograndom >= 97)
386
        {
387
            kind_icon = 11;
388
            kind_text = stringsetloc(
Dogness
"Dogness", "obj_darkcontroller_slash_Draw_0_gml_331_0"
);
389
            kindness_amount = 1;
390
        }
391
        if (global.chapter == 3)
392
        {
393
            guts_amount = 1;
394
            char_desc = stringsetloc(
LV3 Dark Prince#Dark-World being.#Has friends, but...
"LV3 Dark Prince#Dark-World being.#Has friends, but...", "obj_darkcontroller_slash_Draw_0_gml_598_0"
);
395
            if (global.plot >= 250)
396
                char_desc = stringsetloc(
LV3 Dark Actor#Has issues with#method acting.
"LV3 Dark Actor#Has issues with#method acting.", "obj_darkcontroller_slash_Draw_0_gml_602_0"
);
397
            if (room == room_dw_teevie_cowboy_zone_02_after)
398
            {
399
                if (
scr_flag_get
scr_flag_get

function
scr_flag_get(arg0)
{ var flag_value = global.flag[arg0]; return flag_value; }
(1152) == 0)
400
                    char_desc = stringsetloc(
LV3 Horse#Is a horse.
"LV3 Horse#Is a horse.", "obj_darkcontroller_slash_Draw_0_gml_609_0_b"
);
401
            }
402
            if (
scr_flag_get
scr_flag_get

function
scr_flag_get(arg0)
{ var flag_value = global.flag[arg0]; return flag_value; }
(1152) == 1)
403
                char_desc = stringsetloc(
LV3 Ex-Horse#Was a horse at#some point.
"LV3 Ex-Horse#Was a horse at#some point.", "obj_darkcontroller_slash_Draw_0_gml_615_0"
);
404
            if (global.plot >= 320)
405
                char_desc = stringsetloc(
LV3 Dark Prince#Dark-World being.#Has friends.
"LV3 Dark Prince#Dark-World being.#Has friends.", "obj_darkcontroller_slash_Draw_0_gml_620_0"
);
406
            if (global.flag[1257 times_carried_ralsei] == 0)
407
            {
408
                draw_set_color(c_dkgray);
409
                draw_text(xx + 100, ch_y[3], string_hash_to_newline(stringsetloc(
???
"??? ", "obj_darkcontroller_slash_Draw_0_gml_624_0"
)));
410
                draw_set_color(c_white);
411
            }
412
            else
413
            {
414
                var ary = ch_y[3] + 14;
415
                draw_sprite_ext(spr_custommenu_arrow_nooutline, 0, xx + 44 + 38, ary, 2, 2, 180, c_white, 1);
416
                draw_sprite_ext(spr_pxwhite, 0, (xx + 44 + 38) - 12, ary + 4, 24, 8, 0, c_black, 1);
417
                draw_sprite_ext(spr_pxwhite, 0, (xx + 44 + 38) - 4, ary + 4, 8, 8, 0, c_white, 1);
418
                draw_text(xx + 100, ch_y[3], stringsetloc(
Carried
"Carried", "obj_darkcontroller_slash_Draw_0_gml_651_0"
));
419
                draw_text(xx + 230, ch_y[3], string(clamp(global.flag[1257 times_carried_ralsei], 0, 99)));
420
            }
421
        }
422
        var __scale = 0.8;
423
        if (global.lang == "ja")
424
            __scale = 1;
425
        draw_text_transformed(xx + 100, ch_y[4], string_hash_to_newline(stringsetloc(
Fluffiness
"Fluffiness", "obj_darkcontroller_slash_Draw_0_gml_286_0"
)), __scale, 1, 0);
426
        draw_item_icon(xx + 74, ch_y[4] + 6, 12);
427
        for (i = 0; i < fluff_amount; i += 1)
428
            draw_item_icon(xx + 230 + (i * 20), ch_y[4] + 6, 12);
429
    }
430
    if (charcoord == 4)
431
    {
432
        guts_amount = 0;
433
        char_desc = stringsetloc(
LV1 Snowcaster#Might be able to#use some cool moves.
"LV1 Snowcaster#Might be able to#use some cool moves.", "obj_darkcontroller_slash_Draw_0_gml_382_0"
);
434
        if (global.flag[925 iceshocks] > 0)
435
            char_desc = stringsetsubloc("LV~1 Frostmancer#Freezes the enemy.", falselv, "obj_darkcontroller_slash_Draw_0_gml_383_0");
436
        if (global.charweapon[4] == 13)
437
            char_desc = stringsetsubloc("LV~1 Ice Trancer#Receives pain to#become stronger.", falselv, "obj_darkcontroller_slash_Draw_0_gml_384_0");
438
        if (global.flag[921 noelle_moss] == 1 && 
scr_sideb_get_phase
scr_sideb_get_phase

function
scr_sideb_get_phase()
{ var phase = 0; if (global.flag[916 snowgrave_fail] == 0) { if (global.flag[915 snowgrave_plot] > 0 && global.flag[915 snowgrave_plot] < 4) phase = 1; if (global.flag[915 snowgrave_plot] >= 4 && global.flag[915 snowgrave_plot] < 7) phase = 2; if (global.flag[915 snowgrave_plot] >= 7 && global.flag[915 snowgrave_plot] < 20) phase = 3; if (global.flag[915 snowgrave_plot] >= 20) phase = 4; } return phase; } function scr_sideb_active() { return
scr_sideb_get_phase() >= 3;
}
() == 0)
439
            char_desc = stringsetsubloc("LV~1 Moss Neutral#Neither chaotic nor#lawful to moss.", falselv, "obj_darkcontroller_slash_Draw_0_gml_385_0");
440
        var coldness_amount = clamp(47 + (global.flag[925 iceshocks] * 7), 47, 100);
441
        draw_text(xx + 100, ch_y[3], string_hash_to_newline(stringsetloc(
Coldness
"Coldness ", "obj_darkcontroller_slash_Draw_0_gml_388_0"
)));
442
        draw_item_icon(xx + 74, ch_y[3] + 6, 17);
443
        draw_text(xx + 230, ch_y[3], string_hash_to_newline(coldness_amount));
444
        draw_text_transformed(xx + 100, ch_y[4], string_hash_to_newline(stringsetloc(
Boldness
"Boldness", "obj_darkcontroller_slash_Draw_0_gml_391_0"
)), langopt(0.8, 1), 1, 0);
445
        draw_item_icon(xx + 74, ch_y[4] + 6, 16);
446
        var boldness_amount = min(-12 + ((global.plot - 70) * 3), 100);
447
        draw_text(xx + 230, ch_y[4], string_hash_to_newline(boldness_amount));
448
    }
449
    draw_text(xx + 320, yy + 105, string_hash_to_newline(char_desc));
450
    var guts_xoff = langopt(0, 16);
451
    for (i = 0; i < guts_amount; i += 1)
452
        draw_item_icon(xx + 190 + (i * 20) + guts_xoff, ch_y[5] + 6, 9);
453
    atsum = global.at[global.char[coord]] + global.itemat[global.char[coord]][0] + global.itemat[global.char[coord]][1] + global.itemat[global.char[coord]][2];
454
    dfsum = global.df[global.char[coord]] + global.itemdf[global.char[coord]][0] + global.itemdf[global.char[coord]][1] + global.itemdf[global.char[coord]][2];
455
    magsum = global.mag[global.char[coord]] + global.itemmag[global.char[coord]][0] + global.itemmag[global.char[coord]][1] + global.itemmag[global.char[coord]][2];
456
    grazesum = global.grazeamt;
457
    sizesum = global.grazesize;
458
    for (i = 0; i < 3; i += 1)
459
    {
460
        for (j = 0; j < 3; j += 1)
461
        {
462
            if (global.char[i] != 0)
463
            {
464
                grazesum += global.itemgrazeamt[global.char[i]][j];
465
                sizesum += global.itemgrazesize[global.char[i]][j];
466
            }
467
        }
468
    }
469
    draw_text(xx + 230, ch_y[0], string_hash_to_newline(floor(atsum)));
470
    draw_text(xx + 230, ch_y[1], string_hash_to_newline(floor(dfsum)));
471
    draw_text(xx + 230, ch_y[2], string_hash_to_newline(floor(magsum)));
472
    var spell_xoff = langopt(0, -10);
473
    for (i = 0; i < 6; i += 1)
474
    {
475
        if (global.spell[charcoord][i] > 0)
476
        {
477
            g = 0;
478
            if (global.spellusable[charcoord][i] == 0)
479
                g = 1;
480
            if (global.spellcost[charcoord][i] > global.tension)
481
                g = 1;
482
            if (g == 0)
483
                draw_set_color(c_white);
484
            if (g == 1)
485
                draw_set_color(c_gray);
486
            if (g == 0)
487
                draw_set_color(c_white);
488
            if (global.lang == "ja")
489
                draw_text_width(xx + 310, ch_y[i], string_hash_to_newline(string(round((global.spellcost[charcoord][i] / global.maxtension) * 100)) + "%"), 42);
490
            else
491
                draw_text(xx + 340, ch_y[i], string_hash_to_newline(string(round((global.spellcost[charcoord][i] / global.maxtension) * 100)) + "%"));
492
            if (global.lang == "ja")
493
                draw_text(xx + 390 + spell_xoff, ch_y[i], string_hash_to_newline(global.spellname[charcoord][i]));
494
            else
495
                draw_text(xx + 410 + spell_xoff, ch_y[i], string_hash_to_newline(global.spellname[charcoord][i]));
496
        }
497
    }
498
    if (global.submenu == 21)
499
    {
500
        var jpxoff = 0;
501
        if (global.lang == "ja")
502
            jpxoff = 40;
503
        draw_sprite(spr_heart, 0, xx + 320 + jpxoff, yy + 240 + (global.submenucoord[21] * 25));
504
    }
505
    if (deschaver == 1)
506
    {
507
        draw_set_color(c_white);
508
        draw_text(xx + 20, yy + 10, string_hash_to_newline(global.spelldesc[charcoord][global.submenucoord[21]]));
509
    }
510
    xx = memxx;
511
}
512
if (global.menuno == 2)
513
{
514
    var memxx = xx;
515
    if (global.lang == "ja")
516
        xx -= 22;
517
    draw_set_color(c_black);
518
    var ch_vspace = langopt(27, 28);
519
    var ln_xoff1 = langopt(580, 626);
520
    var ln_xoff2 = langopt(590, 636);
521
    draw_rectangle(xx + 60, yy + 90, xx + ln_xoff1, yy + 410, false);
522
    
scr_darkbox
scr_darkbox

function
scr_darkbox(arg0, arg1, arg2, arg3)
{ cur_jewel += 1; textbox_width = arg2 - arg0 - 63; if (textbox_width < 0) textbox_width = 0; textbox_height = arg3 - arg1 - 63; if (textbox_height < 0) textbox_height = 0; if (textbox_width > 0) { draw_sprite_stretched(spr_textbox_top, 0, arg0 + 32, arg1, textbox_width, 32); draw_sprite_ext(spr_textbox_top, 0, arg0 + 32, arg3 + 1, textbox_width, -2, 0, c_white, 1); } if (textbox_height > 0) { draw_sprite_ext(spr_textbox_left, 0, arg2 + 1, arg1 + 32, -2, textbox_height, 0, c_white, 1); draw_sprite_ext(spr_textbox_left, 0, arg0, arg1 + 32, 2, textbox_height, 0, c_white, 1); } if (global.flag[8 simplify_vfx] == 0) { draw_sprite_ext(spr_textbox_topleft, cur_jewel / 10, arg0, arg1, 2, 2, 0, c_white, 1); draw_sprite_ext(spr_textbox_topleft, cur_jewel / 10, arg2 + 1, arg1, -2, 2, 0, c_white, 1); draw_sprite_ext(spr_textbox_topleft, cur_jewel / 10, arg0, arg3 + 1, 2, -2, 0, c_white, 1); draw_sprite_ext(spr_textbox_topleft, cur_jewel / 10, arg2 + 1, arg3 + 1, -2, -2, 0, c_white, 1); } else { draw_sprite_ext(spr_textbox_topleft, 0, arg0, arg1, 2, 2, 0, c_white, 1); draw_sprite_ext(spr_textbox_topleft, 0, arg2 + 1, arg1, -2, 2, 0, c_white, 1); draw_sprite_ext(spr_textbox_topleft, 0, arg0, arg3 + 1, 2, -2, 0, c_white, 1); draw_sprite_ext(spr_textbox_topleft, 0, arg2 + 1, arg3 + 1, -2, -2, 0, c_white, 1); } }
(xx + 50, yy + 80, xx + ln_xoff2, yy + 420);
523
    draw_set_color(c_white);
524
    draw_rectangle(xx + 270, yy + 91, xx + 275, yy + 91 + 135, false);
525
    var __off = 0;
526
    if (global.lang != "ja")
527
        __off = -4;
528
    draw_rectangle(xx + 59, yy + 221, xx + langopt(584, 628) + __off, yy + 221 + 5, false);
529
    draw_rectangle(xx + 323, yy + 221, xx + 323 + 5, yy + 221 + 190, false);
530
    draw_sprite_ext(_spr_dmenu_captions, 0, xx + 118, yy + 86, 2, 2, 0, c_white, 1);
531
    draw_sprite_ext(_spr_dmenu_captions, 1, xx + 376, yy + 86, 2, 2, 0, c_white, 1);
532
    if (global.submenucoord[11] == 1 || global.submenucoord[11] == 2)
533
        draw_sprite_ext(_spr_dmenu_captions, 2, xx + 372, yy + 216, 2, 2, 0, c_white, 1);
534
    else
535
        draw_sprite_ext(_spr_dmenu_captions, 3, xx + 372, yy + 216, 2, 2, 0, c_white, 1);
536
    draw_sprite_ext(_spr_dmenu_captions, 4, xx + 116, yy + 216, 2, 2, 0, c_white, 1);
537
    coord = global.submenucoord[10];
538
    charcoord = global.char[coord];
539
    menusiner += 1;
540
    draw_set_color(c_white);
541
    
scr_84_set_draw_font
scr_84_set_draw_font

function
scr_84_set_draw_font(arg0)
{ global.chemg_font = arg0; draw_set_font(
scr_84_get_font(arg0));
}
("mainbig");
542
    var charname_xoff = langopt(0, -25);
543
    draw_text(xx + 135 + charname_xoff, yy + 107, string_hash_to_newline(global.charname[charcoord]));
544
    for (i = 0; i < 3; i += 1)
545
    {
546
        chosen = 0.4;
547
        if (i == coord)
548
            chosen = 1;
549
        draw_sprite_ext(spr_equipchar_ch2, global.char[i], 90 + xx + (i * 50), 160 + yy, 2, 2, 0, c_white, chosen);
550
    }
551
    if (global.submenu == 10)
552
        draw_sprite(spr_heart_harrows, menusiner / 20, 100 + xx + (coord * 50), 142 + yy);
553
    if (global.submenu != 11)
554
    {
555
        bicon = charcoord - 1;
556
        if (charcoord == 4)
557
            bicon = 5;
558
        draw_sprite_ext(spr_dmenu_equip, bicon, xx + 302, yy + 108, 2, 2, 0, c_white, 1);
559
        draw_sprite_ext(spr_dmenu_equip, 3, xx + 302, yy + 142, 2, 2, 0, c_white, 1);
560
        draw_sprite_ext(spr_dmenu_equip, 4, xx + 302, yy + 172, 2, 2, 0, c_white, 1);
561
    }
562
    if (global.submenu == 11)
563
    {
564
        bicon = charcoord - 1;
565
        if (charcoord == 4)
566
            bicon = 5;
567
        if (global.submenucoord[11] == 0)
568
            draw_sprite(spr_heart, 0, xx + 308, yy + 122);
569
        else
570
            draw_sprite_ext(spr_dmenu_equip, bicon, xx + 302, yy + 108, 2, 2, 0, c_white, 1);
571
        if (global.submenucoord[11] == 1)
572
            draw_sprite(spr_heart, 0, xx + 308, yy + 152);
573
        else
574
            draw_sprite_ext(spr_dmenu_equip, 3, xx + 302, yy + 142, 2, 2, 0, c_white, 1);
575
        if (global.submenucoord[11] == 2)
576
            draw_sprite(spr_heart, 0, xx + 308, yy + 182);
577
        else
578
            draw_sprite_ext(spr_dmenu_equip, 4, xx + 302, yy + 172, 2, 2, 0, c_white, 1);
579
    }
580
    if (charweaponname[charcoord] != " ")
581
    {
582
        draw_text(xx + 365, yy + 112, string_hash_to_newline(charweaponname[charcoord]));
583
        draw_item_icon(xx + 343, yy + 118, charweaponicon[charcoord]);
584
    }
585
    else
586
    {
587
        draw_set_color(c_dkgray);
588
        draw_text(xx + 365, yy + 112, string_hash_to_newline(stringsetloc(
(Nothing)
"(Nothing)", "obj_darkcontroller_slash_Draw_0_gml_453_0"
)));
589
        draw_set_color(c_white);
590
    }
591
    if (global.chararmor1[charcoord] != 0)
592
    {
593
        draw_text(xx + 365, yy + 142, string_hash_to_newline(chararmor1name[charcoord]));
594
        draw_item_icon(xx + 343, yy + 148, chararmor1icon[charcoord]);
595
    }
596
    else
597
    {
598
        draw_set_color(c_dkgray);
599
        draw_text(xx + 365, yy + 142, string_hash_to_newline(stringsetloc(
(Nothing)
"(Nothing)", "obj_darkcontroller_slash_Draw_0_gml_465_0"
)));
600
        draw_set_color(c_white);
601
    }
602
    if (global.chararmor2[charcoord] != 0)
603
    {
604
        draw_text(xx + 365, yy + 172, string_hash_to_newline(chararmor2name[charcoord]));
605
        draw_item_icon(xx + 343, yy + 178, chararmor2icon[charcoord]);
606
    }
607
    else
608
    {
609
        draw_set_color(c_dkgray);
610
        draw_text(xx + 365, yy + 172, string_hash_to_newline(stringsetloc(
(Nothing)
"(Nothing)", "obj_darkcontroller_slash_Draw_0_gml_477_0"
)));
611
        draw_set_color(c_white);
612
    }
613
    var eq_xoff = langopt(0, -6);
614
    if (global.submenucoord[11] == 0)
615
    {
616
        j = 0;
617
        for (i = pagemax[0]; i < (pagemax[0] + 6); i += 1)
618
        {
619
            g = 0;
620
            if (charcoord == 1 && weaponchar1[i] == 0)
621
                g = 1;
622
            if (charcoord == 2 && weaponchar2[i] == 0)
623
                g = 1;
624
            if (charcoord == 3 && weaponchar3[i] == 0)
625
                g = 1;
626
            if (charcoord == 4 && weaponchar4[i] == 0)
627
                g = 1;
628
            if (g == 0)
629
                draw_set_color(c_white);
630
            if (g == 1)
631
                draw_set_color(c_gray);
632
            draw_item_icon(xx + 364 + eq_xoff, yy + 236 + (j * ch_vspace), weaponicon[i]);
633
            if (global.weapon[i] != 0)
634
            {
635
                draw_text(xx + 384 + eq_xoff, yy + 230 + (j * ch_vspace), string_hash_to_newline(weaponname[i]));
636
            }
637
            else
638
            {
639
                draw_set_color(c_dkgray);
640
                draw_text(xx + 384 + eq_xoff, yy + 230 + (j * ch_vspace), string_hash_to_newline(stringsetloc(
---------
"---------", "obj_darkcontroller_slash_Draw_0_gml_585_0"
)));
641
            }
642
            j += 1;
643
        }
644
    }
645
    if (global.submenucoord[11] == 1 || global.submenucoord[11] == 2)
646
    {
647
        j = 0;
648
        for (i = pagemax[1]; i < (6 + pagemax[1]); i += 1)
649
        {
650
            g = 0;
651
            if (charcoord == 1 && armorchar1[i] == 0)
652
                g = 1;
653
            if (charcoord == 2 && armorchar2[i] == 0)
654
                g = 1;
655
            if (charcoord == 3 && armorchar3[i] == 0)
656
                g = 1;
657
            if (charcoord == 4 && armorchar4[i] == 0)
658
                g = 1;
659
            if (g == 0)
660
                draw_set_color(c_white);
661
            if (g == 1)
662
                draw_set_color(c_gray);
663
            draw_item_icon(xx + 364 + eq_xoff, yy + 236 + (j * ch_vspace), armoricon[i]);
664
            if (global.armor[i] != 0)
665
            {
666
                draw_text(xx + 384 + eq_xoff, yy + 230 + (j * ch_vspace), string_hash_to_newline(armorname[i]));
667
            }
668
            else
669
            {
670
                draw_set_color(c_dkgray);
671
                draw_text(xx + 384 + eq_xoff, yy + 230 + (j * ch_vspace), string_hash_to_newline(stringsetloc(
---------
"---------", "obj_darkcontroller_slash_Draw_0_gml_609_0"
)));
672
            }
673
            j += 1;
674
        }
675
    }
676
    if (global.submenu == 12 || global.submenu == 13 || global.submenu == 14)
677
    {
678
        var __equipmenumax = 47;
679
        var scroll_xoff = langopt(0, 50);
680
        if (global.submenu == 12)
681
            pm = 0;
682
        else
683
            pm = 1;
684
        draw_sprite(spr_heart, 0, xx + 344 + eq_xoff, yy + 240 + ((global.submenucoord[global.submenu] - pagemax[pm]) * 27));
685
        draw_set_color(c_dkgray);
686
        draw_rectangle(xx + 555 + scroll_xoff, yy + 260, xx + 560 + scroll_xoff, yy + 263 + 115, false);
687
        draw_set_color(c_white);
688
        draw_rectangle(xx + 555 + scroll_xoff, (yy + 260 + (pagemax[pm] * 2.738095238095238)) - 1, xx + 560 + scroll_xoff, yy + 263 + (pagemax[pm] * 2.738095238095238) + 1, false);
689
        if (pagemax[pm] > 0)
690
            draw_sprite_ext(spr_morearrow, 0, xx + 551 + scroll_xoff, (yy + 250) - (sin(cur_jewel / 12) * 3), 1, -1, 0, c_white, 1);
691
        if ((5 + pagemax[pm]) < __equipmenumax)
692
            draw_sprite_ext(spr_morearrow, 0, xx + 551 + scroll_xoff, yy + 385 + (sin(cur_jewel / 12) * 3), 1, 1, 0, c_white, 1);
693
    }
694
    draw_set_color(c_white);
695
    var descoff = (global.lang == "en") ? 0 : 20;
696
    var txt = "";
697
    if (global.submenu == 11)
698
    {
699
        if (global.submenucoord[11] == 0)
700
            txt = charweapondesc[charcoord];
701
        if (global.submenucoord[11] == 1)
702
            txt = chararmor1desc[charcoord];
703
        if (global.submenucoord[11] == 2)
704
            txt = chararmor2desc[charcoord];
705
    }
706
    if (global.submenu == 12)
707
        txt = weapondesc[global.submenucoord[12]];
708
    if (global.submenu == 13 || global.submenu == 14)
709
        txt = armordesc[global.submenucoord[global.submenu]];
710
    if (txt != "")
711
        draw_text(xx + 20 + descoff, yy + 10, string_hash_to_newline(txt));
712
    draw_set_color(c_white);
713
    draw_text(xx + 100, yy + 230 + (ch_vspace * 0), string_hash_to_newline(stringsetloc(
Attack:
"Attack: ", "obj_darkcontroller_slash_Draw_0_gml_586_0"
)));
714
    draw_item_icon(xx + 74, yy + 236 + (ch_vspace * 0), 1);
715
    draw_text(xx + 100, yy + 230 + (ch_vspace * 1), string_hash_to_newline(stringsetloc(
Defense:
"Defense: ", "obj_darkcontroller_slash_Draw_0_gml_587_0"
)));
716
    draw_item_icon(xx + 74, yy + 236 + (ch_vspace * 1), 4);
717
    draw_text(xx + 100, yy + 230 + (ch_vspace * 2), string_hash_to_newline(stringsetloc(
Magic:
"Magic: ", "obj_darkcontroller_slash_Draw_0_gml_588_0"
)));
718
    draw_item_icon(xx + 74, yy + 236 + (ch_vspace * 2), 5);
719
    atsum = global.at[global.char[coord]] + global.itemat[global.char[coord]][0] + global.itemat[global.char[coord]][1] + global.itemat[global.char[coord]][2];
720
    dfsum = global.df[global.char[coord]] + global.itemdf[global.char[coord]][0] + global.itemdf[global.char[coord]][1] + global.itemdf[global.char[coord]][2];
721
    magsum = global.mag[global.char[coord]] + global.itemmag[global.char[coord]][0] + global.itemmag[global.char[coord]][1] + global.itemmag[global.char[coord]][2];
722
    atsum = floor(atsum);
723
    dfsum = floor(dfsum);
724
    magsum = floor(magsum);
725
    grazesum = global.grazeamt;
726
    sizesum = global.grazesize;
727
    for (i = 0; i < 3; i += 1)
728
    {
729
        for (j = 0; j < 3; j += 1)
730
        {
731
            if (global.char[i] != 0)
732
            {
733
                grazesum += global.itemgrazeamt[global.char[i]][j];
734
                sizesum += global.itemgrazesize[global.char[i]][j];
735
            }
736
        }
737
    }
738
    if (global.submenu == 12 || global.submenu == 13 || global.submenu == 14)
739
    {
740
        cur = global.submenucoord[global.submenu];
741
        g = 0;
742
        if (global.submenu == 12)
743
        {
744
            if (charcoord == 1 && weaponchar1[cur] == 0)
745
                g = 1;
746
            if (charcoord == 2 && weaponchar2[cur] == 0)
747
                g = 1;
748
            if (charcoord == 3 && weaponchar3[cur] == 0)
749
                g = 1;
750
            if (charcoord == 4 && weaponchar4[cur] == 0)
751
                g = 1;
752
        }
753
        if (global.submenu == 13 || global.submenu == 14)
754
        {
755
            if (charcoord == 1 && armorchar1[cur] == 0)
756
                g = 1;
757
            if (charcoord == 2 && armorchar2[cur] == 0)
758
                g = 1;
759
            if (charcoord == 3 && armorchar3[cur] == 0)
760
                g = 1;
761
            if (charcoord == 4 && armorchar4[cur] == 0)
762
                g = 1;
763
        }
764
        _abilitytext[0] = charweaponability[charcoord];
765
        _abilitytext[1] = chararmor1ability[charcoord];
766
        _abilitytext[2] = chararmor2ability[charcoord];
767
        _abilitycolor[0] = 4210752;
768
        _abilitycolor[1] = 4210752;
769
        _abilitycolor[2] = 4210752;
770
        _abilityicon[0] = charweaponabilityicon[charcoord];
771
        _abilityicon[1] = chararmor1abilityicon[charcoord];
772
        _abilityicon[2] = chararmor2abilityicon[charcoord];
773
        if (g == 0 && global.submenu == 12)
774
        {
775
            atup = weaponat[cur] - global.itemat[charcoord][0];
776
            dfup = weapondf[cur] - global.itemdf[charcoord][0];
777
            magup = weaponmag[cur] - global.itemmag[charcoord][0];
778
            styleup = weaponstyle[cur];
779
            grazeup = weapongrazeamt[cur] - global.itemgrazeamt[charcoord][0];
780
            sizeup = weapongrazesize[cur] - global.itemgrazesize[charcoord][0];
781
            _abilitycolor[0] = 16777215;
782
            _abilityicon[0] = weaponabilityicon[cur];
783
            if (weaponability[cur] != _abilitytext[0])
784
            {
785
                _abilitycolor[0] = 65535;
786
                if (weaponability[cur] == " ")
787
                    _abilitycolor[0] = 255;
788
            }
789
            _abilitytext[0] = weaponability[cur];
790
            draw_set_color(c_white);
791
            var atupsign = "";
792
            if (atup > 0)
793
            {
794
                draw_set_color(c_yellow);
795
                atupsign = "+";
796
            }
797
            if (atup < 0)
798
                draw_set_color(c_red);
799
            var s1_string = langopt(string(atsum + atup) + "(" + atupsign + string(atup) + ")", string(atsum + atup));
800
            draw_text(xx + 230, yy + 230 + (ch_vspace * 0), string(s1_string));
801
            draw_set_color(c_white);
802
            if (dfup > 0)
803
                draw_set_color(c_yellow);
804
            if (dfup < 0)
805
                draw_set_color(c_red);
806
            draw_text(xx + 230, yy + 230 + (ch_vspace * 1), string(dfsum + dfup));
807
            draw_set_color(c_white);
808
            if (magup > 0)
809
                draw_set_color(c_yellow);
810
            if (magup < 0)
811
                draw_set_color(c_red);
812
            draw_text(xx + 230, yy + 230 + (ch_vspace * 2), string(magsum + magup));
813
        }
814
        if (g == 0)
815
        {
816
            if (global.submenu == 13 || global.submenu == 14)
817
            {
818
                arno = global.submenu - 12;
819
                atup = armorat[cur] - global.itemat[charcoord][arno];
820
                dfup = armordf[cur] - global.itemdf[charcoord][arno];
821
                magup = armormag[cur] - global.itemmag[charcoord][arno];
822
                grazeup = armorgrazeamt[cur] - global.itemgrazeamt[charcoord][arno];
823
                sizeup = armorgrazesize[cur] - global.itemgrazesize[charcoord][arno];
824
                _abilitycolor[arno] = 16777215;
825
                _abilityicon[arno] = armorabilityicon[cur];
826
                if (armorability[cur] != _abilitytext[arno])
827
                {
828
                    _abilitycolor[arno] = 65535;
829
                    if (armorability[cur] == " ")
830
                        _abilitycolor[arno] = 255;
831
                }
832
                _abilitytext[arno] = armorability[cur];
833
                draw_set_color(c_white);
834
                if (atup > 0)
835
                    draw_set_color(c_yellow);
836
                if (atup < 0)
837
                    draw_set_color(c_red);
838
                draw_text(xx + 230, yy + 230 + (ch_vspace * 0), string(atsum + atup));
839
                draw_set_color(c_white);
840
                if (dfup > 0)
841
                    draw_set_color(c_yellow);
842
                if (dfup < 0)
843
                    draw_set_color(c_red);
844
                draw_text(xx + 230, yy + 230 + (ch_vspace * 1), string(dfsum + dfup));
845
                draw_set_color(c_white);
846
                if (magup > 0)
847
                    draw_set_color(c_yellow);
848
                if (magup < 0)
849
                    draw_set_color(c_red);
850
                draw_text(xx + 230, yy + 230 + (ch_vspace * 2), string(magsum + magup));
851
            }
852
        }
853
        if (g == 1)
854
        {
855
            draw_text(xx + 230, yy + 230 + (ch_vspace * 0), string(atsum));
856
            draw_text(xx + 230, yy + 230 + (ch_vspace * 1), string(dfsum));
857
            draw_text(xx + 230, yy + 230 + (ch_vspace * 2), string(magsum));
858
        }
859
        for (i = 0; i < 3; i += 1)
860
        {
861
            if (_abilitytext[i] == " " || _abilitytext[i] == "")
862
            {
863
                draw_set_color(_abilitycolor[i]);
864
                draw_text(xx + 100, yy + 230 + (ch_vspace * (i + 3)), string_hash_to_newline(stringsetloc(
(No ability.)
"(No ability.)", "obj_darkcontroller_slash_Draw_0_gml_766_0"
)));
865
            }
866
            else
867
            {
868
                draw_set_color(_abilitycolor[i]);
869
                draw_text(xx + 100, yy + 230 + (ch_vspace * (i + 3)), string_hash_to_newline(_abilitytext[i]));
870
                draw_set_color(c_orange);
871
                draw_item_icon(xx + 74, yy + 238 + (ch_vspace * (i + 3)), _abilityicon[i]);
872
            }
873
        }
874
    }
875
    else
876
    {
877
        draw_text(xx + 230, yy + 230 + (ch_vspace * 0), string(atsum));
878
        draw_text(xx + 230, yy + 230 + (ch_vspace * 1), string(dfsum));
879
        draw_text(xx + 230, yy + 230 + (ch_vspace * 2), string(magsum));
880
        _abilitytext[0] = charweaponability[charcoord];
881
        _abilitytext[1] = chararmor1ability[charcoord];
882
        _abilitytext[2] = chararmor2ability[charcoord];
883
        _abilitycolor[0] = 16777215;
884
        _abilitycolor[1] = 16777215;
885
        _abilitycolor[2] = 16777215;
886
        _abilityicon[0] = charweaponabilityicon[charcoord];
887
        _abilityicon[1] = chararmor1abilityicon[charcoord];
888
        _abilityicon[2] = chararmor2abilityicon[charcoord];
889
        for (i = 0; i < 3; i += 1)
890
        {
891
            if (_abilitytext[i] == " " || _abilitytext[i] == "")
892
            {
893
                draw_set_color(c_dkgray);
894
                draw_text(xx + 100, yy + 230 + (ch_vspace * (i + 3)), string_hash_to_newline(stringsetloc(
(No ability.)
"(No ability.)", "obj_darkcontroller_slash_Draw_0_gml_803_0"
)));
895
            }
896
            else
897
            {
898
                draw_set_color(_abilitycolor[i]);
899
                draw_text(xx + 100, yy + 230 + (ch_vspace * (i + 3)), string_hash_to_newline(_abilitytext[i]));
900
                draw_set_color(c_orange);
901
                draw_item_icon(xx + 74, yy + 238 + (ch_vspace * (i + 3)), _abilityicon[i]);
902
            }
903
        }
904
    }
905
    xx = memxx;
906
}
907
if (global.menuno == 1)
908
{
909
    draw_set_color(c_black);
910
    draw_rectangle(xx + langopt(70, 46), yy + 90, xx + langopt(570, 594), yy + 360, false);
911
    
scr_darkbox
scr_darkbox

function
scr_darkbox(arg0, arg1, arg2, arg3)
{ cur_jewel += 1; textbox_width = arg2 - arg0 - 63; if (textbox_width < 0) textbox_width = 0; textbox_height = arg3 - arg1 - 63; if (textbox_height < 0) textbox_height = 0; if (textbox_width > 0) { draw_sprite_stretched(spr_textbox_top, 0, arg0 + 32, arg1, textbox_width, 32); draw_sprite_ext(spr_textbox_top, 0, arg0 + 32, arg3 + 1, textbox_width, -2, 0, c_white, 1); } if (textbox_height > 0) { draw_sprite_ext(spr_textbox_left, 0, arg2 + 1, arg1 + 32, -2, textbox_height, 0, c_white, 1); draw_sprite_ext(spr_textbox_left, 0, arg0, arg1 + 32, 2, textbox_height, 0, c_white, 1); } if (global.flag[8 simplify_vfx] == 0) { draw_sprite_ext(spr_textbox_topleft, cur_jewel / 10, arg0, arg1, 2, 2, 0, c_white, 1); draw_sprite_ext(spr_textbox_topleft, cur_jewel / 10, arg2 + 1, arg1, -2, 2, 0, c_white, 1); draw_sprite_ext(spr_textbox_topleft, cur_jewel / 10, arg0, arg3 + 1, 2, -2, 0, c_white, 1); draw_sprite_ext(spr_textbox_topleft, cur_jewel / 10, arg2 + 1, arg3 + 1, -2, -2, 0, c_white, 1); } else { draw_sprite_ext(spr_textbox_topleft, 0, arg0, arg1, 2, 2, 0, c_white, 1); draw_sprite_ext(spr_textbox_topleft, 0, arg2 + 1, arg1, -2, 2, 0, c_white, 1); draw_sprite_ext(spr_textbox_topleft, 0, arg0, arg3 + 1, 2, -2, 0, c_white, 1); draw_sprite_ext(spr_textbox_topleft, 0, arg2 + 1, arg3 + 1, -2, -2, 0, c_white, 1); } }
(xx + langopt(60, 36), yy + 80, xx + langopt(580, 604), yy + 370);
912
    
scr_84_set_draw_font
scr_84_set_draw_font

function
scr_84_set_draw_font(arg0)
{ global.chemg_font = arg0; draw_set_font(
scr_84_get_font(arg0));
}
("mainbig");
913
    
scr_itemname
scr_itemname

function
scr_itemname()
{ for (i = 0; i < 12; i += 1) { itemid = global.item[i];
scr_itemnamelist();
} }
();
914
    if (global.submenu == 1)
915
        draw_sprite(spr_heart, 0, xx + langopt(155, 134) + (120 * global.submenucoord[1]), yy + 120);
916
    draw_set_color(c_white);
917
    var itemoff = langopt([180, 300, 420], [158, 278, 398]);
918
    if (global.submenu > 1)
919
    {
920
        if (global.submenucoord[1] == 0)
921
            draw_set_color(c_orange);
922
        else
923
            draw_set_color(c_gray);
924
    }
925
    draw_text(xx + itemoff[0], yy + 110, string_hash_to_newline(stringsetloc(
USE
"USE", "obj_darkcontroller_slash_Draw_0_gml_837_0"
)));
926
    if (global.submenu > 1)
927
    {
928
        if (global.submenucoord[1] == 1)
929
            draw_set_color(c_orange);
930
        else
931
            draw_set_color(c_gray);
932
    }
933
    draw_text(xx + itemoff[1], yy + 110, string_hash_to_newline(stringsetloc(
TOSS
"TOSS", "obj_darkcontroller_slash_Draw_0_gml_839_0"
)));
934
    if (global.submenu > 1)
935
    {
936
        if (global.submenucoord[1] == 2)
937
            draw_set_color(c_orange);
938
        else
939
            draw_set_color(c_gray);
940
    }
941
    draw_text(xx + itemoff[2], yy + 110, string_hash_to_newline(stringsetloc(
KEY
"KEY", "obj_darkcontroller_slash_Draw_0_gml_841_0"
)));
942
    if (global.submenu >= 2 && global.submenu <= 6 && global.submenu != 4)
943
    {
944
        sm = global.submenucoord[2];
945
        yheart = (floor(sm / 2) * 30) + 162 + yy;
946
        xheart = langopt(120, 72) + xx;
947
        if (sm == 1 || sm == 3 || sm == 5 || sm == 7 || sm == 9 || sm == 11)
948
            xheart = langopt(330, 334) + xx;
949
        if (global.submenu == 2 || global.submenu == 3)
950
            draw_sprite(spr_heart, 0, xheart, yheart);
951
        draw_set_color(c_white);
952
        draw_text(xx + 20, yy + 10, string_hash_to_newline(itemdesc[global.submenucoord[2]]));
953
    }
954
    if (global.submenu == 7)
955
    {
956
        draw_set_color(c_white);
957
        draw_text(xx + 20, yy + 10, string_hash_to_newline(stringsetsubloc("Really throw away the#~1?", global.itemname[global.submenucoord[2]], "obj_darkcontroller_slash_Draw_0_gml_956_0")));
958
    }
959
    if (global.submenucoord[1] != 2)
960
    {
961
        draw_set_color(bcolor);
962
        for (i = 0; i < 6; i += 1)
963
        {
964
            draw_text(xx + langopt(148, 94), yy + 154 + (30 * i), string_hash_to_newline(global.itemname[i * 2]));
965
            draw_text(xx + 358, yy + 154 + (30 * i), string_hash_to_newline(global.itemname[(i * 2) + 1]));
966
        }
967
        draw_set_color(c_white);
968
        if (global.submenu == 1)
969
            draw_set_color(c_gray);
970
        for (i = 0; i < 6; i += 1)
971
        {
972
            draw_text(xx + langopt(146, 92), yy + 152 + (30 * i), string_hash_to_newline(global.itemname[i * 2]));
973
            draw_text(xx + 356, yy + 152 + (30 * i), string_hash_to_newline(global.itemname[(i * 2) + 1]));
974
        }
975
    }
976
    if (global.submenucoord[1] == 2)
977
    {
978
        
scr_keyiteminfo_all
scr_keyiteminfo_all

function
scr_keyiteminfo_all()
{ for (i = 0; i < 12; i += 1) { keyitemid = global.keyitem[i]; keyitemname[i] = " ";
scr_keyiteminfo(keyitemid);
keyitemusable[i] = tempkeyitemusable; keyitemname[i] = tempkeyitemname; keyitemdesc[i] = tempkeyitemdesc; } }
();
979
        draw_set_color(bcolor);
980
        for (i = 0; i < 6; i += 1)
981
        {
982
            draw_text(xx + langopt(148, 94), yy + 154 + (30 * i), string_hash_to_newline(keyitemname[i * 2]));
983
            draw_text(xx + 358, yy + 154 + (30 * i), string_hash_to_newline(keyitemname[(i * 2) + 1]));
984
        }
985
        draw_set_color(c_white);
986
        if (global.submenu == 1)
987
            draw_set_color(c_gray);
988
        for (i = 0; i < 6; i += 1)
989
        {
990
            if (global.submenu == 4)
991
            {
992
                if (keyitemusable[i * 2] == 1)
993
                    draw_set_color(c_white);
994
                else
995
                    draw_set_color(c_ltgray);
996
            }
997
            draw_text(xx + langopt(146, 92), yy + 152 + (30 * i), string_hash_to_newline(keyitemname[i * 2]));
998
            if (global.submenu == 4)
999
            {
1000
                if (keyitemusable[(i * 2) + 1] == 1)
1001
                    draw_set_color(c_white);
1002
                else
1003
                    draw_set_color(c_ltgray);
1004
            }
1005
            draw_text(xx + 356, yy + 152 + (30 * i), string_hash_to_newline(keyitemname[(i * 2) + 1]));
1006
        }
1007
        if (global.submenu == 4)
1008
        {
1009
            sm = global.submenucoord[4];
1010
            yheart = (floor(sm / 2) * 30) + 162 + yy;
1011
            xheart = langopt(120, 72) + xx;
1012
            if (sm == 1 || sm == 3 || sm == 5 || sm == 7 || sm == 9 || sm == 11)
1013
                xheart = langopt(330, 334) + xx;
1014
            draw_sprite(spr_heart, 0, xheart, yheart);
1015
            draw_set_color(c_white);
1016
            draw_text(xx + 20, yy + 10, string_hash_to_newline(keyitemdesc[global.submenucoord[4]]));
1017
        }
1018
    }
1019
}
1020
1021
enum e__VW
1022
{
1023
    XView,
1024
    YView,
1025
    WView,
1026
    HView,
1027
    Angle,
1028
    HBorder,
1029
    VBorder,
1030
    HSpeed,
1031
    VSpeed,
1032
    Object,
1033
    Visible,
1034
    XPort,
1035
    YPort,
1036
    WPort,
1037
    HPort,
1038
    Camera,
1039
    SurfaceID
1040
}