Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_darkcontroller_Draw_0

(view raw script w/o annotations or w/e)
1
xx = camerax();
2
yy = cameray();
3
tpoff = (tp - tpy) + yy;
4
bpoff = -bp + bpy + yy;
5
if (drawchar == 1)
6
{
7
    draw_set_color(c_black);
8
    ossafe_fill_rectangle(xx - 10, (yy + 480) - bp - 1, xx + 650, yy + 500, false);
9
    draw_set_color(c_black);
10
    ossafe_fill_rectangle(xx - 10, yy + tp, xx + 650, yy - 10, false);
11
    
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 (global.myfight == 0)
scr_selectionmatrix(xx + xchunk, (480 - bp) + yy);
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] < -14) { mmy[c] += 15; } else { mmy[c] = 0; } btc[0] = 0; btc[1] = 0; btc[2] = 0; btc[3] = 0; btc[4] = 0; if (gc == charpos[c]) btc[global.bmenucoord[0][global.charturn]] = 1; if (global.fighting == 1) { spare_glow = 0; for (sglowi = 0; sglowi < 3; sglowi += 1) { if (global.monster[sglowi] == 1 && global.mercymod[sglowi] >= 100) spare_glow = 1; } pacify_glow = 0; unleash_glow = 0; if (global.charturn == 0) { if (i_ex(obj_titan_enemy) && obj_titan_enemy.phase < 6 && global.tension >= 200 && obj_titan_enemy.unleashed == false) unleash_glow = 1; if (i_ex(obj_titan_spawn_enemy) && global.tension >= 160) unleash_glow = 1; if (i_ex(obj_jackenstein_enemy) && global.tension >= 150) unleash_glow = 1; } if (c == 2 || c == 3) { for (sglowi = 0; sglowi < 3; sglowi += 1) { var tensionamount = 40; if (c == 3) tensionamount = 80; if (global.monster[sglowi] == 1 && global.monsterstatus[sglowi] == 1 && global.tension >= tensionamount) pacify_glow = 1; if (global.encounterno == 31) pacify_glow = 0; } } var icon_offset = 5; if (disablesusieattack == 1 && global.charturn == 1) draw_sprite(
scr_84_get_sprite("spr_btfight"), 2, xx + xchunk + 15 + icon_offset, (485 - bp) + yy);
else draw_sprite(
scr_84_get_sprite("spr_btfight"), btc[0], xx + xchunk + 15 + icon_offset, (485 - bp) + yy);
if (c == 0) { draw_sprite(
scr_84_get_sprite("spr_btact"), btc[1], xx + xchunk + 50 + icon_offset, (485 - bp) + yy);
if (unleash_glow == 1) draw_sprite_ext(
scr_84_get_sprite("spr_btact"), 2, xx + xchunk + 50 + icon_offset, (485 - bp) + yy, 1, 1, 0, c_white, 0.4 + (sin(global.time / 6) * 0.4));
} ...
();
12
    if (global.menuno == 0)
13
        deschaver = 0;
14
    if (deschaver == 0)
15
    {
16
        draw_sprite_ext(menu_sprite, global.menucoord[0], xx + 20, (yy + tp) - 56, 2, 2, 0, c_white, 1);
17
        msprite[0] = spr_darkitembt;
18
        msprite[1] = spr_darkequipbt;
19
        msprite[2] = spr_darktalkbt;
20
        msprite[3] = spr_darktechbt;
21
        msprite[4] = spr_darkconfigbt;
22
        for (var i = 0; i < 5; i += 1)
23
        {
24
            off = 1;
25
            if (global.menucoord[0] == i)
26
                off = 0;
27
            if ((global.menuno - 1) == i)
28
                off = 2;
29
            spritemx = 0;
30
            if (i >= 2)
31
                spritemx = -100;
32
            if (i != 2)
33
                draw_sprite_ext(msprite[i], off, xx + 120 + (i * 100) + spritemx, (yy + tp) - 60, 2, 2, 0, c_white, 1);
34
        }
35
        draw_set_color(c_white);
36
        
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");
37
        draw_text(xx + 520, (yy + tp) - 60, string_hash_to_newline(stringsetsubloc("D$ ~1", string(global.gold), "obj_darkcontroller_slash_Draw_0_gml_47_0")));
38
    }
39
}
40
if (global.menuno == 5)
41
{
42
    var lang_off = langopt([90, 410, 420], [85, 412, 422]);
43
    draw_set_color(c_black);
44
    ossafe_fill_rectangle(xx + 60, yy + lang_off[0], xx + 580, yy + lang_off[1], false);
45
    
scr_darkbox
scr_darkbox

function
scr_darkbox(arg0, arg1, arg2, arg3)
{ if (!variable_instance_exists(id, "cur_jewel")) cur_jewel = 0; 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]);
46
    if ((global.submenu >= 30 && global.submenu <= 33) || global.submenu == 36)
