Deltarune 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 (drawchar == 1)
6
{
7
    draw_set_color(c_black);
8
    draw_rectangle(xx - 10, (yy + 480) - bp - 1, xx + 650, yy + 500, false);
9
    draw_set_color(c_black);
10
    draw_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; 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; 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); else draw_sprite(scr_84_get_sprite("spr_bttech"), btc[1], xx + xchunk + 50 + icon_offset, (485 - bp) + yy); draw_sprite(scr_84_get_sprite("spr_btitem"), btc[2], xx + xchunk + 85 + icon_offset, (485 - bp) + yy); draw_sprite(scr_84_get_sprite("spr_btspare"), btc[3], xx + xchunk + 120 + icon_offset, (485 - bp) + yy); draw_sprite(scr_84_get_sprite("spr_btdefend"), btc[4], xx + xchunk + 155 + icon_offset, (485 - bp) + yy); if (spare_glow == 1 && gc == charpos[c]) draw_sprite_ext(scr_84_get_sprite("spr_btspare"), 2, xx + xchunk + 120 + icon_offset, (485 - bp) + yy, 1, 1, 0, c_white, 0.4 + (sin(global.time / 6) * 0.4)); if (pacify_glow == 1 && gc == charpos[c]) draw_sprite_ext(scr_84_get_sprite("spr_bttech"), 2, xx + xchunk + 50 + icon_offset, (485 - bp) + yy, 1, 1, 0, c_white, 0.4 + (sin(global.time / 6) * 0.4)); } if (gc == charpos[c]) draw_set_color(charcolor); else draw_set_color(bcolor); if (global.charselect == charpos[c] || global.charselect == 3) draw_set_color(charcolor); draw_rectangle(xx + xchunk, (480 - bp - 3) + yy + mmy[c], xx + xchunk + 212, ((480 - bp) + yy) - 2, false); ...