47
    {
48
        var _xPos = (global.lang == "en") ? (xx + 170) : (xx + 150);
49
        var _heartXPos = (global.lang == "en") ? (xx + 145) : (xx + 125);
50
        var _selectXPos = (global.lang == "ja" && global.is_console) ? (xx + 385) : (xx + 430);
51
        draw_set_color(c_white);
52
        draw_text(xx + 270, yy + 100, string_hash_to_newline(stringsetloc(
CONFIG
"CONFIG", "obj_darkcontroller_slash_Draw_0_gml_74_0"
)));
53
        audvol = string(round(abs(global.flag[17 audio_volume] * 100))) + "%";
54
        musvol = string(round(abs(global.flag[16 music_volume] * 100))) + "%";
55
        runoff = stringsetloc(
OFF
"OFF", "obj_darkcontroller_slash_Draw_0_gml_82_0"
);
56
        if (global.flag[11 auto_run] == 1)
57
            runoff = stringsetloc(
ON
"ON", "obj_darkcontroller_slash_Draw_0_gml_82_1"
);
58
        flashoff = stringsetloc(
OFF
"OFF", "obj_darkcontroller_slash_Draw_0_gml_83_0"
);
59
        if (global.flag[8 simplify_vfx] == 1)
60
            flashoff = stringsetloc(
ON
"ON", "obj_darkcontroller_slash_Draw_0_gml_83_1"
);
61
        shakeoff = stringsetloc(
OFF
"OFF", "obj_darkcontroller_slash_Draw_0_gml_84_0"
);
62
        if (global.flag[12 disable_shaking] == 1)
63
            shakeoff = stringsetloc(
ON
"ON", "obj_darkcontroller_slash_Draw_0_gml_84_1"
);
64
        if (!global.is_console)
65
        {
66
            fullscreenoff = stringsetloc(
OFF
"OFF", "obj_darkcontroller_slash_Draw_0_gml_87_0"
);
67
            if (window_get_fullscreen())
68
                fullscreenoff = stringsetloc(
ON
"ON", "obj_darkcontroller_slash_Draw_0_gml_87_1"
);
69
        }
70
        draw_sprite(spr_heart, 0, _heartXPos, yy + 160 + (global.submenucoord[30] * 35));
71
        if (global.submenu == 33)
72
            draw_set_color(c_yellow);
73
        draw_text(_xPos, yy + 150, string_hash_to_newline(stringsetloc(
Master Volume
"Master Volume", "obj_darkcontroller_slash_Draw_0_gml_86_0"
)));
74
        draw_text(_selectXPos, yy + 150, string_hash_to_newline(audvol));
75
        draw_set_color(c_white);
76
        draw_text(_xPos, yy + 185, string_hash_to_newline(stringsetloc(
Controls
"Controls", "obj_darkcontroller_slash_Draw_0_gml_91_0"
)));
77
        draw_text(_xPos, yy + 220, string_hash_to_newline(stringsetloc(
Simplify VFX
"Simplify VFX", "obj_darkcontroller_slash_Draw_0_gml_92_0"
)));
78
        draw_text(_selectXPos, yy + 220, string_hash_to_newline(flashoff));
79
        if (global.is_console)
80
        {
81
            draw_text(_xPos, yy + 255, string_hash_to_newline(autorun_text));
82
            draw_text(_selectXPos, yy + 255, string_hash_to_newline(runoff));
83
            if (global.submenu == 36)
84
                draw_set_color(c_yellow);
85
            else if (global.disable_border)
86
                draw_set_color(c_gray);
87
            draw_text(_xPos, yy + 290, stringsetloc(
Border
"Border", "obj_darkcontroller_slash_Draw_0_gml_112_0"
));
88
            draw_text(_selectXPos, yy + 290, border_options[selected_border]);
89
            draw_set_color(c_white);
90
            draw_text(_xPos, yy + 325, string_hash_to_newline(stringsetloc(
Return to Title
"Return to Title", "obj_darkcontroller_slash_Draw_0_gml_95_0"
)));
91
            draw_text(_xPos, yy + 360, string_hash_to_newline(back_text));
92
        }
93
        else
94
        {
95
            draw_text(_xPos, yy + 255, string_hash_to_newline(stringsetloc(
Fullscreen
"Fullscreen", "obj_darkcontroller_slash_Draw_0_gml_93_0"
)));
96
            draw_text(xx + 430, yy + 255, string_hash_to_newline(fullscreenoff));
97
            draw_text(_xPos, yy + 290, string_hash_to_newline(autorun_text));
98
            draw_text(xx + 430, yy + 290, string_hash_to_newline(runoff));
99
            draw_text(_xPos, yy + 325, string_hash_to_newline(stringsetloc(
Return to Title
"Return to Title", "obj_darkcontroller_slash_Draw_0_gml_95_0"
)));
100
            draw_text(_xPos, yy + 360, string_hash_to_newline(back_text));
101
        }
102
    }
103
    if (global.submenu == 34)
104
    {
105
    }
106
    if (global.submenu == 35)
107
    {
108
        var is_dualshock = global.gamepad_type == "Sony DualShock 4" || global.gamepad_type == "DualSense Wireless Controller";
109
        var _yOffset = (global.lang == "en") ? 0 : -4;
110
        var _headerOffset = (is_dualshock && global.lang == "ja") ? -5 : 0;
111
        draw_set_color(c_white);
112
        draw_text(xx + 105, yy + 100 + _headerOffset, string_hash_to_newline(stringsetloc(
Function
"Function", "obj_darkcontroller_slash_Draw_0_gml_113_0"
)));
113
        if (global.is_console)
114
        {
115
            var buttonXPos = (scr_is_switch_os() && global.lang == "en") ? (xx + 445) : (xx + 435);
116
            var buttonYPos = yy + 100 + _yOffset;
117
            draw_text(buttonXPos, buttonYPos, stringsetloc(
Button
"Button", "obj_darkcontroller_slash_Draw_0_gml_147_0"
));
118
        }
119
        else
120
        {
121
            draw_text(xx + 325, yy + 100 + _headerOffset, string_hash_to_newline(stringsetloc(
Key
"Key", "obj_darkcontroller_slash_Draw_0_gml_114_0"
)));
122
            if (obj_gamecontroller.gamepad_active)
123
                draw_text(xx + 435, yy + 100 + _headerOffset, string_hash_to_newline(stringsetloc(
Gamepad
"Gamepad", "obj_darkcontroller_slash_Draw_0_gml_115_0"
)));
124
        }
125
        my_function[0] = stringsetloc(
DOWN
"DOWN", "obj_darkcontroller_slash_Draw_0_gml_117_0"
);
126
        my_function[1] = stringsetloc(
RIGHT
"RIGHT", "obj_darkcontroller_slash_Draw_0_gml_118_0"
);
127
        my_function[2] = stringsetloc(
UP
"UP", "obj_darkcontroller_slash_Draw_0_gml_119_0"
);
128
        my_function[3] = stringsetloc(
LEFT
"LEFT", "obj_darkcontroller_slash_Draw_0_gml_120_0"
);
129
        my_function[4] = stringsetloc(
CONFIRM
"CONFIRM", "obj_darkcontroller_slash_Draw_0_gml_121_0"
);
130
        my_function[5] = stringsetloc(
CANCEL
"CANCEL", "obj_darkcontroller_slash_Draw_0_gml_122_0"
);
131
        my_function[6] = stringsetloc(
MENU
"MENU", "obj_darkcontroller_slash_Draw_0_gml_123_0"
);
132
        my_function[7] = stringsetloc(
Reset to default
"Reset to default", "obj_darkcontroller_slash_Draw_0_gml_124_0"
);
133
        my_function[8] = stringsetloc(
Finish
"Finish", "obj_darkcontroller_slash_Draw_0_gml_125_0"
);
134
        var voff = langopt(0, -8);
135
        var vspacing = langopt(28, 30);
136
        if (global.is_console || is_dualshock)
137
        {
138
            var _heartYPos = (global.lang == "en") ? (yy + 146) : (yy + 144);
139
            var _heartHeight = (global.lang == "en") ? 29 : 30;
140
            draw_sprite(spr_heart, 0, xx + 80, _heartYPos + (global.submenucoord[35] * _heartHeight) + _yOffset);
141
        }
142
        else
143
        {
144
            var heart_offset = (global.lang == "en") ? 28 : 29;
145
            draw_sprite(spr_heart, 0, xx + 80, (yy + 150 + (global.submenucoord[35] * heart_offset) + _yOffset) - 2);
146
        }
147
        var line_padding = (global.lang == "ja") ? 1 : 0;
148
        for (var i = 0; i <= 8; i += 1)
149
        {
150
            draw_set_color(c_white);
151
            if (global.submenucoord[35] == i)
152
                draw_set_color(c_aqua);
153
            if (global.submenucoord[35] == i && control_select_con == 1)
154
                draw_set_color(c_red);
155
            if (i == 7 && control_flash_timer > 0)
156
                draw_set_color(merge_color(c_aqua, c_yellow, (control_flash_timer / 10) - 0.1));
157
            var _textYPos;
158
            if (is_dualshock)
159
            {
160
                var _textHeight = 29;
161
                _textYPos = (global.lang == "en") ? (yy + 137) : (yy + 136);
162
                draw_text(xx + 105, _textYPos + (i * (_textHeight + line_padding)) + _yOffset, string_hash_to_newline(my_function[i]));
163
            }
164
            else
165
            {
166
                draw_text(xx + 105, yy + 140 + (i * (28 + line_padding)) + _yOffset, string_hash_to_newline(my_function[i]));
167
            }
168
            if (i < 7)
169
            {
170
                if (is_dualshock)
171
                {
172
                    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);
173
                    var _sprite_height = 29;
174
                    var _xPos = xx + 465;
175
                    var _yPos = yy + 139;
176
                    if (_sprite == button_ps4_dpad_up || _sprite == button_ps4_dpad_down || _sprite == button_ps4_dpad_left || _sprite == button_ps4_dpad_right)
177
                    {
178
                        _sprite_height = 30;
179
                        _yPos = _textYPos + 0.5;
180
                        _xPos = xx + 463;
181
                    }
182
                    else if (_sprite == button_ps4_options)
183
                    {
184
                        _sprite_height = 29.5;
185
                        _yPos = _textYPos + 0.5;
186
                        _xPos = xx + 460;
187
                    }
188
                    var icon_color = 16777215;
189
                    draw_sprite_ext(_sprite, 0, _xPos, _yPos + (i * (_sprite_height + line_padding)) + _yOffset, 2, 2, 0, c_white, 1);
190
                    if (!global.is_console)
191
                        draw_text(xx + 325, yy + voff + 140 + (i * vspacing), string_hash_to_newline(global.asc_def[global.input_k[i]]));
192
                }
193
                else if (global.is_console)
194
                {
195
                    if (obj_gamecontroller.gamepad_active)
196
                    {
197
                        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;
198
                        var _xPos = (global.lang == "en") ? (xx + 475) : (xx + 465);
199
                        if (_sprite == button_switch_lStickClick_0 || _sprite == button_switch_rStickClick_0)
200
                            _xPos -= 3;
201
                        draw_sprite_ext(_sprite, 0, _xPos, yy + 144 + (i * (28 + line_padding)) + _yOffset, 2, 2, 0, c_white, 1);
202
                    }
203
                }
204
                else
205
                {
206
                    draw_text(xx + 325, yy + voff + 140 + (i * vspacing), string_hash_to_newline(global.asc_def[global.input_k[i]]));
207
                    if (obj_gamecontroller.gamepad_active)
208
                    {
209
                        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);
210
                        var _xPos = (global.lang == "en") ? (xx + 475) : (xx + 465);
211
                        if (sprite_get_width(_sprite) < 12)
212
                            _xPos += 2;
213
                        draw_sprite_ext(_sprite, 0, _xPos, yy + 144 + (i * (28 + line_padding)) + _yOffset, 2, 2, 0, c_white, 1);
214
                    }
215
                }
216
            }