();
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 (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
    draw_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) { 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 = (obj_gamecontroller.gamepad_active && gamepad_get_description(obj_gamecontroller.gamepad_id) == "Sony DualShock 4") || os_type == os_ps4;
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 = (os_type == os_switch && 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 (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 || obj_gamecontroller.gamepad_type == 1; 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 (os_type == os_switch) button_sprite = button_switch_left_0; else if (is_dualshock) button_sprite = invert ? button_ps4_dpad_left_dark : button_ps4_dpad_left; return button_sprite; } if (control == "D") { button_sprite = button_xbox_right; if (os_type == os_switch) button_sprite = button_switch_right_0; else if (is_dualshock) button_sprite = invert ? button_ps4_dpad_right_dark : button_ps4_dpad_right; return button_sprite; } if (control == "W") { button_sprite = button_xbox_up; if (os_type == os_switch) button_sprite = button_switch_up_0; else if (is_dualshock) button_sprite = invert ? button_ps4_dpad_up_dark : button_ps4_dpad_up; return button_sprite; } if (control == "S") { button_sprite = button_xbox_down; if (os_type == os_switch) button_sprite = button_switch_down_0; else if (is_dualshock) button_sprite = invert ? button_ps4_dpad_down_dark : button_ps4_dpad_down; return button_sprite; } if (control == "Z") button = global.button0; if (control == "X") button = global.button1; if (control == "C") button = global.button2; } else { button = control; if (control == gp_padl) { button_sprite = button_xbox_left; if (os_type == os_switch) button_sprite = button_switch_left_0; else if (is_dualshock) button_sprite = invert ? button_ps4_dpad_left_dark : button_ps4_dpad_left; return button_sprite; } if (control == gp_padr) { button_sprite = button_xbox_right; if (os_type == os_switch) button_sprite = button_switch_right_0; else if (is_dualshock) button_sprite = invert ? button_ps4_dpad_right_dark : button_ps4_dpad_right; return button_sprite; } if (control == gp_padu) { button_sprite = button_xbox_up; if (os_type == os_switch) button_sprite = button_switch_up_0; else if (is_dualshock) button_sprite = invert ? button_ps4_dpad_up_dark : button_ps4_dpad_up; return button_sprite; } if (control == gp_padd) { button_sprite = button_xbox_down; if (os_type == os_switch) button_sprite = button_switch_down_0; else if (is_dualshock) button_sprite = invert ? button_ps4_dpad_down_dark : button_ps4_dpad_down; return button_sprite; } } if (button == gp_face1) { button_sprite = button_xbox_a; if (is_dualshock) button_sprite = button_ps4_cross_0; if (os_type == os_switch) button_sprite = button_switch_b_0; return button_sprite; ...
(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
                    draw_sprite_ext(_sprite, 0, _xPos, _yPos + (i * (_sprite_height + line_padding)) + _yOffset, 2, 2, 0, c_white, 1);
189
                    if (!global.is_console)
190
                        draw_text(xx + 325, yy + voff + 140 + (i * vspacing), string_hash_to_newline(global.asc_def[global.input_k[i]]));
191
                }
192
                else if (global.is_console)
193
                {
194
                    if (obj_gamecontroller.gamepad_active)
195
                    {
196
                        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 || obj_gamecontroller.gamepad_type == 1; 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 (os_type == os_switch) button_sprite = button_switch_left_0; else if (is_dualshock) button_sprite = invert ? button_ps4_dpad_left_dark : button_ps4_dpad_left; return button_sprite; } if (control == "D") { button_sprite = button_xbox_right; if (os_type == os_switch) button_sprite = button_switch_right_0; else if (is_dualshock) button_sprite = invert ? button_ps4_dpad_right_dark : button_ps4_dpad_right; return button_sprite; } if (control == "W") { button_sprite = button_xbox_up; if (os_type == os_switch) button_sprite = button_switch_up_0; else if (is_dualshock) button_sprite = invert ? button_ps4_dpad_up_dark : button_ps4_dpad_up; return button_sprite; } if (control == "S") { button_sprite = button_xbox_down; if (os_type == os_switch) button_sprite = button_switch_down_0; else if (is_dualshock) button_sprite = invert ? button_ps4_dpad_down_dark : button_ps4_dpad_down; return button_sprite; } if (control == "Z") button = global.button0; if (control == "X") button = global.button1; if (control == "C") button = global.button2; } else { button = control; if (control == gp_padl) { button_sprite = button_xbox_left; if (os_type == os_switch) button_sprite = button_switch_left_0; else if (is_dualshock) button_sprite = invert ? button_ps4_dpad_left_dark : button_ps4_dpad_left; return button_sprite; } if (control == gp_padr) { button_sprite = button_xbox_right; if (os_type == os_switch) button_sprite = button_switch_right_0; else if (is_dualshock) button_sprite = invert ? button_ps4_dpad_right_dark : button_ps4_dpad_right; return button_sprite; } if (control == gp_padu) { button_sprite = button_xbox_up; if (os_type == os_switch) button_sprite = button_switch_up_0; else if (is_dualshock) button_sprite = invert ? button_ps4_dpad_up_dark : button_ps4_dpad_up; return button_sprite; } if (control == gp_padd) { button_sprite = button_xbox_down; if (os_type == os_switch) button_sprite = button_switch_down_0; else if (is_dualshock) button_sprite = invert ? button_ps4_dpad_down_dark : button_ps4_dpad_down; return button_sprite; } } if (button == gp_face1) { button_sprite = button_xbox_a; if (is_dualshock) button_sprite = button_ps4_cross_0; if (os_type == os_switch) button_sprite = button_switch_b_0; return button_sprite; ...
(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 || obj_gamecontroller.gamepad_type == 1; 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 (os_type == os_switch) button_sprite = button_switch_left_0; else if (is_dualshock) button_sprite = invert ? button_ps4_dpad_left_dark : button_ps4_dpad_left; return button_sprite; } if (control == "D") { button_sprite = button_xbox_right; if (os_type == os_switch) button_sprite = button_switch_right_0; else if (is_dualshock) button_sprite = invert ? button_ps4_dpad_right_dark : button_ps4_dpad_right; return button_sprite; } if (control == "W") { button_sprite = button_xbox_up; if (os_type == os_switch) button_sprite = button_switch_up_0; else if (is_dualshock) button_sprite = invert ? button_ps4_dpad_up_dark : button_ps4_dpad_up; return button_sprite; } if (control == "S") { button_sprite = button_xbox_down; if (os_type == os_switch) button_sprite = button_switch_down_0; else if (is_dualshock) button_sprite = invert ? button_ps4_dpad_down_dark : button_ps4_dpad_down; return button_sprite; } if (control == "Z") button = global.button0; if (control == "X") button = global.button1; if (control == "C") button = global.button2; } else { button = control; if (control == gp_padl) { button_sprite = button_xbox_left; if (os_type == os_switch) button_sprite = button_switch_left_0; else if (is_dualshock) button_sprite = invert ? button_ps4_dpad_left_dark : button_ps4_dpad_left; return button_sprite; } if (control == gp_padr) { button_sprite = button_xbox_right; if (os_type == os_switch) button_sprite = button_switch_right_0; else if (is_dualshock) button_sprite = invert ? button_ps4_dpad_right_dark : button_ps4_dpad_right; return button_sprite; } if (control == gp_padu) { button_sprite = button_xbox_up; if (os_type == os_switch) button_sprite = button_switch_up_0; else if (is_dualshock) button_sprite = invert ? button_ps4_dpad_up_dark : button_ps4_dpad_up; return button_sprite; } if (control == gp_padd) { button_sprite = button_xbox_down; if (os_type == os_switch) button_sprite = button_switch_down_0; else if (is_dualshock) button_sprite = invert ? button_ps4_dpad_down_dark : button_ps4_dpad_down; return button_sprite; } } if (button == gp_face1) { button_sprite = button_xbox_a; if (is_dualshock) button_sprite = button_ps4_cross_0; if (os_type == os_switch) button_sprite = button_switch_b_0; return button_sprite; ...
(global.input_g[i], false) : button_switch_left_0;
197
                        var _xPos = (global.lang == "en") ? (xx + 475) : (xx + 465);
198
                        if (_sprite == button_switch_lStickClick_0 || _sprite == button_switch_rStickClick_0)
199
                            _xPos -= 3;
200
                        draw_sprite_ext(_sprite, 0, _xPos, yy + 144 + (i * (28 + line_padding)) + _yOffset, 2, 2, 0, c_white, 1);
201
                    }
202
                }
203
                else
204
                {
205
                    draw_text(xx + 325, yy + voff + 140 + (i * vspacing), string_hash_to_newline(global.asc_def[global.input_k[i]]));
206
                    if (obj_gamecontroller.gamepad_active)
207
                    {
208
                        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 || obj_gamecontroller.gamepad_type == 1; 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 (os_type == os_switch) button_sprite = button_switch_left_0; else if (is_dualshock) button_sprite = invert ? button_ps4_dpad_left_dark : button_ps4_dpad_left; return button_sprite; } if (control == "D") { button_sprite = button_xbox_right; if (os_type == os_switch) button_sprite = button_switch_right_0; else if (is_dualshock) button_sprite = invert ? button_ps4_dpad_right_dark : button_ps4_dpad_right; return button_sprite; } if (control == "W") { button_sprite = button_xbox_up; if (os_type == os_switch) button_sprite = button_switch_up_0; else if (is_dualshock) button_sprite = invert ? button_ps4_dpad_up_dark : button_ps4_dpad_up; return button_sprite; } if (control == "S") { button_sprite = button_xbox_down; if (os_type == os_switch) button_sprite = button_switch_down_0; else if (is_dualshock) button_sprite = invert ? button_ps4_dpad_down_dark : button_ps4_dpad_down; return button_sprite; } if (control == "Z") button = global.button0; if (control == "X") button = global.button1; if (control == "C") button = global.button2; } else { button = control; if (control == gp_padl) { button_sprite = button_xbox_left; if (os_type == os_switch) button_sprite = button_switch_left_0; else if (is_dualshock) button_sprite = invert ? button_ps4_dpad_left_dark : button_ps4_dpad_left; return button_sprite; } if (control == gp_padr) { button_sprite = button_xbox_right; if (os_type == os_switch) button_sprite = button_switch_right_0; else if (is_dualshock) button_sprite = invert ? button_ps4_dpad_right_dark : button_ps4_dpad_right; return button_sprite; } if (control == gp_padu) { button_sprite = button_xbox_up; if (os_type == os_switch) button_sprite = button_switch_up_0; else if (is_dualshock) button_sprite = invert ? button_ps4_dpad_up_dark : button_ps4_dpad_up; return button_sprite; } if (control == gp_padd) { button_sprite = button_xbox_down; if (os_type == os_switch) button_sprite = button_switch_down_0; else if (is_dualshock) button_sprite = invert ? button_ps4_dpad_down_dark : button_ps4_dpad_down; return button_sprite; } } if (button == gp_face1) { button_sprite = button_xbox_a; if (is_dualshock) button_sprite = button_ps4_cross_0; if (os_type == os_switch) button_sprite = button_switch_b_0; return button_sprite; ...
(global.input_g[i], false);
209
                        var _xPos = (global.lang == "en") ? (xx + 475) : (xx + 465);
210
                        if (sprite_get_width(_sprite) < 12)
211
                            _xPos += 2;
212
                        draw_sprite_ext(_sprite, 0, _xPos, yy + 144 + (i * (28 + line_padding)) + _yOffset, 2, 2, 0, c_white, 1);
213
                    }
214
                }
215
            }
216
        }
217
    }
218
}
219
if (global.menuno == 4)
220
{
221
    draw_set_color(c_black);
222
    draw_rectangle(xx + 60, yy + 90, xx + langopt(580, 612), yy + 410, false);
223
    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);
224
    draw_set_color(c_white);
225
    draw_rectangle(xx + 60, yy + 216, xx + 60 + langopt(520, 552), yy + 216 + 5, false);
226
    draw_rectangle(xx + 294, yy + 220, xx + 294 + 5, yy + 220 + 195, false);
227
    if (global.lang == "ja")
228
        draw_rectangle(xx + 60, yy + 216, xx + 60 + 552, yy + 216 + 5, false);
229
    draw_sprite_ext(scr_84_get_sprite
scr_84_get_sprite

function scr_84_get_sprite(arg0) { return ds_map_find_value(global.chemg_sprite_map, arg0); }
("spr_dmenu_captions"), 0, xx + 124, yy + 84, 2, 2, 0, c_white, 1);
230
    draw_sprite_ext(scr_84_get_sprite
scr_84_get_sprite

function scr_84_get_sprite(arg0) { return ds_map_find_value(global.chemg_sprite_map, arg0); }
("spr_dmenu_captions"), 4, xx + 124, yy + 210, 2, 2, 0, c_white, 1);
231
    draw_sprite_ext(scr_84_get_sprite
scr_84_get_sprite

function scr_84_get_sprite(arg0) { return ds_map_find_value(global.chemg_sprite_map, arg0); }
("spr_dmenu_captions"), 5, xx + 380, yy + 210, 2, 2, 0, c_white, 1);
232
    if (global.lang == "ja")