217
        }
218
    }
219
}
220
if (global.menuno == 4)
221
{
222
    var memxx = xx;
223
    if (global.lang == "ja")
224
        xx += -15;
225
    draw_set_color(c_black);
226
    ossafe_fill_rectangle(xx + 60, yy + 90, xx + langopt(580, 612), yy + 410, false);
227
    
scr_darkbox
scr_darkbox

function
scr_darkbox(arg0, arg1, arg2, arg3)
{ if (!variable_instance_exists(id, "cur_jewel")) cur_jewel = 0; 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);
228
    draw_set_color(c_white);
229
    ossafe_fill_rectangle(xx + 60, yy + 216, xx + 60 + langopt(520, 552), yy + 216 + 5, false);
230
    ossafe_fill_rectangle(xx + 294, yy + 220, xx + 294 + 5, (yy + 220 + 195) - 4, false);
231
    if (global.lang == "ja")
232
        ossafe_fill_rectangle(xx + 60, yy + 216, xx + 60 + 552, yy + 216 + 5, false);
233
    draw_sprite_ext(_spr_dmenu_captions, 0, xx + 124, yy + 84, 2, 2, 0, c_white, 1);
234
    draw_sprite_ext(_spr_dmenu_captions, 4, xx + 124, yy + 210, 2, 2, 0, c_white, 1);
235
    draw_sprite_ext(_spr_dmenu_captions, 5, xx + 380, yy + 210, 2, 2, 0, c_white, 1);
236
    if (global.lang == "ja")
237
        draw_sprite_ext(_spr_dmenu_captions, 6, xx + 310, yy + 225, 1, 1, 0, c_white, 1);
238
    else
239
        draw_sprite_ext(_spr_dmenu_captions, 6, xx + 340, yy + 225, 1, 1, 0, c_white, 1);
240
    coord = global.submenucoord[20];
241
    charcoord = global.char[coord];
242
    menusiner += 1;
243
    draw_set_color(c_white);
244
    
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");
245
    draw_text(xx + 130, yy + 105, string_hash_to_newline(global.charname[charcoord]));
246
    for (var i = 0; i < 3; i += 1)
247
    {
248
        chosen = 0.4;
249
        if (i == coord)
250
            chosen = 1;
251
        draw_sprite_ext(spr_equipchar_ch2, global.char[i], 90 + xx + (i * 50), 160 + yy, 2, 2, 0, c_white, chosen);
252
    }
253
    if (global.submenu == 20)
254
        draw_sprite(spr_heart_harrows, menusiner / 20, 100 + xx + (coord * 50), 141 + yy);
255
    var ch_yoff = yy + 230;
256
    var ch_vspace = langopt(25, 28);
257
    var falselv = "1";
258
    if (global.chapter == 2)
259
    {
260
        falselv = "2";
261
        if (global.plot >= 200)
262
            falselv = "3";
263
    }
264
    var ch_y;
265
    for (var ch_i = 0; ch_i < 6; ch_i++)
266
        ch_y[ch_i] = ch_yoff + (ch_i * ch_vspace);
267
    draw_set_color(c_white);
268
    draw_text(xx + 100, ch_y[0], string_hash_to_newline(stringsetloc(
Attack:
"Attack: ", "obj_darkcontroller_slash_Draw_0_gml_207_0"
)));
269
    draw_item_icon(xx + 74, ch_y[0] + 6, 1);
270
    draw_text(xx + 100, ch_y[1], string_hash_to_newline(stringsetloc(
Defense:
"Defense: ", "obj_darkcontroller_slash_Draw_0_gml_208_0"
)));
271
    draw_item_icon(xx + 74, ch_y[1] + 6, 4);
272
    draw_text(xx + 100, ch_y[2], string_hash_to_newline(stringsetloc(
Magic:
"Magic: ", "obj_darkcontroller_slash_Draw_0_gml_209_0"
)));
273
    draw_item_icon(xx + 74, ch_y[2] + 6, 5);
274
    draw_text(xx + 100, ch_y[5], string_hash_to_newline(stringsetloc(
Guts:
"Guts: ", "obj_darkcontroller_slash_Draw_0_gml_212_0"
)));
275
    draw_item_icon(xx + 74, ch_y[5] + 6, 9);
276
    char_desc = stringsetloc(
LV1
"LV1 ", "obj_darkcontroller_slash_Draw_0_gml_214_0"
);
277
    guts_amount = 0;
278
    fluff_amount = 0;
279
    asterisk_amount = 0;
280
    if (charcoord == 1)
281
    {
282
        guts_amount = 1;
283
        if (global.chapter == 2 || global.chapter == 3)
284
            guts_amount = 2;
285
        if (global.chapter == 4)
286
            guts_amount = 3;
287
        draw_set_color(c_dkgray);
288
        draw_text(xx + 100, ch_y[3], string_hash_to_newline(stringsetloc(
???
"???", "obj_darkcontroller_slash_Draw_0_gml_236_0"
)));
289
        draw_set_color(-1);
290
        if (dograndom >= 97)
291
        {
292
            draw_set_color(c_white);
293
            draw_text(xx + 100, ch_y[4], string_hash_to_newline(stringsetloc(
Dog:
"Dog:", "obj_darkcontroller_slash_Draw_0_gml_231_0"
)));
294
            draw_sprite_ext(spr_dog_sleep, -threebuffer / 30, xx + 220, ch_y[4] + 5, 2, 2, 0, c_white, 1);
295
        }
296
        else
297
        {
298
            var showstat = false;
299
            var puredcount = clamp(0, global.flag[1597], 9999);
300
            var slaincount = clamp(0, global.flag[1598], 9999);
301
            var slain = stringsetloc(
Slain
"Slain", "obj_darkcontroller_slash_Draw_0_gml_430_0"
);
302
            var purify = stringsetloc(
Purify
"Purify", "obj_darkcontroller_slash_Draw_0_gml_431_0"
);
303
            var readstring = slain;
304
            var numstring = string(slaincount);
305
            if (slaincount < puredcount)
306
            {
307
                readstring = purify;
308
                numstring = string(puredcount);
309
            }
310
            if (puredcount || slaincount)
311
                showstat = true;
312
            if (!showstat)
313
            {
314
                draw_set_color(c_dkgray);
315
                draw_text(xx + 100, ch_y[4], string_hash_to_newline(stringsetloc(
???
"???", "obj_darkcontroller_slash_Draw_0_gml_236_0"
)));
316
                draw_set_color(-1);
317
            }
318
            else
319
            {
320
                draw_set_color(-1);
321
                draw_text(xx + 100, ch_y[4], readstring);
322
                var memfont = draw_get_font();
323
                draw_set_font(fnt_mainbig);
324
                draw_text(xx + 76, ch_y[4], "*");
325
                draw_set_font(memfont);
326
                draw_text(xx + 100 + 130, ch_y[4], numstring);
327
            }
328
        }
329
        draw_set_color(c_white);
330
        if (global.chapter == 4)
331
        {
332
            char_desc = stringsetloc(
LV4 Dark Hero#Carries out fate#with the blade.
"LV4 Dark Hero#Carries out fate#with the blade.", "obj_darkcontroller_slash_Draw_0_gml_508_0"
);
333
            var moss_flags = [106, 922, 1078, 1592];
334
            var moss_title_active = true;
335
            for (var i = 0; i < array_length(moss_flags); i++)
336
            {
337
                if (
scr_flag_get
scr_flag_get

function
scr_flag_get(arg0)
{ var flag_value = global.flag[arg0]; return flag_value; } function scr_flag_name_get(arg0) { if (!global.is_console) { var v = global.flagname[arg0]; return is_undefined(v) ? "*unknown flag*" : v; } else { return ""; } } function scr_getflag(arg0) { return
scr_flag_get(arg0);
}
(moss_flags[i]) == 1)
338
                    continue;
339
                moss_title_active = false;
340
                break;
341
            }
342
            if (moss_title_active)
343
                char_desc = stringsetloc(
LV4 Moss Most#Munched the most#moist mosses.
"LV4 Moss Most#Munched the most#moist mosses.", "obj_darkcontroller_slash_Draw_0_gml_512_0"
);
344
            if (scr_sideb_active())
345
                char_desc = stringsetloc(
LV4 Dark Bead#Broken off,#but still locked.
"LV4 Dark Bead#Broken off,#but still locked.", "obj_darkcontroller_slash_Draw_0_gml_517_0"
);
346
        }
347
    }
348
    if (charcoord == 2)
349
    {
350
        guts_amount = 2;
351
        rude_amount = 100;
352
        if (global.chapter == 1)
353
        {
354
            if (global.plot >= 154)
355
                rude_amount = 99;
356
        }
357
        if (global.chapter == 2)
358
            rude_amount -= 11;
359
        if (global.chapter == 3)
360
            guts_amount = 3;
361
        if (global.chapter == 4)
362
            guts_amount = 4;
363
        draw_text(xx + 100, ch_y[3], string_hash_to_newline(stringsetloc(
Rudeness
"Rudeness ", "obj_darkcontroller_slash_Draw_0_gml_251_0"
)));
364
        draw_item_icon(xx + 74, ch_y[3] + 6, 13);
365
        draw_text(xx + 230, ch_y[3], string_hash_to_newline(rude_amount));
366
        if (global.chapter == 4)
367
        {
368
            char_desc = stringsetloc(
LV4 Dark Hero#Carries out fate#with the blade.
"LV4 Dark Hero#Carries out fate#with the blade.", "obj_darkcontroller_slash_Draw_0_gml_603_0"
);
369
            if (
scr_flag_get
scr_flag_get

function
scr_flag_get(arg0)
{ var flag_value = global.flag[arg0]; return flag_value; } function scr_flag_name_get(arg0) { if (!global.is_console) { var v = global.flagname[arg0]; return is_undefined(v) ? "*unknown flag*" : v; } else { return ""; } } function scr_getflag(arg0) { return
scr_flag_get(arg0);
}
(852) > 0)
370
                char_desc = stringsetloc(
LV4 Axe of Justice#Faces fate#with the blade.
"LV4 Axe of Justice#Faces fate#with the blade.", "obj_darkcontroller_slash_Draw_0_gml_607_0"
);
371
        }
372
        if (global.chapter >= 4)
373
        {
374
            var showstat = false;
375
            var healcount = (global.mag[1] * 5) + 15 + (2 * global.flag[1045 susie_heal_practice]);
376
            if (global.flag[1569] == 1)
377
                healcount = (global.mag[1] * 10) + (2 * global.flag[1045 susie_heal_practice]);
378
            var healing = stringsetloc(
Healing
"Healing", "obj_darkcontroller_slash_Draw_0_gml_615_0_b"
);
379
            var readstring = healing;
380
            var numstring = string(healcount);
381
            if (healcount)
382
                showstat = true;
383
            if (!showstat)
384
            {
385
                draw_set_color(c_dkgray);
386
                draw_text(xx + 100, ch_y[4], stringsetloc(
???
"???", "obj_darkcontroller_slash_Draw_0_gml_236_0"
));
387
                draw_set_color(-1);
388
            }
389
            else
390
            {
391
                draw_set_color(-1);
392
                draw_text(xx + 100, ch_y[4], readstring);
393
                var memfont = draw_get_font();
394
                draw_set_font(fnt_mainbig);
395
                draw_text(xx + 76, ch_y[4], "*");
396
                draw_set_font(memfont);
397
                draw_text(xx + 100 + 130, ch_y[4], numstring);
398
            }
399
        }
400
    }
401
    if (charcoord == 3)
402
    {
403
        guts_amount = 0;
404
        fluff_amount = 1;
405
        kindness_amount = 100;
406
        kind_icon = 10;
407
        kind_text = stringsetloc(
Kindness
"Kindness", "obj_darkcontroller_slash_Draw_0_gml_327_0"
);
408
        if (dograndom >= 97)
409
        {
410
            kind_icon = 11;
411
            kind_text = stringsetloc(
Dogness
"Dogness", "obj_darkcontroller_slash_Draw_0_gml_331_0"
);
412
            kindness_amount = 1;
413
        }
414
        if (global.chapter == 4)
415
        {
416
            char_desc = stringsetloc(
LV4 Dark Hero#Records and faces#the fate.
"LV4 Dark Hero#Records and faces#the fate.", "obj_darkcontroller_slash_Draw_0_gml_739_0"
);
417
            if (room == room_dw_church_bookcase && global.plot >= 145)
418
                char_desc = stringsetloc(
LV4 Stool Boy#Boy with stool#like abilities.
"LV4 Stool Boy#Boy with stool#like abilities.", "obj_darkcontroller_slash_Draw_0_gml_744_0"
);
419
            draw_set_color(c_dkgray);
420
            draw_text(xx + 100, ch_y[3], stringsetloc(
???
"???", "obj_darkcontroller_slash_Draw_0_gml_236_0"
));
421
            draw_set_color(-1);
422
        }
423
        var __scale = 0.8;
424
        if (global.lang == "ja")
425
            __scale = 1;
426
        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);
427
        draw_item_icon(xx + 74, ch_y[4] + 6, 12);
428
        for (var i = 0; i < fluff_amount; i += 1)
429
            draw_item_icon(xx + 230 + (i * 20), ch_y[4] + 6, 12);
430
    }