233
        draw_sprite_ext(spr_dmenu_captions, 6, xx + 310, yy + 225, 1, 1, 0, c_white, 1);
234
    else
235
        draw_sprite_ext(spr_dmenu_captions, 6, xx + 340, yy + 225, 1, 1, 0, c_white, 1);
236
    coord = global.submenucoord[20];
237
    charcoord = global.char[coord];
238
    menusiner += 1;
239
    draw_set_color(c_white);
240
    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");
241
    draw_text(xx + 130, yy + 105, string_hash_to_newline(global.charname[charcoord]));
242
    for (i = 0; i < 3; i += 1)
243
    {
244
        chosen = 0.4;
245
        if (i == coord)
246
            chosen = 1;
247
        draw_sprite_ext(spr_equipchar_ch2, global.char[i], 90 + xx + (i * 50), 160 + yy, 2, 2, 0, c_white, chosen);
248
    }
249
    if (global.submenu == 20)
250
        draw_sprite(spr_heart_harrows, menusiner / 20, 100 + xx + (coord * 50), 141 + yy);
251
    var ch_yoff = yy + 230;
252
    var ch_vspace = langopt(25, 28);
253
    var falselv = "1";
254
    if (global.chapter == 2)
255
    {
256
        falselv = "2";
257
        if (global.plot >= 200)
258
            falselv = "3";
259
    }
260
    var ch_y;
261
    for (var ch_i = 0; ch_i < 6; ch_i++)
262
        ch_y[ch_i] = ch_yoff + (ch_i * ch_vspace);
263
    draw_set_color(c_white);
264
    draw_text(xx + 100, ch_y[0], string_hash_to_newline(stringsetloc(
Attack:
"Attack: ", "obj_darkcontroller_slash_Draw_0_gml_207_0"
)));
265
    draw_item_icon(xx + 74, ch_y[0] + 6, 1);
266
    draw_text(xx + 100, ch_y[1], string_hash_to_newline(stringsetloc(
Defense:
"Defense: ", "obj_darkcontroller_slash_Draw_0_gml_208_0"
)));
267
    draw_item_icon(xx + 74, ch_y[1] + 6, 4);
268
    draw_text(xx + 100, ch_y[2], string_hash_to_newline(stringsetloc(
Magic:
"Magic: ", "obj_darkcontroller_slash_Draw_0_gml_209_0"
)));
269
    draw_item_icon(xx + 74, ch_y[2] + 6, 5);
270
    draw_text(xx + 100, ch_y[5], string_hash_to_newline(stringsetloc(
Guts:
"Guts: ", "obj_darkcontroller_slash_Draw_0_gml_212_0"
)));
271
    draw_item_icon(xx + 74, ch_y[5] + 6, 9);
272
    char_desc = stringsetloc(
LV1
"LV1 ", "obj_darkcontroller_slash_Draw_0_gml_214_0"
);
273
    guts_amount = 0;
274
    fluff_amount = 0;
275
    if (charcoord == 1)
276
    {
277
        guts_amount = 1;
278
        if (global.chapter == 2)
279
            guts_amount = 2;
280
        draw_set_color(c_dkgray);
281
        draw_text(xx + 100, ch_y[4], string_hash_to_newline(stringsetloc(
???
"???", "obj_darkcontroller_slash_Draw_0_gml_226_0"
)));
282
        if (dograndom >= 97)
283
        {
284
            draw_set_color(c_white);
285
            draw_text(xx + 100, ch_y[3], string_hash_to_newline(stringsetloc(
Dog:
"Dog:", "obj_darkcontroller_slash_Draw_0_gml_231_0"
)));
286
            draw_sprite_ext(spr_dog_sleep, -threebuffer / 30, xx + 220, ch_y[3] + 5, 2, 2, 0, c_white, 1);
287
        }
288
        else
289
        {
290
            draw_text(xx + 100, ch_y[3], string_hash_to_newline(stringsetloc(
???
"???", "obj_darkcontroller_slash_Draw_0_gml_236_0"
)));
291
        }
292
        draw_set_color(c_white);
293
        if (global.chapter == 1)
294
        {
295
            char_desc = stringsetloc(
LV1 Human#Body contains a#human SOUL.
"LV1 Human#Body contains a#human SOUL.", "obj_darkcontroller_slash_Draw_0_gml_239_0"
);
296
            if (global.plot >= 30)
297
                char_desc = stringsetloc(
LV1 Leader#Commands the party#with various ACTs.
"LV1 Leader#Commands the party#with various ACTs.", "obj_darkcontroller_slash_Draw_0_gml_240_0"
);
298
            if (global.flag[252 inspected_beds_ch1] == 1)
299
                char_desc = stringsetloc(
LV1 Bed Inspector#Inspects all beds#inexplicably.
"LV1 Bed Inspector#Inspects all beds#inexplicably.", "obj_darkcontroller_slash_Draw_0_gml_241_0"
);
300
        }
301
        if (global.chapter >= 2)
302
        {
303
            char_desc = stringsetsubloc("LV~1 Leader#Commands the party#with various ACTs.", falselv, "obj_darkcontroller_slash_Draw_0_gml_272_0_b");
304
            if (global.plot >= 60)
305
                char_desc = stringsetsubloc("LV~1 Tactician#Commands the party#by ACTs. Sometimes.", falselv, "obj_darkcontroller_slash_Draw_0_gml_273_0");
306
            if (global.flag[252 inspected_beds_ch1] == 1)
307
                char_desc = stringsetsubloc("LV~1 Bed Inspector#Inspects all beds#inexplicably.", falselv, "obj_darkcontroller_slash_Draw_0_gml_274_0");
308
            if (global.flag[920 got_ch2_moss] == 1)
309
                char_desc = stringsetsubloc("LV~1 Moss Finder#Basic moss-finding#abilities.", falselv, "obj_darkcontroller_slash_Draw_0_gml_275_0_b");
310
            if (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; }
() > 0)
311
                char_desc = stringsetsubloc("LV~1 Leader#Commands.", falselv, "obj_darkcontroller_slash_Draw_0_gml_276_0");
312
        }
313
    }
314
    if (charcoord == 2)