431
    if (charcoord == 4)
432
    {
433
        guts_amount = 0;
434
        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"
);
435
        if (global.flag[925 iceshocks] > 0)
436
            char_desc = stringsetsubloc("LV~1 Frostmancer#Freezes the enemy.", falselv, "obj_darkcontroller_slash_Draw_0_gml_383_0");
437
        if (global.charweapon[4] == 13)
438
            char_desc = stringsetsubloc("LV~1 Ice Trancer#Receives pain to#become stronger.", falselv, "obj_darkcontroller_slash_Draw_0_gml_384_0");
439
        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)
440
            char_desc = stringsetsubloc("LV~1 Moss Neutral#Neither chaotic nor#lawful to moss.", falselv, "obj_darkcontroller_slash_Draw_0_gml_385_0");
441
        var coldness_amount = clamp(47 + (global.flag[925 iceshocks] * 7), 47, 100);
442
        draw_text(xx + 100, ch_y[3], string_hash_to_newline(stringsetloc(
Coldness
"Coldness ", "obj_darkcontroller_slash_Draw_0_gml_388_0"
)));
443
        draw_item_icon(xx + 74, ch_y[3] + 6, 17);
444
        draw_text(xx + 230, ch_y[3], string_hash_to_newline(coldness_amount));
445
        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);