315
    {
316
        guts_amount = 2;
317
        rude_amount = 100;
318
        if (global.chapter == 1)
319
        {
320
            if (global.plot >= 154)
321
                rude_amount = 99;
322
        }
323
        if (global.chapter == 2)
324
            rude_amount -= 11;
325
        draw_text(xx + 100, ch_y[3], string_hash_to_newline(stringsetloc(
Rudeness
"Rudeness ", "obj_darkcontroller_slash_Draw_0_gml_251_0"
)));
326
        draw_item_icon(xx + 74, ch_y[3] + 6, 13);
327
        draw_text(xx + 230, ch_y[3], string_hash_to_newline(rude_amount));
328
        if (global.chapter == 1)
329
        {
330
            crude_amount = 100;
331
            if (global.flag[214 team_name] == 1)
332
                crude_amount = 101;
333
            draw_text_transformed(xx + 100, ch_y[4], string_hash_to_newline(stringsetloc(
Crudeness
"Crudeness ", "obj_darkcontroller_slash_Draw_0_gml_252_0"
)), langopt(0.8, 1), 1, 0);
334
            draw_item_icon(xx + 74, ch_y[4] + 6, 13);
335
            draw_text(xx + 230, ch_y[4], string_hash_to_newline(crude_amount));
336
            char_desc = stringsetloc(
LV1 Mean Girl#Won't do anything#but fight.
"LV1 Mean Girl#Won't do anything#but fight.", "obj_darkcontroller_slash_Draw_0_gml_255_0"
);
337
            if (global.plot >= 154)
338
                char_desc = stringsetloc(
LV1 Dark Knight#Does damage using#dark energy.
"LV1 Dark Knight#Does damage using#dark energy.", "obj_darkcontroller_slash_Draw_0_gml_256_0"
);
339
        }
340
        if (global.chapter == 2)
341
        {
342
            draw_text_transformed(xx + 100, ch_y[4], string_hash_to_newline(stringsetloc(
Purple
"Purple ", "obj_darkcontroller_slash_Draw_0_gml_311_0"
)), langopt(0.8, 1), 1, 0);
343
            draw_item_icon(xx + 74, ch_y[4] + 6, 13);
344
            draw_text(xx + 230, ch_y[4], string_hash_to_newline(stringsetloc(
Yes
"Yes", "obj_darkcontroller_slash_Draw_0_gml_312_0"
)));
345
            char_desc = stringsetsubloc("LV~1 Dark Knight#Does damage using#dark energy.", falselv, "obj_darkcontroller_slash_Draw_0_gml_314_0");
346
            if (global.plot >= 95)
347
                char_desc = stringsetsubloc("LV~1 Healing Master#Can use ultimate#healing. (Losers!)", falselv, "obj_darkcontroller_slash_Draw_0_gml_315_0");
348
            if (global.flag[922 susie_moss] == 1)
349
                char_desc = stringsetsubloc("LV~1 Moss Enjoyer#Supports those#that find moss.", falselv, "obj_darkcontroller_slash_Draw_0_gml_316_0");
350
        }
351
    }
352
    if (charcoord == 3)
353
    {
354
        guts_amount = 0;
355
        fluff_amount = 1;
356
        kindness_amount = 100;
357
        kind_icon = 10;
358
        kind_text = stringsetloc(
Kindness
"Kindness", "obj_darkcontroller_slash_Draw_0_gml_327_0"
);
359
        if (dograndom >= 97)
360
        {
361
            kind_icon = 11;
362
            kind_text = stringsetloc(
Dogness
"Dogness", "obj_darkcontroller_slash_Draw_0_gml_331_0"
);
363
            kindness_amount = 1;
364
        }
365
        if (global.chapter == 1)
366
        {
367
            char_desc = stringsetloc(
LV1 Lonely Prince#Dark-World being.#Has no subjects.
"LV1 Lonely Prince#Dark-World being.#Has no subjects.", "obj_darkcontroller_slash_Draw_0_gml_272_0"
);
368
            if (global.charweapon[3] == 9)
369
                char_desc = stringsetloc(
LV1 Prickly Prince#Deals damage with#his rugged scarf.
"LV1 Prickly Prince#Deals damage with#his rugged scarf.", "obj_darkcontroller_slash_Draw_0_gml_275_0"
);
370
            if (global.charweapon[3] == 10)
371
            {
372
                char_desc = stringsetloc(
LV1 Fluffy Prince#Weak,Delay 11 but has nice#healing powers.
"LV1 Fluffy Prince#Weak^1, but has nice#healing powers.", "obj_darkcontroller_slash_Draw_0_gml_279_0"
);
373
                fluff_amount += 1;
374
            }
375
            draw_text(xx + 100, ch_y[3], string_hash_to_newline(kind_text));
376
            draw_item_icon(xx + 74, ch_y[3] + 6, kind_icon);
377
            draw_text(xx + 230, ch_y[3], string_hash_to_newline(kindness_amount));
378
        }
379
        if (global.chapter == 2)
380
        {
381
            fluff_amount += 1;
382
            char_desc = stringsetsubloc("LV~1 Dark Prince#Dark-World being.#Has friends now.", falselv, "obj_darkcontroller_slash_Draw_0_gml_356_0");
383
            if (global.flag[325 ralsei_photo_choice] == 1)
384
                char_desc = stringsetsubloc("LV~1 Hug Prince#Receives and#gives many hugs.", falselv, "obj_darkcontroller_slash_Draw_0_gml_357_0");
385
            if (global.flag[325 ralsei_photo_choice] == 2)
386
                char_desc = stringsetsubloc("LV~1 Pose Prince#Poses for photos#at times.", falselv, "obj_darkcontroller_slash_Draw_0_gml_358_0");
387
            if (global.flag[325 ralsei_photo_choice] == 3)
388
                char_desc = stringsetsubloc("LV~1 Rude Prince#Friends with a#rude gesturer.", falselv, "obj_darkcontroller_slash_Draw_0_gml_359_0");
389
            if (global.flag[325 ralsei_photo_choice] == 4)
390
                char_desc = stringsetsubloc("LV~1 Blank Prince#Doesn't even#have a photo.", falselv, "obj_darkcontroller_slash_Draw_0_gml_360_0");
391
            draw_text(xx + 100, ch_y[3], string_hash_to_newline(stringsetloc(
Sweetness
"Sweetness ", "obj_darkcontroller_slash_Draw_0_gml_362_0"
)));
392
            draw_item_icon(xx + 74, ch_y[3] + 6, 15);
393
            if (global.lang == "ja")
394
            {
395
                draw_text((xx + 230 + 14) - 2 - 2, ch_y[3], ":");
396
                draw_text((xx + 230 + 14 + 16) - 2, ch_y[3], "97");
397
            }
398
            else
399
            {
400
                draw_text(xx + 230, ch_y[3], string_hash_to_newline("97"));
401
            }
402
        }
403
        draw_text_transformed(xx + 100, ch_y[4], string_hash_to_newline(stringsetloc(
Fluffiness
"Fluffiness", "obj_darkcontroller_slash_Draw_0_gml_286_0"
)), 0.8, 1, 0);
404
        draw_item_icon(xx + 74, ch_y[4] + 6, 12);
405
        for (i = 0; i < fluff_amount; i += 1)
406
            draw_item_icon(xx + 230 + (i * 20), ch_y[4] + 6, 12);
407
    }
408
    if (charcoord == 4)
409
    {
410
        guts_amount = 0;
411
        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"
);
412
        if (global.flag[925 iceshocks] > 0)
413
            char_desc = stringsetsubloc("LV~1 Frostmancer#Freezes the enemy.", falselv, "obj_darkcontroller_slash_Draw_0_gml_383_0");
414
        if (global.charweapon[4] == 13)
415
            char_desc = stringsetsubloc("LV~1 Ice Trancer#Receives pain to#become stronger.", falselv, "obj_darkcontroller_slash_Draw_0_gml_384_0");
416
        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; }
() == 0)
417
            char_desc = stringsetsubloc("LV~1 Moss Neutral#Neither chaotic nor#lawful to moss.", falselv, "obj_darkcontroller_slash_Draw_0_gml_385_0");
418
        var coldness_amount = clamp(47 + (global.flag[925 iceshocks] * 7), 47, 100);
419
        draw_text(xx + 100, ch_y[3], string_hash_to_newline(stringsetloc(
Coldness
"Coldness ", "obj_darkcontroller_slash_Draw_0_gml_388_0"
)));
420
        draw_item_icon(xx + 74, ch_y[3] + 6, 17);
421
        draw_text(xx + 230, ch_y[3], string_hash_to_newline(coldness_amount));
422
        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);
423
        draw_item_icon(xx + 74, ch_y[4] + 6, 16);
424
        var boldness_amount = min(-12 + ((global.plot - 70) * 3), 100);
425
        draw_text(xx + 230, ch_y[4], string_hash_to_newline(boldness_amount));
426
    }
427
    draw_text(xx + 320, yy + 105, string_hash_to_newline(char_desc));
428
    var guts_xoff = langopt(0, 16);
429
    for (i = 0; i < guts_amount; i += 1)
430
        draw_item_icon(xx + 190 + (i * 20) + guts_xoff, ch_y[5] + 6, 9);
431
    atsum = global.at[global.char[coord]] + global.itemat[global.char[coord]][0] + global.itemat[global.char[coord]][1] + global.itemat[global.char[coord]][2];
432
    dfsum = global.df[global.char[coord]] + global.itemdf[global.char[coord]][0] + global.itemdf[global.char[coord]][1] + global.itemdf[global.char[coord]][2];
433
    magsum = global.mag[global.char[coord]] + global.itemmag[global.char[coord]][0] + global.itemmag[global.char[coord]][1] + global.itemmag[global.char[coord]][2];
434
    grazesum = global.grazeamt;
435
    sizesum = global.grazesize;
436
    for (i = 0; i < 3; i += 1)
437
    {
438
        for (j = 0; j < 3; j += 1)
439
        {
440
            if (global.char[i] != 0)
441
            {
442
                grazesum += global.itemgrazeamt[global.char[i]][j];
443
                sizesum += global.itemgrazesize[global.char[i]][j];
444
            }
445
        }
446
    }
447
    draw_text(xx + 230, ch_y[0], string_hash_to_newline(floor(atsum)));
448
    draw_text(xx + 230, ch_y[1], string_hash_to_newline(floor(dfsum)));
449
    draw_text(xx + 230, ch_y[2], string_hash_to_newline(floor(magsum)));
450
    var spell_xoff = langopt(0, -10);
451
    for (i = 0; i < 6; i += 1)
452
    {
453
        if (global.spell[charcoord][i] > 0)
454
        {
455
            g = 0;
456
            if (global.spellusable[charcoord][i] == 0)
457
                g = 1;
458
            if (global.spellcost[charcoord][i] > global.tension)
459
                g = 1;
460
            if (g == 0)
461
                draw_set_color(c_white);
462
            if (g == 1)
463
                draw_set_color(c_gray);
464
            if (global.lang == "ja")
465
                draw_text(xx + 310, ch_y[i], string_hash_to_newline(string(round((global.spellcost[charcoord][i] / global.maxtension) * 100)) + "%"));
466
            else
467
                draw_text(xx + 340, ch_y[i], string_hash_to_newline(string(round((global.spellcost[charcoord][i] / global.maxtension) * 100)) + "%"));
468
            if (global.lang == "ja")
469
                draw_text(xx + 390 + spell_xoff, ch_y[i], string_hash_to_newline(global.spellname[charcoord][i]));
470
            else
471
                draw_text(xx + 410 + spell_xoff, ch_y[i], string_hash_to_newline(global.spellname[charcoord][i]));
472
        }
473
    }
474
    if (global.submenu == 21)
475
    {
476
        var jpxoff = 0;
477
        if (global.lang == "ja")
478
            jpxoff = 40;
479
        draw_sprite(spr_heart, 0, xx + 320 + jpxoff, yy + 240 + (global.submenucoord[21] * 25));
480
    }
481
    if (deschaver == 1)
482
    {
483
        draw_set_color(c_white);
484
        draw_text(xx + 20, yy + 10, string_hash_to_newline(global.spelldesc[charcoord][global.submenucoord[21]]));
485
    }
486
}
487
if (global.menuno == 2)
488
{
489
    draw_set_color(c_black);
490
    var ch_vspace = langopt(27, 28);
491
    var ln_xoff1 = langopt(580, 626);
492
    var ln_xoff2 = langopt(590, 636);
493
    draw_rectangle(xx + 60, yy + 90, xx + ln_xoff1, yy + 410, false);
494
    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);
495
    draw_set_color(c_white);
496
    draw_rectangle(xx + 270, yy + 91, xx + 275, yy + 91 + 135, false);
497
    draw_rectangle(xx + 59, yy + 221, xx + langopt(584, 628), yy + 221 + 5, false);
498
    draw_rectangle(xx + 323, yy + 221, xx + 323 + 5, yy + 221 + 190, false);
499
    draw_sprite_ext(spr_dmenu_captions, 0, xx + 118, yy + 86, 2, 2, 0, c_white, 1);
500
    draw_sprite_ext(spr_dmenu_captions, 1, xx + 376, yy + 86, 2, 2, 0, c_white, 1);
501
    if (global.submenucoord[11] == 1 || global.submenucoord[11] == 2)
502
        draw_sprite_ext(spr_dmenu_captions, 2, xx + 372, yy + 216, 2, 2, 0, c_white, 1);
503
    else
504
        draw_sprite_ext(spr_dmenu_captions, 3, xx + 372, yy + 216, 2, 2, 0, c_white, 1);
505
    draw_sprite_ext(spr_dmenu_captions, 4, xx + 116, yy + 216, 2, 2, 0, c_white, 1);
506
    coord = global.submenucoord[10];
507
    charcoord = global.char[coord];
508
    menusiner += 1;
509
    draw_set_color(c_white);
510
    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");
511
    var charname_xoff = langopt(0, -25);
512
    draw_text(xx + 135 + charname_xoff, yy + 107, string_hash_to_newline(global.charname[charcoord]));
513
    for (i = 0; i < 3; i += 1)
514
    {
515
        chosen = 0.4;
516
        if (i == coord)
517
            chosen = 1;
518
        draw_sprite_ext(spr_equipchar_ch2, global.char[i], 90 + xx + (i * 50), 160 + yy, 2, 2, 0, c_white, chosen);
519
    }
520
    if (global.submenu == 10)
521
        draw_sprite(spr_heart_harrows, menusiner / 20, 100 + xx + (coord * 50), 142 + yy);
522
    if (global.submenu != 11)
523
    {
524
        bicon = charcoord - 1;
525
        if (charcoord == 4)
526
            bicon = 5;
527
        draw_sprite_ext(spr_dmenu_equip, bicon, xx + 302, yy + 108, 2, 2, 0, c_white, 1);
528
        draw_sprite_ext(spr_dmenu_equip, 3, xx + 302, yy + 142, 2, 2, 0, c_white, 1);
529
        draw_sprite_ext(spr_dmenu_equip, 4, xx + 302, yy + 172, 2, 2, 0, c_white, 1);
530
    }
531
    if (global.submenu == 11)
532
    {
533
        bicon = charcoord - 1;
534
        if (charcoord == 4)
535
            bicon = 5;
536
        if (global.submenucoord[11] == 0)
537
            draw_sprite(spr_heart, 0, xx + 308, yy + 122);
538
        else
539
            draw_sprite_ext(spr_dmenu_equip, bicon, xx + 302, yy + 108, 2, 2, 0, c_white, 1);
540
        if (global.submenucoord[11] == 1)
541
            draw_sprite(spr_heart, 0, xx + 308, yy + 152);
542
        else
543
            draw_sprite_ext(spr_dmenu_equip, 3, xx + 302, yy + 142, 2, 2, 0, c_white, 1);
544
        if (global.submenucoord[11] == 2)
545
            draw_sprite(spr_heart, 0, xx + 308, yy + 182);
546
        else
547
            draw_sprite_ext(spr_dmenu_equip, 4, xx + 302, yy + 172, 2, 2, 0, c_white, 1);
548
    }
549
    if (charweaponname[charcoord] != " ")
550
    {
551
        draw_text(xx + 365, yy + 112, string_hash_to_newline(charweaponname[charcoord]));
552
        draw_item_icon(xx + 343, yy + 118, charweaponicon[charcoord]);
553
    }