446
        draw_item_icon(xx + 74, ch_y[4] + 6, 16);
447
        var boldness_amount = min(-12 + ((global.plot - 70) * 3), 100);
448
        draw_text(xx + 230, ch_y[4], string_hash_to_newline(boldness_amount));
449
    }
450
    draw_text(xx + 320, yy + 105, string_hash_to_newline(char_desc));
451
    var guts_xoff = langopt(0, 16);
452
    for (var i = 0; i < guts_amount; i += 1)
453
        draw_item_icon(xx + 190 + (i * 20) + guts_xoff, ch_y[5] + 6, 9);
454
    atsum = global.at[global.char[coord]] + global.itemat[global.char[coord]][0] + global.itemat[global.char[coord]][1] + global.itemat[global.char[coord]][2];
455
    dfsum = global.df[global.char[coord]] + global.itemdf[global.char[coord]][0] + global.itemdf[global.char[coord]][1] + global.itemdf[global.char[coord]][2];
456
    magsum = global.mag[global.char[coord]] + global.itemmag[global.char[coord]][0] + global.itemmag[global.char[coord]][1] + global.itemmag[global.char[coord]][2];
457
    grazesum = global.grazeamt;
458
    sizesum = global.grazesize;
459
    for (var i = 0; i < 3; i += 1)