554
    else
555
    {
556
        draw_set_color(c_dkgray);
557
        draw_text(xx + 365, yy + 112, string_hash_to_newline(stringsetloc(
(Nothing)
"(Nothing)", "obj_darkcontroller_slash_Draw_0_gml_453_0"
)));
558
        draw_set_color(c_white);
559
    }
560
    if (global.chararmor1[charcoord] != 0)
561
    {
562
        draw_text(xx + 365, yy + 142, string_hash_to_newline(chararmor1name[charcoord]));
563
        draw_item_icon(xx + 343, yy + 148, chararmor1icon[charcoord]);
564
    }
565
    else
566
    {
567
        draw_set_color(c_dkgray);
568
        draw_text(xx + 365, yy + 142, string_hash_to_newline(stringsetloc(
(Nothing)
"(Nothing)", "obj_darkcontroller_slash_Draw_0_gml_465_0"
)));
569
        draw_set_color(c_white);
570
    }
571
    if (global.chararmor2[charcoord] != 0)
572
    {
573
        draw_text(xx + 365, yy + 172, string_hash_to_newline(chararmor2name[charcoord]));
574
        draw_item_icon(xx + 343, yy + 178, chararmor2icon[charcoord]);
575
    }
576
    else
577
    {
578
        draw_set_color(c_dkgray);
579
        draw_text(xx + 365, yy + 172, string_hash_to_newline(stringsetloc(
(Nothing)
"(Nothing)", "obj_darkcontroller_slash_Draw_0_gml_477_0"
)));
580
        draw_set_color(c_white);
581
    }
582
    var eq_xoff = langopt(0, -6);
583
    if (global.submenucoord[11] == 0)
584
    {
585
        j = 0;
586
        for (i = pagemax[0]; i < (pagemax[0] + 6); i += 1)
587
        {
588
            g = 0;
589
            if (charcoord == 1 && weaponchar1[i] == 0)
590
                g = 1;
591
            if (charcoord == 2 && weaponchar2[i] == 0)
592
                g = 1;
593
            if (charcoord == 3 && weaponchar3[i] == 0)
594
                g = 1;
595
            if (charcoord == 4 && weaponchar4[i] == 0)
596
                g = 1;
597
            if (g == 0)
598
                draw_set_color(c_white);
599
            if (g == 1)
600
                draw_set_color(c_gray);
601
            draw_item_icon(xx + 364 + eq_xoff, yy + 236 + (j * ch_vspace), weaponicon[i]);
602
            if (global.weapon[i] != 0)
603
            {
604
                draw_text(xx + 384 + eq_xoff, yy + 230 + (j * ch_vspace), string_hash_to_newline(weaponname[i]));
605
            }
606
            else
607
            {
608
                draw_set_color(c_dkgray);
609
                draw_text(xx + 384 + eq_xoff, yy + 230 + (j * ch_vspace), string_hash_to_newline(stringsetloc(
---------
"---------", "obj_darkcontroller_slash_Draw_0_gml_585_0"
)));
610
            }
611
            j += 1;
612
        }
613
    }
614
    if (global.submenucoord[11] == 1 || global.submenucoord[11] == 2)
615
    {
616
        j = 0;
617
        for (i = pagemax[1]; i < (6 + pagemax[1]); i += 1)
618
        {
619
            g = 0;
620
            if (charcoord == 1 && armorchar1[i] == 0)
621
                g = 1;
622
            if (charcoord == 2 && armorchar2[i] == 0)
623
                g = 1;
624
            if (charcoord == 3 && armorchar3[i] == 0)
625
                g = 1;
626
            if (charcoord == 4 && armorchar4[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, yy + 236 + (j * ch_vspace), armoricon[i]);
633
            if (global.armor[i] != 0)
634
            {
635
                draw_text(xx + 384, yy + 230 + (j * ch_vspace), string_hash_to_newline(armorname[i]));
636
            }
637
            else
638
            {
639
                draw_set_color(c_dkgray);
640
                draw_text(xx + 384, yy + 230 + (j * ch_vspace), string_hash_to_newline(stringsetloc(
---------
"---------", "obj_darkcontroller_slash_Draw_0_gml_609_0"
)));
641
            }
642
            j += 1;
643
        }
644
    }
645
    if (global.submenu == 12 || global.submenu == 13 || global.submenu == 14)
646
    {
647
        var __equipmenumax = 47;
648
        var scroll_xoff = langopt(0, 50);
649
        if (global.submenu == 12)
650
            pm = 0;
651
        else
652
            pm = 1;
653
        draw_sprite(spr_heart, 0, xx + 344 + eq_xoff, yy + 240 + ((global.submenucoord[global.submenu] - pagemax[pm]) * 27));
654
        draw_set_color(c_dkgray);
655
        draw_rectangle(xx + 555 + scroll_xoff, yy + 260, xx + 560 + scroll_xoff, yy + 263 + 115, false);
656
        draw_set_color(c_white);
657
        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);
658
        if (pagemax[pm] > 0)
659
            draw_sprite_ext(spr_morearrow, 0, xx + 551 + scroll_xoff, (yy + 250) - (sin(cur_jewel / 12) * 3), 1, -1, 0, c_white, 1);
660
        if ((5 + pagemax[pm]) < __equipmenumax)
661
            draw_sprite_ext(spr_morearrow, 0, xx + 551 + scroll_xoff, yy + 385 + (sin(cur_jewel / 12) * 3), 1, 1, 0, c_white, 1);
662
    }
663
    draw_set_color(c_white);
664
    if (global.submenu == 11)
665
    {
666
        if (global.submenucoord[11] == 0)
667
            draw_text(xx + 20, yy + 10, string_hash_to_newline(charweapondesc[charcoord]));
668
        if (global.submenucoord[11] == 1)
669
            draw_text(xx + 20, yy + 10, string_hash_to_newline(chararmor1desc[charcoord]));
670
        if (global.submenucoord[11] == 2)
671
            draw_text(xx + 20, yy + 10, string_hash_to_newline(chararmor2desc[charcoord]));
672
    }
673
    if (global.submenu == 12)
674
        draw_text(xx + 20, yy + 10, string_hash_to_newline(weapondesc[global.submenucoord[12]]));
675
    if (global.submenu == 13 || global.submenu == 14)
676
        draw_text(xx + 20, yy + 10, string_hash_to_newline(armordesc[global.submenucoord[global.submenu]]));
677
    draw_set_color(c_white);
678
    draw_text(xx + 100, yy + 230 + (ch_vspace * 0), string_hash_to_newline(stringsetloc(
Attack:
"Attack: ", "obj_darkcontroller_slash_Draw_0_gml_586_0"
)));
679
    draw_item_icon(xx + 74, yy + 236 + (ch_vspace * 0), 1);
680
    draw_text(xx + 100, yy + 230 + (ch_vspace * 1), string_hash_to_newline(stringsetloc(
Defense:
"Defense: ", "obj_darkcontroller_slash_Draw_0_gml_587_0"
)));
681
    draw_item_icon(xx + 74, yy + 236 + (ch_vspace * 1), 4);
682
    draw_text(xx + 100, yy + 230 + (ch_vspace * 2), string_hash_to_newline(stringsetloc(
Magic:
"Magic: ", "obj_darkcontroller_slash_Draw_0_gml_588_0"
)));
683
    draw_item_icon(xx + 74, yy + 236 + (ch_vspace * 2), 5);
684
    atsum = global.at[global.char[coord]] + global.itemat[global.char[coord]][0] + global.itemat[global.char[coord]][1] + global.itemat[global.char[coord]][2];
685
    dfsum = global.df[global.char[coord]] + global.itemdf[global.char[coord]][0] + global.itemdf[global.char[coord]][1] + global.itemdf[global.char[coord]][2];
686
    magsum = global.mag[global.char[coord]] + global.itemmag[global.char[coord]][0] + global.itemmag[global.char[coord]][1] + global.itemmag[global.char[coord]][2];
687
    atsum = floor(atsum);
688
    dfsum = floor(dfsum);
689
    magsum = floor(magsum);
690
    grazesum = global.grazeamt;
691
    sizesum = global.grazesize;
692
    for (i = 0; i < 3; i += 1)
693
    {
694
        for (j = 0; j < 3; j += 1)
695
        {
696
            if (global.char[i] != 0)
697
            {
698
                grazesum += global.itemgrazeamt[global.char[i]][j];
699
                sizesum += global.itemgrazesize[global.char[i]][j];
700
            }
701
        }
702
    }
703
    if (global.submenu == 12 || global.submenu == 13 || global.submenu == 14)
704
    {
705
        cur = global.submenucoord[global.submenu];
706
        g = 0;
707
        if (global.submenu == 12)
708
        {
709
            if (charcoord == 1 && weaponchar1[cur] == 0)
710
                g = 1;
711
            if (charcoord == 2 && weaponchar2[cur] == 0)
712
                g = 1;
713
            if (charcoord == 3 && weaponchar3[cur] == 0)
714
                g = 1;
715
            if (charcoord == 4 && weaponchar4[cur] == 0)
716
                g = 1;
717
        }
718
        if (global.submenu == 13 || global.submenu == 14)
719
        {
720
            if (charcoord == 1 && armorchar1[cur] == 0)
721
                g = 1;
722
            if (charcoord == 2 && armorchar2[cur] == 0)
723
                g = 1;
724
            if (charcoord == 3 && armorchar3[cur] == 0)
725
                g = 1;
726
            if (charcoord == 4 && armorchar4[cur] == 0)
727
                g = 1;
728
        }
729
        _abilitytext[0] = charweaponability[charcoord];
730
        _abilitytext[1] = chararmor1ability[charcoord];
731
        _abilitytext[2] = chararmor2ability[charcoord];
732
        _abilitycolor[0] = 4210752;
733
        _abilitycolor[1] = 4210752;
734
        _abilitycolor[2] = 4210752;
735
        _abilityicon[0] = charweaponabilityicon[charcoord];
736
        _abilityicon[1] = chararmor1abilityicon[charcoord];
737
        _abilityicon[2] = chararmor2abilityicon[charcoord];
738
        if (g == 0 && global.submenu == 12)
739
        {
740
            atup = weaponat[cur] - global.itemat[charcoord][0];
741
            dfup = weapondf[cur] - global.itemdf[charcoord][0];
742
            magup = weaponmag[cur] - global.itemmag[charcoord][0];
743
            styleup = weaponstyle[cur];
744
            grazeup = weapongrazeamt[cur] - global.itemgrazeamt[charcoord][0];
745
            sizeup = weapongrazesize[cur] - global.itemgrazesize[charcoord][0];
746
            _abilitycolor[0] = 16777215;
747
            _abilityicon[0] = weaponabilityicon[cur];
748
            if (weaponability[cur] != _abilitytext[0])
749
            {
750
                _abilitycolor[0] = 65535;
751
                if (weaponability[cur] == " ")
752
                    _abilitycolor[0] = 255;
753
            }
754
            _abilitytext[0] = weaponability[cur];
755
            draw_set_color(c_white);
756
            var atupsign = "";
757
            if (atup > 0)
758
            {
759
                draw_set_color(c_yellow);
760
                atupsign = "+";
761
            }
762
            if (atup < 0)
763
                draw_set_color(c_red);
764
            var s1_string = langopt(string(atsum + atup) + "(" + atupsign + string(atup) + ")", string(atsum + atup));
765
            draw_text(xx + 230, yy + 230 + (ch_vspace * 0), string(s1_string));
766
            draw_set_color(c_white);
767
            if (dfup > 0)
768
                draw_set_color(c_yellow);
769
            if (dfup < 0)
770
                draw_set_color(c_red);
771
            draw_text(xx + 230, yy + 230 + (ch_vspace * 1), string(dfsum + dfup));
772
            draw_set_color(c_white);
773
            if (magup > 0)
774
                draw_set_color(c_yellow);
775
            if (magup < 0)
776
                draw_set_color(c_red);
777
            draw_text(xx + 230, yy + 230 + (ch_vspace * 2), string(magsum + magup));
778
        }
779
        if (g == 0)
780
        {
781
            if (global.submenu == 13 || global.submenu == 14)
782
            {
783
                arno = global.submenu - 12;
784
                atup = armorat[cur] - global.itemat[charcoord][arno];
785
                dfup = armordf[cur] - global.itemdf[charcoord][arno];
786
                magup = armormag[cur] - global.itemmag[charcoord][arno];
787
                grazeup = armorgrazeamt[cur] - global.itemgrazeamt[charcoord][arno];
788
                sizeup = armorgrazesize[cur] - global.itemgrazesize[charcoord][arno];
789
                _abilitycolor[arno] = 16777215;
790
                _abilityicon[arno] = armorabilityicon[cur];
791
                if (armorability[cur] != _abilitytext[arno])
792
                {
793
                    _abilitycolor[arno] = 65535;
794
                    if (armorability[cur] == " ")
795
                        _abilitycolor[arno] = 255;
796
                }
797
                _abilitytext[arno] = armorability[cur];
798
                draw_set_color(c_white);
799
                if (atup > 0)
800
                    draw_set_color(c_yellow);
801
                if (atup < 0)
802
                    draw_set_color(c_red);
803
                draw_text(xx + 230, yy + 230 + (ch_vspace * 0), string(atsum + atup));
804
                draw_set_color(c_white);
805
                if (dfup > 0)
806
                    draw_set_color(c_yellow);
807
                if (dfup < 0)
808
                    draw_set_color(c_red);
809
                draw_text(xx + 230, yy + 230 + (ch_vspace * 1), string(dfsum + dfup));
810
                draw_set_color(c_white);
811
                if (magup > 0)
812
                    draw_set_color(c_yellow);
813
                if (magup < 0)
814
                    draw_set_color(c_red);
815
                draw_text(xx + 230, yy + 230 + (ch_vspace * 2), string(magsum + magup));
816
            }
817
        }
818
        if (g == 1)
819
        {
820
            draw_text(xx + 230, yy + 230 + (ch_vspace * 0), string(atsum));
821
            draw_text(xx + 230, yy + 230 + (ch_vspace * 1), string(dfsum));
822
            draw_text(xx + 230, yy + 230 + (ch_vspace * 2), string(magsum));
823
        }
824
        for (i = 0; i < 3; i += 1)
825
        {
826
            if (_abilitytext[i] == " ")
827
            {
828
                draw_set_color(_abilitycolor[i]);
829
                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"
)));
830
            }
831
            else
832
            {
833
                draw_set_color(_abilitycolor[i]);
834
                draw_text(xx + 100, yy + 230 + (ch_vspace * (i + 3)), string_hash_to_newline(_abilitytext[i]));
835
                draw_set_color(c_orange);
836
                draw_item_icon(xx + 74, yy + 230 + (ch_vspace * (i + 3)), _abilityicon[i]);
837
            }
838
        }
839
    }
840
    else