460
    {
461
        for (j = 0; j < 3; j += 1)
462
        {
463
            if (global.char[i] != 0)
464
            {
465
                grazesum += global.itemgrazeamt[global.char[i]][j];
466
                sizesum += global.itemgrazesize[global.char[i]][j];
467
            }
468
        }
469
    }
470
    draw_text(xx + 230, ch_y[0], string_hash_to_newline(floor(atsum)));
471
    draw_text(xx + 230, ch_y[1], string_hash_to_newline(floor(dfsum)));
472
    draw_text(xx + 230, ch_y[2], string_hash_to_newline(floor(magsum)));
473
    var spell_xoff = langopt(0, -10);
474
    for (var i = 0; i < 6; i += 1)
475
    {
476
        if (global.spell[charcoord][i] > 0)
477
        {
478
            g = 0;
479
            if (global.spellusable[charcoord][i] == 0)
480
                g = 1;
481
            if (global.spellcost[charcoord][i] > global.tension)
482
                g = 1;
483
            if (g == 0)
484
                draw_set_color(c_white);
485
            if (g == 1)
486
                draw_set_color(c_gray);
487
            var tpcoststring = string(floor((global.spellcost[charcoord][i] / global.maxtension) * 100)) + "%";
488
            if (tpcoststring == "102%")
489
                tpcoststring = "??%";
490
            if (global.lang == "ja")
491
                draw_text_width(xx + 310, ch_y[i], string_hash_to_newline(tpcoststring), 42);
492
            else
493
                draw_text(xx + 340, ch_y[i], string_hash_to_newline(tpcoststring));
494
            if (global.lang == "ja")
495
                draw_text(xx + 390 + spell_xoff, ch_y[i], string_hash_to_newline(global.spellname[charcoord][i]));
496
            else
497
                draw_text(xx + 410 + spell_xoff, ch_y[i], string_hash_to_newline(global.spellname[charcoord][i]));
498
        }
499
    }
500
    if (global.submenu == 21)
501
    {
502
        var jpxoff = 0;
503
        if (global.lang == "ja")
504
            jpxoff = 40;
505
        draw_sprite(spr_heart, 0, xx + 320 + jpxoff, yy + 240 + (global.submenucoord[21] * 25));
506
    }
507
    if (deschaver == 1)
508
    {
509
        draw_set_color(c_white);
510
        draw_text(xx + 20, yy + 10, string_hash_to_newline(global.spelldesc[charcoord][global.submenucoord[21]]));
511
    }
512
    xx = memxx;