841
    {
842
        draw_text(xx + 230, yy + 230 + (ch_vspace * 0), string(atsum));
843
        draw_text(xx + 230, yy + 230 + (ch_vspace * 1), string(dfsum));
844
        draw_text(xx + 230, yy + 230 + (ch_vspace * 2), string(magsum));
845
        _abilitytext[0] = charweaponability[charcoord];
846
        _abilitytext[1] = chararmor1ability[charcoord];
847
        _abilitytext[2] = chararmor2ability[charcoord];
848
        _abilitycolor[0] = 16777215;
849
        _abilitycolor[1] = 16777215;
850
        _abilitycolor[2] = 16777215;
851
        _abilityicon[0] = charweaponabilityicon[charcoord];
852
        _abilityicon[1] = chararmor1abilityicon[charcoord];
853
        _abilityicon[2] = chararmor2abilityicon[charcoord];
854
        for (i = 0; i < 3; i += 1)
855
        {
856
            if (_abilitytext[i] == " ")
857
            {
858
                draw_set_color(c_dkgray);
859
                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"
)));
860
            }
861
            else
862
            {
863
                draw_set_color(_abilitycolor[i]);
864
                draw_text(xx + 100, yy + 230 + (ch_vspace * (i + 3)), string_hash_to_newline(_abilitytext[i]));
865
                draw_set_color(c_orange);
866
                draw_item_icon(xx + 74, yy + 238 + (ch_vspace * (i + 3)), _abilityicon[i]);
867
            }
868
        }
869
    }
870
}
871
if (global.menuno == 1)
872
{
873
    draw_set_color(c_black);
874
    draw_rectangle(xx + langopt(70, 46), yy + 90, xx + langopt(570, 594), yy + 360, false);
875
    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);
876
    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");
877
    scr_itemname
scr_itemname

function scr_itemname() { for (i = 0; i < 12; i += 1) { itemid = global.item[i]; scr_itemnamelist(); } }
();
878
    if (global.submenu == 1)
879
        draw_sprite(spr_heart, 0, xx + langopt(155, 134) + (120 * global.submenucoord[1]), yy + 120);
880
    draw_set_color(c_white);
881
    var itemoff = langopt([180, 300, 420], [158, 278, 398]);
882
    if (global.submenu > 1)
883
    {
884
        if (global.submenucoord[1] == 0)
885
            draw_set_color(c_orange);
886
        else
887
            draw_set_color(c_gray);
888
    }
889
    draw_text(xx + itemoff[0], yy + 110, string_hash_to_newline(stringsetloc(
USE
"USE", "obj_darkcontroller_slash_Draw_0_gml_837_0"
)));
890
    if (global.submenu > 1)
891
    {
892
        if (global.submenucoord[1] == 1)
893
            draw_set_color(c_orange);
894
        else
895
            draw_set_color(c_gray);
896
    }
897
    draw_text(xx + itemoff[1], yy + 110, string_hash_to_newline(stringsetloc(
TOSS
"TOSS", "obj_darkcontroller_slash_Draw_0_gml_839_0"
)));
898
    if (global.submenu > 1)
899
    {
900
        if (global.submenucoord[1] == 2)
901
            draw_set_color(c_orange);
902
        else
903
            draw_set_color(c_gray);
904
    }
905
    draw_text(xx + itemoff[2], yy + 110, string_hash_to_newline(stringsetloc(
KEY
"KEY", "obj_darkcontroller_slash_Draw_0_gml_841_0"
)));
906
    if (global.submenu >= 2 && global.submenu <= 6 && global.submenu != 4)
907
    {
908
        sm = global.submenucoord[2];
909
        yheart = (floor(sm / 2) * 30) + 162 + yy;
910
        xheart = langopt(120, 72) + xx;
911
        if (sm == 1 || sm == 3 || sm == 5 || sm == 7 || sm == 9 || sm == 11)
912
            xheart = langopt(330, 334) + xx;
913
        if (global.submenu == 2 || global.submenu == 3)
914
            draw_sprite(spr_heart, 0, xheart, yheart);
915
        draw_set_color(c_white);
916
        draw_text(xx + 20, yy + 10, string_hash_to_newline(itemdesc[global.submenucoord[2]]));
917
    }
918
    if (global.submenu == 7)
919
    {
920
        draw_set_color(c_white);
921
        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")));
922
    }
923
    if (global.submenucoord[1] != 2)
924
    {
925
        draw_set_color(bcolor);
926
        for (i = 0; i < 6; i += 1)
927
        {
928
            draw_text(xx + langopt(148, 94), yy + 154 + (30 * i), string_hash_to_newline(global.itemname[i * 2]));
929
            draw_text(xx + 358, yy + 154 + (30 * i), string_hash_to_newline(global.itemname[(i * 2) + 1]));
930
        }
931
        draw_set_color(c_white);
932
        if (global.submenu == 1)
933
            draw_set_color(c_gray);
934
        for (i = 0; i < 6; i += 1)
935
        {
936
            draw_text(xx + langopt(146, 92), yy + 152 + (30 * i), string_hash_to_newline(global.itemname[i * 2]));
937
            draw_text(xx + 356, yy + 152 + (30 * i), string_hash_to_newline(global.itemname[(i * 2) + 1]));
938
        }
939
    }
940
    if (global.submenucoord[1] == 2)
941
    {
942
        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; } }
();
943
        draw_set_color(bcolor);
944
        for (i = 0; i < 6; i += 1)
945
        {
946
            draw_text(xx + langopt(148, 94), yy + 154 + (30 * i), string_hash_to_newline(keyitemname[i * 2]));
947
            draw_text(xx + 358, yy + 154 + (30 * i), string_hash_to_newline(keyitemname[(i * 2) + 1]));
948
        }
949
        draw_set_color(c_white);
950
        if (global.submenu == 1)
951
            draw_set_color(c_gray);
952
        for (i = 0; i < 6; i += 1)
953
        {
954
            if (global.submenu == 4)
955
            {
956
                if (keyitemusable[i * 2] == 1)
957
                    draw_set_color(c_white);
958
                else
959
                    draw_set_color(c_ltgray);
960
            }
961
            draw_text(xx + langopt(146, 92), yy + 152 + (30 * i), string_hash_to_newline(keyitemname[i * 2]));
962
            if (global.submenu == 4)
963
            {
964
                if (keyitemusable[(i * 2) + 1] == 1)
965
                    draw_set_color(c_white);
966
                else
967
                    draw_set_color(c_ltgray);
968
            }
969
            draw_text(xx + 356, yy + 152 + (30 * i), string_hash_to_newline(keyitemname[(i * 2) + 1]));
970
        }
971
        if (global.submenu == 4)
972
        {
973
            sm = global.submenucoord[4];
974
            yheart = (floor(sm / 2) * 30) + 162 + yy;
975
            xheart = langopt(120, 72) + xx;
976
            if (sm == 1 || sm == 3 || sm == 5 || sm == 7 || sm == 9 || sm == 11)
977
                xheart = langopt(330, 334) + xx;
978
            draw_sprite(spr_heart, 0, xheart, yheart);
979
            draw_set_color(c_white);
980
            draw_text(xx + 20, yy + 10, string_hash_to_newline(keyitemdesc[global.submenucoord[4]]));
981
        }
982
    }
983
}
984
985
enum e__VW
986
{
987
    XView,
988
    YView,
989
    WView,
990
    HView,
991
    Angle,
992
    HBorder,
993
    VBorder,
994
    HSpeed,
995
    VSpeed,
996
    Object,
997
    Visible,
998
    XPort,
999
    YPort,
1000
    WPort,
1001
    HPort,
1002
    Camera,
1003
    SurfaceID
1004
}