513
}
514
if (global.menuno == 2)
515
{
516
    var memxx = xx;
517
    if (global.lang == "ja")
518
        xx -= 22;
519
    draw_set_color(c_black);
520
    var ch_vspace = langopt(27, 28);
521
    var ln_xoff1 = langopt(580, 626);
522
    var ln_xoff2 = langopt(590, 636);
523
    ossafe_fill_rectangle(xx + 60, yy + 90, xx + ln_xoff1, yy + 410, false);
524
    
scr_darkbox
scr_darkbox

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

function
scr_darkbox(arg0, arg1, arg2, arg3)
{ if (!variable_instance_exists(id, "cur_jewel")) cur_jewel = 0; 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);
911
    
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");
912
    
scr_itemname
scr_itemname

function
scr_itemname()
{ for (i = 0; i < 12; i += 1) { itemid = global.item[i];
scr_itemnamelist();
} }
();
913
    if (global.submenu == 1)
914
        draw_sprite(spr_heart, 0, xx + langopt(155, 134) + (120 * global.submenucoord[1]), yy + 120);
915
    draw_set_color(c_white);
916
    var itemoff = langopt([180, 300, 420], [158, 278, 398]);
917
    if (global.submenu > 1)
918
    {
919
        if (global.submenucoord[1] == 0)
920
            draw_set_color(c_orange);
921
        else
922
            draw_set_color(c_gray);
923
    }
924
    draw_text(xx + itemoff[0], yy + 110, string_hash_to_newline(stringsetloc(
USE
"USE", "obj_darkcontroller_slash_Draw_0_gml_837_0"
)));
925
    if (global.submenu > 1)
926
    {
927
        if (global.submenucoord[1] == 1)
928
            draw_set_color(c_orange);
929
        else
930
            draw_set_color(c_gray);
931
    }
932
    draw_text(xx + itemoff[1], yy + 110, string_hash_to_newline(stringsetloc(
TOSS
"TOSS", "obj_darkcontroller_slash_Draw_0_gml_839_0"
)));
933
    if (global.submenu > 1)
934
    {
935
        if (global.submenucoord[1] == 2)
936
            draw_set_color(c_orange);
937
        else
938
            draw_set_color(c_gray);
939
    }
940
    draw_text(xx + itemoff[2], yy + 110, string_hash_to_newline(stringsetloc(
KEY
"KEY", "obj_darkcontroller_slash_Draw_0_gml_841_0"
)));
941
    if (global.submenu >= 2 && global.submenu <= 6 && global.submenu != 4)
942
    {
943
        sm = global.submenucoord[2];
944
        yheart = (floor(sm / 2) * 30) + 162 + yy;
945
        xheart = langopt(120, 72) + xx;
946
        if (sm == 1 || sm == 3 || sm == 5 || sm == 7 || sm == 9 || sm == 11)
947
            xheart = langopt(330, 334) + xx;
948
        if (global.submenu == 2 || global.submenu == 3)
949
            draw_sprite(spr_heart, 0, xheart, yheart);
950
        draw_set_color(c_white);
951
        draw_text(xx + 20, yy + 10, string_hash_to_newline(itemdesc[global.submenucoord[2]]));
952
    }
953
    if (global.submenu == 7)
954
    {
955
        draw_set_color(c_white);
956
        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")));
957
    }
958
    if (global.submenucoord[1] != 2)
959
    {
960
        draw_set_color(bcolor);
961
        for (var i = 0; i < 6; i += 1)
962
        {
963
            draw_text(xx + langopt(148, 94), yy + 154 + (30 * i), string_hash_to_newline(global.itemname[i * 2]));
964
            draw_text(xx + 358, yy + 154 + (30 * i), string_hash_to_newline(global.itemname[(i * 2) + 1]));
965
        }
966
        draw_set_color(c_white);
967
        if (global.submenu == 1)
968
            draw_set_color(c_gray);
969
        for (var i = 0; i < 6; i += 1)
970
        {
971
            draw_text(xx + langopt(146, 92), yy + 152 + (30 * i), string_hash_to_newline(global.itemname[i * 2]));
972
            draw_text(xx + 356, yy + 152 + (30 * i), string_hash_to_newline(global.itemname[(i * 2) + 1]));
973
        }
974
    }
975
    if (global.submenucoord[1] == 2)
976
    {
977
        
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; } }
();
978
        draw_set_color(bcolor);
979
        for (var i = 0; i < 6; i += 1)
980
        {
981
            draw_text(xx + langopt(148, 94), yy + 154 + (30 * i), string_hash_to_newline(keyitemname[i * 2]));
982
            draw_text(xx + 358, yy + 154 + (30 * i), string_hash_to_newline(keyitemname[(i * 2) + 1]));
983
        }
984
        draw_set_color(c_white);
985
        if (global.submenu == 1)
986
            draw_set_color(c_gray);
987
        for (var i = 0; i < 6; i += 1)
988
        {
989
            if (global.submenu == 4)
990
            {
991
                if (keyitemusable[i * 2] == 1)
992
                    draw_set_color(c_white);
993
                else
994
                    draw_set_color(c_ltgray);
995
            }
996
            draw_text(xx + langopt(146, 92), yy + 152 + (30 * i), string_hash_to_newline(keyitemname[i * 2]));
997
            if (global.submenu == 4)
998
            {
999
                if (keyitemusable[(i * 2) + 1] == 1)
1000
                    draw_set_color(c_white);
1001
                else
1002
                    draw_set_color(c_ltgray);
1003
            }
1004
            draw_text(xx + 356, yy + 152 + (30 * i), string_hash_to_newline(keyitemname[(i * 2) + 1]));
1005
        }
1006
        if (global.submenu == 4)
1007
        {
1008
            sm = global.submenucoord[4];
1009
            yheart = (floor(sm / 2) * 30) + 162 + yy;
1010
            xheart = langopt(120, 72) + xx;
1011
            if (sm == 1 || sm == 3 || sm == 5 || sm == 7 || sm == 9 || sm == 11)
1012
                xheart = langopt(330, 334) + xx;
1013
            draw_sprite(spr_heart, 0, xheart, yheart);
1014
            draw_set_color(c_white);
1015
            draw_text(xx + 20, yy + 10, string_hash_to_newline(keyitemdesc[global.submenucoord[4]]));
1016
        }
1017
    }
1018
}