Deltarune (Chapter 5) 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
var haveflowery = false;
4
if (global.chapter == 5)
5
{
6
    with (obj_caterpillar_generic)
7
    {
8
        if (name == "flowery")
9
            haveflowery = true;
10
    }
11
}
12
tpoff = (tp - tpy) + yy;
13
bpoff = -bp + bpy + yy;
14
if (drawchar == 1)
15
{
16
    draw_sprite_ext(spr_pxwhite, 0, xx - 10, (yy + 480) - bp - 1, 660, 21 + bp, 0, #010000, 1);
17
    draw_sprite_ext(spr_pxwhite, 0, xx - 10, yy + tp, 650, -tp - 10, 0, #010000, 1);
18
    
scr_charbox
scr_charbox

function
scr_charbox()
{ var haveflowery = false; var soloflowery = false; with (obj_caterpillar_generic) { if (name == "flowery") haveflowery = 1; } if (haveflowery && room == room_dw_post_fountain_close) soloflowery = true; var flx = camerax() + 436; var fly = (bpoff + 421) - (global.fighting * 94); 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 || c == 1) { for (sglowi = 0; sglowi < 3; sglowi += 1) { var tensionamount = 40; if (c == 3) tensionamount = 80; if (c == 1) tensionamount = 160; 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 (disablesusieralseiattack == 1 && (global.charturn == 1 || global.charturn == 2)) 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 (global.chapter == 5 && i_ex(obj_flowery_enemy) && obj_flowery_enemy.flowerbuttonactive == true && c == 0) draw_sprite(spr_btact_flower, btc[1], xx + xchunk + 50 + icon_offset, (485 - bp) + yy); else if (c == 0) ...
();
19
    if (global.menuno == 0)
20
        deschaver = 0;
21
    if (deschaver == 0)
22
    {
23
        draw_sprite_ext(menu_sprite, global.menucoord[0], xx + 20, (yy + tp) - 56, 2, 2, 0, c_white, 1);
24
        msprite[0] = spr_darkitembt;
25
        msprite[1] = spr_darkequipbt;
26
        msprite[2] = spr_darktalkbt;
27
        msprite[3] = spr_darktechbt;
28
        msprite[4] = spr_darkconfigbt;
29
        for (var i = 0; i < 5; i += 1)
30
        {
31
            off = 1;
32
            if (global.menucoord[0] == i)
33
                off = 0;
34
            if ((global.menuno - 1) == i)
35
                off = 2;
36
            spritemx = 0;
37
            if (i >= 2)
38
                spritemx = -100;
39
            if (i != 2)
40
                draw_sprite_ext(msprite[i], off, xx + 120 + (i * 100) + spritemx, (yy + tp) - 60, 2, 2, 0, c_white, 1);
41
        }
42
        var drawmoney = 1;
43
        var moneyamt = string(global.gold);
44
        if (global.chapter == 5)
45
        {
46
            if (global.flag[1412] == 1)
47
                moneyamt = string(global.gold + global.flag[1411]);
48
            if ((global.flag[1412] == 2 || global.flag[1412] == 0) && global.flag[1411] > 0)
49
                drawmoney = 2;
50
            if (global.flag[1312] > 0)
51
            {
52
                if (drawmoney == 2)
53
                    drawmoney = 4;
54
                else
55
                    drawmoney = 3;
56
            }
57
        }
58
        var moneystring = string_hash_to_newline(stringsetsubloc("D$ ~1", moneyamt, "obj_darkcontroller_slash_Draw_0_gml_47_0"));
59
        var flowerydollarsstring = stringsetsubloc("F$ ~1", string(global.flag[1411]), "obj_darkcontroller_slash_Draw_0_gml_69_0");
60
        var pinkdollarsstring = stringsetsubloc("P$ ~1", string(global.flag[1312]), "obj_darkcontroller_slash_Draw_0_gml_70_0");
61
        if (drawmoney == 1)
62
        {
63
            draw_set_color(c_white);
64
            
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");
65
            draw_text(xx + 520, (yy + tp) - 60, moneystring);
66
        }
67
        if (drawmoney == 2)
68
        {
69
            
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");
70
            draw_set_color(c_white);
71
            draw_text(xx + 520, ((yy + tp) - 53) + 14, moneystring);
72
            draw_text(xx + 520, ((yy + tp) - 81) + 14, flowerydollarsstring);
73
        }
74
        if (drawmoney == 3)
75
        {
76
            
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");
77
            draw_set_color(c_white);
78
            draw_text(xx + 520, ((yy + tp) - 53) + 14, moneystring);
79
            draw_text(xx + 520, ((yy + tp) - 81) + 14, pinkdollarsstring);
80
        }
81
        if (drawmoney == 4 && tp > 0)
82
        {
83
            draw_sprite_ext(spr_pxwhite, 0, xx + 500, yy + tp, 140, 30, 0, c_black, 1);
84
            
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");
85
            draw_set_color(c_white);
86
            draw_text(xx + 520, ((yy + tp) - 25) + 14, moneystring);
87
            draw_text(xx + 520, ((yy + tp) - 53) + 14, pinkdollarsstring);
88
            draw_text(xx + 520, ((yy + tp) - 81) + 14, flowerydollarsstring);
89
        }
90
    }
91
}
92
if (global.menuno == 5)
93
{
94
    var lang_off = langopt([90, 410, 420], [85, 412, 422]);
95
    draw_set_color(c_black);
96
    ossafe_fill_rectangle(xx + 60, yy + lang_off[0], xx + 580, yy + lang_off[1], false);
97
    
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]);
98
    if ((global.submenu >= 30 && global.submenu <= 33) || global.submenu == 36)
99
    {
100
        var _xPos = (global.lang == "en") ? (xx + 170) : (xx + 150);
101
        var _heartXPos = (global.lang == "en") ? (xx + 145) : (xx + 125);
102
        if (global.lang == "ja" && global.is_console)
103
        {
104
            _xPos -= 24;
105
            _heartXPos -= 24;
106
        }
107
        var _selectXPos = (global.lang == "ja" && global.is_console) ? (xx + 385) : (xx + 430);
108
        draw_set_color(c_white);
109
        draw_text(xx + 270, yy + 100, string_hash_to_newline(stringsetloc(
CONFIG
"CONFIG", "obj_darkcontroller_slash_Draw_0_gml_74_0"
)));
110
        audvol = string(round(abs(global.flag[17 audio_volume] * 100))) + "%";
111
        musvol = string(round(abs(global.flag[16 music_volume] * 100))) + "%";
112
        runoff = stringsetloc(
OFF
"OFF", "obj_darkcontroller_slash_Draw_0_gml_82_0"
);
113
        if (global.flag[11 auto_run] == 1)
114
            runoff = stringsetloc(
ON
"ON", "obj_darkcontroller_slash_Draw_0_gml_82_1"
);
115
        flashoff = stringsetloc(
OFF
"OFF", "obj_darkcontroller_slash_Draw_0_gml_83_0"
);
116
        if (global.flag[8 simplify_vfx] == 1)
117
            flashoff = stringsetloc(
ON
"ON", "obj_darkcontroller_slash_Draw_0_gml_83_1"
);
118
        shakeoff = stringsetloc(
OFF
"OFF", "obj_darkcontroller_slash_Draw_0_gml_84_0"
);
119
        if (global.flag[12 disable_shaking] == 1)
120
            shakeoff = stringsetloc(
ON
"ON", "obj_darkcontroller_slash_Draw_0_gml_84_1"
);
121
        var str_on = stringsetloc(
ON
"ON", "obj_darkcontroller_slash_Draw_0_gml_140_0"
);
122
        var str_off = stringsetloc(
OFF
"OFF", "obj_darkcontroller_slash_Draw_0_gml_141_0"
);
123
        var ralseis = stringsetloc(
Ralseis
"Ralseis", "obj_darkcontroller_slash_Draw_0_gml_142_0"
);
124
        if (!global.is_console)
125
        {
126
            fullscreenoff = stringsetloc(
OFF
"OFF", "obj_darkcontroller_slash_Draw_0_gml_87_0"
);
127
            if (window_get_fullscreen())
128
                fullscreenoff = stringsetloc(
ON
"ON", "obj_darkcontroller_slash_Draw_0_gml_87_1"
);
129
        }
130
        draw_sprite(spr_heart, 0, _heartXPos, yy + 160 + (global.submenucoord[30] * 35));
131
        if (global.submenu == 33)
132
            draw_set_color(c_yellow);
133
        draw_text(_xPos, yy + 150, string_hash_to_newline(stringsetloc(
Master Volume
"Master Volume", "obj_darkcontroller_slash_Draw_0_gml_86_0"
)));
134
        draw_text(_selectXPos, yy + 150, string_hash_to_newline(audvol));
135
        draw_set_color(c_white);
136
        draw_text(_xPos, yy + 185, string_hash_to_newline(stringsetloc(
Controls
"Controls", "obj_darkcontroller_slash_Draw_0_gml_91_0"
)));
137
        var simplifyvfx = true;
138
        if (global.chapter == 5)
139
            simplifyvfx = false;
140
        if (simplifyvfx)
141
        {
142
            draw_text(_xPos, yy + 220, string_hash_to_newline(stringsetloc(
Simplify VFX
"Simplify VFX", "obj_darkcontroller_slash_Draw_0_gml_92_0"
)));
143
            draw_text(_selectXPos, yy + 220, string_hash_to_newline(flashoff));
144
        }
145
        else
146
        {
147
            var __menuOpt = 0;
148
            if (global.flag[24] == 1)
149
                __menuOpt = 1;
150
            if (__menuOpt == 0)
151
            {
152
                var voicelines = stringsetloc(
Voice Clips
"Voice Clips", "obj_darkcontroller_slash_Draw_0_gml_176_0"
);
153
                var thisstring = str_on;
154
                if (global.flag[1391] == 1)
155
                    thisstring = str_off;
156
                draw_text(_xPos, yy + 220, string_hash_to_newline(voicelines));
157
                draw_text(_selectXPos, yy + 220, thisstring);
158
            }
159
            if (__menuOpt == 1)
160
            {
161
                var feathstr = stringsetloc(
Feather
"Feather", "obj_darkcontroller_slash_Draw_0_gml_186_0"
);
162
                var feathSet0 = stringsetloc(
Jump: Cancel\nAttack: Confirm
"Jump: Cancel\nAttack: Confirm", "obj_darkcontroller_slash_Draw_0_gml_188_0"
);
163
                var feathSet1 = stringsetloc(
Jump: Confirm\nAttack: Cancel
"Jump: Confirm\nAttack: Cancel", "obj_darkcontroller_slash_Draw_0_gml_189_0"
);
164
                var st = [feathSet0, feathSet1];
165
                var col = 16777215;
166
                if (scr_flag_get_ext(1762, 0, 2) == 0)
167
                    col = 16776960;
168
                if (scr_flag_get_ext(1762, 0, 2) == 0)
169
                {
170
                    if (global.menuno == 5 && global.submenu == 30 && global.submenucoord[30] == 2)
171
                        scr_flag_set_ext(1762, 0, 1, 2);
172
                }
173
                else if (scr_flag_get_ext(1762, 0, 2) == 1)
174
                {
175
                    yellowed++;
176
                    var __endtime = 15;
177
                    if (yellowed >= __endtime)
178
                    {
179
                        yellowed = 0;
180
                        scr_flag_set_ext(1762, 0, 2, 2);
181
                    }
182
                    else
183
                    {
184
                        col = merge_color(c_yellow, c_white, lerp_inout_cubic(0, 1, yellowed / __endtime));
185
                    }
186
                }
187
                draw_set_color(col);
188
                draw_text(_xPos, yy + 220, feathstr);
189
                var mem = 
190
                {
191
                    h: draw_get_halign(),
192
                    v: draw_get_valign(),
193
                    f: draw_get_font()
194
                };
195
                draw_set_halign(fa_left);
196
                draw_set_valign(fa_middle);
197
                draw_set_font(
scr_84_get_font
scr_84_get_font

function
scr_84_get_font(arg0)
{ if (!variable_global_exists("chemg_last_get_font")) global.chemg_last_get_font = ""; if (arg0 != global.chemg_last_get_font) global.chemg_last_get_font = arg0; return ds_map_find_value(global.font_map, arg0); }
("main"));
198
                draw_text(_selectXPos, yy + 220 + 16, st[global.flag[25]]);
199
                draw_set_halign(mem.h);
200
                draw_set_valign(mem.v);
201
                draw_set_font(mem.f);
202
                draw_set_color(c_white);
203
                var cont = 0;
204
            }
205
        }
206
        if (global.is_console)
207
        {
208
            var drawautorun = true;
209
            if (global.chapter == 5)
210
            {
211
                if (global.tempflag[52] == 1)
212
                    drawautorun = false;
213
            }
214
            if (drawautorun)
215
            {
216
                draw_text(_xPos, yy + 255, string_hash_to_newline(autorun_text));
217
                draw_text(_selectXPos, yy + 255, string_hash_to_newline(runoff));
218
            }
219
            else
220
            {
221
                var thisstring = str_on;
222
                if (global.flag[1392] == 1)
223
                    thisstring = str_off;
224
                draw_text(_xPos, yy + 255, string_hash_to_newline(ralseis));
225
                draw_text(_selectXPos, yy + 255, string_hash_to_newline(thisstring));
226
            }
227
            if (global.submenu == 36)
228
                draw_set_color(c_yellow);
229
            else if (global.disable_border)
230
                draw_set_color(c_gray);
231
            draw_text(_xPos, yy + 290, stringsetloc(
Border
"Border", "obj_darkcontroller_slash_Draw_0_gml_112_0"
));
232
            draw_text(_selectXPos, yy + 290, border_options[selected_border]);
233
            draw_set_color(c_white);
234
            draw_text(_xPos, yy + 325, string_hash_to_newline(stringsetloc(
Return to Title
"Return to Title", "obj_darkcontroller_slash_Draw_0_gml_95_0"
)));
235
            draw_text(_xPos, yy + 360, string_hash_to_newline(back_text));
236
        }
237
        else
238
        {
239
            draw_text(_xPos, yy + 255, string_hash_to_newline(stringsetloc(
Fullscreen
"Fullscreen", "obj_darkcontroller_slash_Draw_0_gml_93_0"
)));
240
            draw_text(xx + 430, yy + 255, string_hash_to_newline(fullscreenoff));
241
            var drawautorun = true;
242
            if (global.chapter == 5)
243
            {
244
                if (global.tempflag[52] == 1)
245
                    drawautorun = false;
246
            }
247
            if (drawautorun)
248
            {
249
                draw_text(_xPos, yy + 290, string_hash_to_newline(autorun_text));
250
                draw_text(xx + 430, yy + 290, string_hash_to_newline(runoff));
251
            }
252
            else
253
            {
254
                var thisstring = str_on;
255
                if (global.flag[1392] == 1)
256
                    thisstring = str_off;
257
                draw_text(_xPos, yy + 290, string_hash_to_newline(ralseis));
258
                draw_text(xx + 430, yy + 290, thisstring);
259
            }
260
            draw_text(_xPos, yy + 325, string_hash_to_newline(stringsetloc(
Return to Title
"Return to Title", "obj_darkcontroller_slash_Draw_0_gml_95_0"
)));
261
            draw_text(_xPos, yy + 360, string_hash_to_newline(back_text));
262
        }
263
    }
264
    if (global.submenu == 34)
265
    {
266
    }
267
    if (global.submenu == 35)
268
    {
269
        var is_dualshock = global.gamepad_type == "Sony DualShock 4" || global.gamepad_type == "DualSense Wireless Controller";
270
        var _yOffset = (global.lang == "en") ? 0 : -4;
271
        var _headerOffset = (is_dualshock && global.lang == "ja") ? -5 : 0;
272
        draw_set_color(c_white);
273
        draw_text(xx + 105, yy + 100 + _headerOffset, string_hash_to_newline(stringsetloc(
Function
"Function", "obj_darkcontroller_slash_Draw_0_gml_113_0"
)));
274
        if (global.is_console)
275
        {
276
            var buttonXPos = (scr_is_switch_os() && global.lang == "en") ? (xx + 445) : (xx + 435);
277
            var buttonYPos = yy + 100 + _yOffset;
278
            draw_text(buttonXPos, buttonYPos, stringsetloc(
Button
"Button", "obj_darkcontroller_slash_Draw_0_gml_147_0"
));
279
        }
280
        else
281
        {
282
            draw_text(xx + 325, yy + 100 + _headerOffset, string_hash_to_newline(stringsetloc(
Key
"Key", "obj_darkcontroller_slash_Draw_0_gml_114_0"
)));
283
            if (obj_gamecontroller.gamepad_active)
284
                draw_text(xx + 435, yy + 100 + _headerOffset, string_hash_to_newline(stringsetloc(
Gamepad
"Gamepad", "obj_darkcontroller_slash_Draw_0_gml_115_0"
)));
285
        }
286
        my_function[0] = stringsetloc(
DOWN
"DOWN", "obj_darkcontroller_slash_Draw_0_gml_117_0"
);
287
        my_function[1] = stringsetloc(
RIGHT
"RIGHT", "obj_darkcontroller_slash_Draw_0_gml_118_0"
);
288
        my_function[2] = stringsetloc(
UP
"UP", "obj_darkcontroller_slash_Draw_0_gml_119_0"
);
289
        my_function[3] = stringsetloc(
LEFT
"LEFT", "obj_darkcontroller_slash_Draw_0_gml_120_0"
);
290
        my_function[4] = stringsetloc(
CONFIRM
"CONFIRM", "obj_darkcontroller_slash_Draw_0_gml_121_0"
);
291
        my_function[5] = stringsetloc(
CANCEL
"CANCEL", "obj_darkcontroller_slash_Draw_0_gml_122_0"
);
292
        my_function[6] = stringsetloc(
MENU
"MENU", "obj_darkcontroller_slash_Draw_0_gml_123_0"
);
293
        my_function[7] = stringsetloc(
Reset to default
"Reset to default", "obj_darkcontroller_slash_Draw_0_gml_124_0"
);
294
        my_function[8] = stringsetloc(
Finish
"Finish", "obj_darkcontroller_slash_Draw_0_gml_125_0"
);
295
        var voff = langopt(0, -8);
296
        var vspacing = langopt(28, 30);
297
        if (global.is_console || is_dualshock)
298
        {
299
            var _heartYPos = (global.lang == "en") ? (yy + 146) : (yy + 144);
300
            var _heartHeight = (global.lang == "en") ? 29 : 30;
301
            draw_sprite(spr_heart, 0, xx + 80, _heartYPos + (global.submenucoord[35] * _heartHeight) + _yOffset);
302
        }
303
        else
304
        {
305
            var heart_offset = (global.lang == "en") ? 28 : 29;
306
            draw_sprite(spr_heart, 0, xx + 80, (yy + 150 + (global.submenucoord[35] * heart_offset) + _yOffset) - 2);
307
        }
308
        var line_padding = (global.lang == "ja") ? 1 : 0;
309
        for (var i = 0; i <= 8; i += 1)
310
        {
311
            draw_set_color(c_white);
312
            if (global.submenucoord[35] == i)
313
                draw_set_color(c_aqua);
314
            if (global.submenucoord[35] == i && control_select_con == 1)
315
                draw_set_color(c_red);
316
            if (i == 7 && control_flash_timer > 0)
317
                draw_set_color(merge_color(c_aqua, c_yellow, (control_flash_timer / 10) - 0.1));
318
            var _textYPos;
319
            if (is_dualshock)
320
            {
321
                var _textHeight = 29;
322
                _textYPos = (global.lang == "en") ? (yy + 137) : (yy + 136);
323
                draw_text(xx + 105, _textYPos + (i * (_textHeight + line_padding)) + _yOffset, string_hash_to_newline(my_function[i]));
324
            }
325
            else
326
            {
327
                draw_text(xx + 105, yy + 140 + (i * (28 + line_padding)) + _yOffset, string_hash_to_newline(my_function[i]));
328
            }
329
            if (i < 7)
330
            {
331
                if (is_dualshock)
332
                {
333
                    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);
334
                    var _sprite_height = 29;
335
                    var _xPos = xx + 465;
336
                    var _yPos = yy + 139;
337
                    if (_sprite == button_ps4_dpad_up || _sprite == button_ps4_dpad_down || _sprite == button_ps4_dpad_left || _sprite == button_ps4_dpad_right)
338
                    {
339
                        _sprite_height = 30;
340
                        _yPos = _textYPos + 0.5;
341
                        _xPos = xx + 463;
342
                    }
343
                    else if (_sprite == button_ps4_options)
344
                    {
345
                        _sprite_height = 29.5;
346
                        _yPos = _textYPos + 0.5;
347
                        _xPos = xx + 460;
348
                    }
349
                    draw_sprite_ext(_sprite, 0, _xPos, _yPos + (i * (_sprite_height + line_padding)) + _yOffset, 2, 2, 0, c_white, 1);
350
                    if (!global.is_console)
351
                        draw_text(xx + 325, yy + voff + 140 + (i * vspacing), string_hash_to_newline(global.asc_def[global.input_k[i]]));
352
                }
353
                else if (global.is_console)
354
                {
355
                    if (obj_gamecontroller.gamepad_active)
356
                    {
357
                        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;
358
                        var _xPos = (global.lang == "en") ? (xx + 475) : (xx + 465);
359
                        if (_sprite == button_switch_lStickClick_0 || _sprite == button_switch_rStickClick_0)
360
                            _xPos -= 3;
361
                        draw_sprite_ext(_sprite, 0, _xPos, yy + 144 + (i * (28 + line_padding)) + _yOffset, 2, 2, 0, c_white, 1);
362
                    }
363
                }
364
                else
365
                {
366
                    draw_text(xx + 325, yy + voff + 140 + (i * vspacing), string_hash_to_newline(global.asc_def[global.input_k[i]]));
367
                    if (obj_gamecontroller.gamepad_active)
368
                    {
369
                        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);
370
                        var _xPos = (global.lang == "en") ? (xx + 475) : (xx + 465);
371
                        if (sprite_get_width(_sprite) < 12)
372
                            _xPos += 2;
373
                        draw_sprite_ext(_sprite, 0, _xPos, yy + 144 + (i * (28 + line_padding)) + _yOffset, 2, 2, 0, c_white, 1);
374
                    }
375
                }
376
            }
377
        }
378
    }
379
}
380
if (global.menuno == 4)
381
{
382
    var memxx = xx;
383
    if (global.lang == "ja")
384
        xx += -15;
385
    draw_set_color(c_black);
386
    ossafe_fill_rectangle(xx + 60, yy + 90, xx + langopt(580, 612), yy + 410, false);
387
    
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);
388
    draw_set_color(c_white);
389
    var lhor = 
390
    {
391
        x: xx + 60,
392
        y: yy + 216,
393
        w: 521,
394
        h: 6
395
    };
396
    if (global.lang == "ja")
397
        lhor.w += 32;
398
    with (lhor)
399
        draw_sprite_ext(spr_pxwhite, 0, x, y, w, h, 0, c_white, 1);
400
    var mvert = 
401
    {
402
        x: xx + 294,
403
        y: yy + 218,
404
        w: 6,
405
        h: 193
406
    };
407
    with (mvert)
408
        draw_sprite_ext(spr_pxwhite, 0, x, y, w, h, 0, c_white, 1);
409
    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);
410
    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);
411
    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);
412
    if (global.lang == "ja")
413
        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"), 6, xx + 310, yy + 225, 1, 1, 0, c_white, 1);
414
    else
415
        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"), 6, xx + 340, yy + 225, 1, 1, 0, c_white, 1);
416
    coord = global.submenucoord[20];
417
    charcoord = global.char[coord];
418
    menusiner += 1;
419
    draw_set_color(c_white);
420
    
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");
421
    draw_text(xx + 130, yy + 105, string_hash_to_newline(global.charname[charcoord]));
422
    for (var i = 0; i < 3; i += 1)
423
    {
424
        chosen = 0.4;
425
        if (i == coord)
426
            chosen = 1;
427
        var headssprite = 4648;
428
        if (global.flag[1311] == 1)
429
            headssprite = 4645;
430
        var dodraw = true;
431
        if (i == 2 && haveflowery)
432
        {
433
            dodraw = false;
434
            draw_sprite_ext(spr_flowery_equipchar, 0, 90 + xx + (i * 50) + 6, (160 + yy) - 8, 2, 2, 0, c_white, chosen);
435
        }
436
        if (dodraw)
437
            draw_sprite_ext(headssprite, global.char[i], 90 + xx + (i * 50), 160 + yy, 2, 2, 0, c_white, chosen);
438
    }
439
    if (global.submenu == 20)
440
        draw_sprite(spr_heart_harrows, menusiner / 20, 100 + xx + (coord * 50), 141 + yy);
441
    var ch_yoff = yy + 230;
442
    var ch_vspace = langopt(25, 28);
443
    var falselv = "1";
444
    if (global.chapter == 2)
445
    {
446
        falselv = "2";
447
        if (global.plot >= 200)
448
            falselv = "3";
449
    }
450
    var ch_y;
451
    for (var ch_i = 0; ch_i < 6; ch_i++)
452
        ch_y[ch_i] = ch_yoff + (ch_i * ch_vspace);
453
    draw_set_color(c_white);
454
    draw_text(xx + 100, ch_y[0], string_hash_to_newline(stringsetloc(
Attack:
"Attack: ", "obj_darkcontroller_slash_Draw_0_gml_207_0"
)));
455
    draw_item_icon(xx + 74, ch_y[0] + 6, 1);
456
    draw_text(xx + 100, ch_y[1], string_hash_to_newline(stringsetloc(
Defense:
"Defense: ", "obj_darkcontroller_slash_Draw_0_gml_208_0"
)));
457
    draw_item_icon(xx + 74, ch_y[1] + 6, 4);
458
    draw_text(xx + 100, ch_y[2], string_hash_to_newline(stringsetloc(
Magic:
"Magic: ", "obj_darkcontroller_slash_Draw_0_gml_209_0"
)));
459
    draw_item_icon(xx + 74, ch_y[2] + 6, 5);
460
    draw_text(xx + 100, ch_y[5], string_hash_to_newline(stringsetloc(
Guts:
"Guts: ", "obj_darkcontroller_slash_Draw_0_gml_212_0"
)));
461
    draw_item_icon(xx + 74, ch_y[5] + 6, 9);
462
    char_desc = stringsetloc(
LV1
"LV1 ", "obj_darkcontroller_slash_Draw_0_gml_214_0"
);
463
    guts_amount = 0;
464
    fluff_amount = 0;
465
    asterisk_amount = 0;
466
    if (charcoord == 1)
467
    {
468
        guts_amount = 1;
469
        if (global.chapter == 2 || global.chapter == 3)
470
            guts_amount = 2;
471
        if (global.chapter == 5)
472
            guts_amount = 3;
473
        if (global.chapter < 3)
474
        {
475
            draw_set_color(c_dkgray);
476
            draw_text(xx + 100, ch_y[4], string_hash_to_newline(stringsetloc(
???
"???", "obj_darkcontroller_slash_Draw_0_gml_607_0_b"
)));
477
        }
478
        else if (global.chapter == 5)
479
        {
480
        }
481
        else
482
        {
483
            draw_set_color(c_white);
484
            if (global.flag[1255 sword_route_kills] > 0)
485
            {
486
                draw_text(xx + 100 + 130, ch_y[4], string(clamp(global.flag[1255 sword_route_kills], 0, 9999)));
487
                draw_text(xx + 74, ch_y[4], "*");
488
            }
489
            else
490
            {
491
                draw_set_color(c_dkgray);
492
                draw_text(xx + 100, ch_y[4], string_hash_to_newline(stringsetloc(
???
"???", "obj_darkcontroller_slash_Draw_0_gml_620_0"
)));
493
            }
494
        }
495
        var drawdog = false;
496
        if (dograndom >= 97)
497
        {
498
            draw_set_color(c_white);
499
            draw_text(xx + 100, ch_y[3], string_hash_to_newline(stringsetloc(
Dog:
"Dog:", "obj_darkcontroller_slash_Draw_0_gml_231_0"
)));
500
            draw_sprite_ext(spr_dog_sleep, -threebuffer / 30, xx + 220, ch_y[3] + 5, 2, 2, 0, c_white, 1);
501
            drawdog = true;
502
        }
503
        else if (global.chapter == 5)
504
        {
505
        }
506
        else
507
        {
508
            draw_set_color(c_dkgray);
509
            draw_text(xx + 100, ch_y[3], string_hash_to_newline(stringsetloc(
???
"???", "obj_darkcontroller_slash_Draw_0_gml_236_0"
)));
510
        }
511
        draw_set_color(c_white);
512
        if (global.chapter == 5)
513
        {
514
            if (global.flag[24])
515
            {
516
                var str_jumps = stringsetloc(
Jumps:
"Jumps: ", "obj_darkcontroller_slash_Draw_0_gml_663_0"
);
517
                var str_slashes = stringsetloc(
Slashes:
"Slashes: ", "obj_darkcontroller_slash_Draw_0_gml_664_0"
);
518
                var targ = 131;
519
                if (!drawdog)
520
                {
521
                    draw_item_icon(xx + 74, ch_y[3] + 8, 28);
522
                    if (global.lang == "ja")
523
                    {
524
                        var _scale = targ / string_width(str_jumps);
525
                        draw_text_transformed(xx + 100, ch_y[3], str_jumps, _scale, 1, 0);
526
                    }
527
                    else
528
                    {
529
                        draw_text(xx + 100, ch_y[3], str_jumps);
530
                    }
531
                    var jumpcount = string(global.flag[1904]);
532
                    _wscale = min(60 / string_width(jumpcount), 1);
533
                    draw_text_transformed(xx + 230, ch_y[3], jumpcount, _wscale, 1, 0);
534
                }
535
                draw_item_icon(xx + 74, ch_y[4] + 6, 1);
536
                if (global.lang == "ja")
537
                {
538
                    var _scale = (targ - 2) / string_width(str_slashes);
539
                    draw_text_transformed(xx + 100, ch_y[4], str_slashes, _scale, 1, 0);
540
                }
541
                else
542
                {
543
                    draw_text(xx + 100, ch_y[4], str_slashes);
544
                }
545
                var slashcount = string(global.flag[1905]);
546
                var _wscale = min(60 / string_width(slashcount), 1);
547
                draw_text_transformed(xx + 230, ch_y[4], slashcount, _wscale, 1, 0);
548
            }
549
            else
550
            {
551
                draw_set_color(c_dkgray);
552
                if (!drawdog)
553
                    draw_text(xx + 100, ch_y[3], string_hash_to_newline(stringsetloc(
???
"???", "obj_darkcontroller_slash_Draw_0_gml_236_0"
)));
554
                draw_text(xx + 100, ch_y[4], string_hash_to_newline(stringsetloc(
???
"???", "obj_darkcontroller_slash_Draw_0_gml_236_0"
)));
555
                draw_set_color(-1);
556
            }
557
        }
558
        char_desc = stringsetloc(
LV5 Blue Rose#Quiet, yet#flirtatious.
"LV5 Blue Rose#Quiet, yet#flirtatious.", "obj_darkcontroller_slash_Draw_0_gml_638_0"
);
559
        if (global.plot >= 440)
560
            char_desc = stringsetloc(
LV5 Dark Rose#Conveys#departure.
"LV5 Dark Rose#Conveys#departure.", "obj_darkcontroller_slash_Draw_0_gml_641_0"
);
561
        if (
scr_flag_get
scr_flag_get

function
scr_flag_get(arg0)
{ return global.flag[arg0]; } function scr_flag_name_get(arg0) { var v = global.flagname[arg0]; return is_undefined(v) ? "*unknown flag*" : v; } function scr_flag_get_ext(arg0, arg1, arg2 = 1) { if (arg1 < 0)
scr_flag_get(arg0);
else return scr_get_bitmask_value(global.flag[arg0], arg1, arg2); }
(1846) >= 2)
562
            char_desc = stringsetloc(
LV5 Pink Rose#Flirtatious, and#flirtatious.
"LV5 Pink Rose#Flirtatious, and#flirtatious.", "obj_darkcontroller_slash_Draw_0_gml_646_0"
);
563
        if (
scr_flag_get
scr_flag_get

function
scr_flag_get(arg0)
{ return global.flag[arg0]; } function scr_flag_name_get(arg0) { var v = global.flagname[arg0]; return is_undefined(v) ? "*unknown flag*" : v; } function scr_flag_get_ext(arg0, arg1, arg2 = 1) { if (arg1 < 0)
scr_flag_get(arg0);
else return scr_get_bitmask_value(global.flag[arg0], arg1, arg2); }
(1743) == 1)
564
            char_desc = stringsetloc(
LV5 Shattered Rose#Only one knows#the rose's meaning.
"LV5 Shattered Rose#Only one knows#the rose's meaning.", "obj_darkcontroller_slash_Draw_0_gml_651_0"
);
565
        var moss_flags = [106, 922, 1078, 1592];
566
        var moss_title_active = true;
567
        for (var i = 0; i < array_length(moss_flags); i++)
568
        {
569
            if (
scr_flag_get
scr_flag_get

function
scr_flag_get(arg0)
{ return global.flag[arg0]; } function scr_flag_name_get(arg0) { var v = global.flagname[arg0]; return is_undefined(v) ? "*unknown flag*" : v; } function scr_flag_get_ext(arg0, arg1, arg2 = 1) { if (arg1 < 0)
scr_flag_get(arg0);
else return scr_get_bitmask_value(global.flag[arg0], arg1, arg2); }
(moss_flags[i]) == 1)
570
                continue;
571
            moss_title_active = false;
572
            break;
573
        }
574
        if (global.plot >= 398 && moss_title_active)
575
            char_desc = stringsetloc(
LV5 Last Moss#A mossliker's#final form.
"LV5 Last Moss#A mossliker's#final form.", "obj_darkcontroller_slash_Draw_0_gml_669_0"
);
576
        if (scr_flag_get_ext(1851, 0) == 1)
577
            char_desc = stringsetloc(
LV5 Walkerstar#Starwalker's#walking buddy.
"LV5 Walkerstar#Starwalker's#walking buddy.", "obj_darkcontroller_slash_Draw_0_gml_674_0"
);
578
        if (instance_exists(obj_room_man))
579
            char_desc = stringsetloc(
LV1
"LV1", "obj_darkcontroller_slash_Draw_0_gml_677_0"
);
580
    }
581
    if (charcoord == 2)
582
    {
583
        guts_amount = 2;
584
        rude_amount = 100;
585
        if (global.chapter == 1)
586
        {
587
            if (global.plot >= 154)
588
                rude_amount = 99;
589
        }
590
        if (global.chapter == 2)
591
            rude_amount -= 11;
592
        if (global.chapter == 3)
593
            guts_amount = 3;
594
        if (global.chapter == 5)
595
            guts_amount = 4;
596
        draw_text(xx + 100, ch_y[3], string_hash_to_newline(stringsetloc(
Rudeness
"Rudeness ", "obj_darkcontroller_slash_Draw_0_gml_251_0"
)));
597
        draw_item_icon(xx + 74, ch_y[3] + 6, 13);
598
        draw_text(xx + 230, ch_y[3], string_hash_to_newline(rude_amount));
599
        char_desc = stringsetloc(
LV5 Violent Violet#For that special#someone.
"LV5 Violent Violet#For that special#someone.", "obj_darkcontroller_slash_Draw_0_gml_710_0"
);
600
        if (global.plot >= 440)
601
            char_desc = stringsetloc(
LV5 Dark Vine#Assists in sealing#the Fountain.
"LV5 Dark Vine#Assists in sealing#the Fountain.", "obj_darkcontroller_slash_Draw_0_gml_714_0"
);
602
        if (global.chapter >= 4)
603
        {
604
            var showstat = false;
605
            var healcount = (global.mag[1] * 5) + 15 + (2 * global.flag[1045 susie_heal_practice]);
606
            if (global.flag[1569 betterheal] == 1)
607
                healcount = (global.mag[1] * 10) + (2 * global.flag[1045 susie_heal_practice]);
608
            var healing = stringsetloc(
Healing
"Healing", "obj_darkcontroller_slash_Draw_0_gml_615_0_b"
);
609
            var readstring = healing;
610
            var numstring = string(healcount);
611
            if (healcount)
612
                showstat = true;
613
            if (!showstat)
614
            {
615
                draw_set_color(c_dkgray);
616
                draw_text(xx + 100, ch_y[4], "???");
617
                draw_set_color(-1);
618
            }
619
            else
620
            {
621
                draw_set_color(-1);
622
                draw_text(xx + 100, ch_y[4], readstring);
623
                draw_text(xx + 74, ch_y[4], "*");
624
                draw_text(xx + 100 + 130, ch_y[4], numstring);
625
            }
626
        }
627
    }
628
    if (charcoord == 3)
629
    {
630
        guts_amount = 0;
631
        fluff_amount = 1;
632
        kindness_amount = 100;
633
        kind_icon = 10;
634
        kind_text = stringsetloc(
Kindness
"Kindness", "obj_darkcontroller_slash_Draw_0_gml_327_0"
);
635
        if (dograndom >= 97)
636
        {
637
            kind_icon = 11;
638
            kind_text = stringsetloc(
Dogness
"Dogness", "obj_darkcontroller_slash_Draw_0_gml_331_0"
);
639
            kindness_amount = 1;
640
        }
641
        char_desc = stringsetloc(
LV5 Artemisia#Goes well with tea.
"LV5 Artemisia#Goes well with tea.", "obj_darkcontroller_slash_Draw_0_gml_759_0"
);
642
        if (global.plot >= 440)
643
            char_desc = stringsetloc(
LV5 Dark Vine#Watering their#own thorns.
"LV5 Dark Vine#Watering their#own thorns.", "obj_darkcontroller_slash_Draw_0_gml_763_0"
);
644
        if (global.chapter == 5)
645
        {
646
            if (haveflowery)
647
                char_desc = stringsetloc(
LV99 Roommate#Your dad's his#best friend.
"LV99 Roommate#Your dad's his#best friend.", "obj_darkcontroller_slash_Draw_0_gml_770_0"
);
648
        }
649
        var __scale = 0.8;
650
        if (global.lang == "ja")
651
            __scale = 1;
652
        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);
653
        draw_item_icon(xx + 74, ch_y[4] + 6, 12);
654
        for (var i = 0; i < fluff_amount; i += 1)
655
            draw_item_icon(xx + 230 + (i * 20), ch_y[4] + 6, 12);
656
    }
657
    if (charcoord == 4)
658
    {
659
        guts_amount = 0;
660
        char_desc = stringsetloc(
LV5 Mistletoe#Things got#serious today.
"LV5 Mistletoe#Things got#serious today.", "obj_darkcontroller_slash_Draw_0_gml_790_0"
);
661
        var coldness_amount = clamp(47 + (global.flag[925 iceshocks] * 7), 47, 100);
662
        draw_text(xx + 100, ch_y[3], string_hash_to_newline(stringsetloc(
Coldness
"Coldness ", "obj_darkcontroller_slash_Draw_0_gml_388_0"
)));
663
        draw_item_icon(xx + 74, ch_y[3] + 6, 17);
664
        draw_text(xx + 230, ch_y[3], string_hash_to_newline(coldness_amount));
665
        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);
666
        draw_item_icon(xx + 74, ch_y[4] + 6, 16);
667
        var boldness_amount = min(-12 + ((global.plot - 70) * 3), 100);
668
        draw_text(xx + 230, ch_y[4], string_hash_to_newline(boldness_amount));
669
    }
670
    draw_text(xx + 320, yy + 105, string_hash_to_newline(char_desc));
671
    var guts_xoff = langopt(0, 16);
672
    for (var i = 0; i < guts_amount; i += 1)
673
        draw_item_icon(xx + 190 + (i * 20) + guts_xoff, ch_y[5] + 6, 9);
674
    atsum = global.at[global.char[coord]] + global.itemat[global.char[coord]][0] + global.itemat[global.char[coord]][1] + global.itemat[global.char[coord]][2];
675
    dfsum = global.df[global.char[coord]] + global.itemdf[global.char[coord]][0] + global.itemdf[global.char[coord]][1] + global.itemdf[global.char[coord]][2];
676
    magsum = global.mag[global.char[coord]] + global.itemmag[global.char[coord]][0] + global.itemmag[global.char[coord]][1] + global.itemmag[global.char[coord]][2];
677
    grazesum = global.grazeamt;
678
    sizesum = global.grazesize;
679
    for (var i = 0; i < 3; i += 1)
680
    {
681
        for (j = 0; j < 3; j += 1)
682
        {
683
            if (global.char[i] != 0)
684
            {
685
                grazesum += global.itemgrazeamt[global.char[i]][j];
686
                sizesum += global.itemgrazesize[global.char[i]][j];
687
            }
688
        }
689
    }
690
    if (haveflowery)
691
    {
692
        if (coord == 2)
693
        {
694
            if (global.submenu == 20 || global.submenu == 21)
695
            {
696
                atsum = 999;
697
                dfsum = 999;
698
                magsum = 999;
699
            }
700
        }
701
    }
702
    draw_text(xx + 230, ch_y[0], string_hash_to_newline(floor(atsum)));
703
    draw_text(xx + 230, ch_y[1], string_hash_to_newline(floor(dfsum)));
704
    draw_text(xx + 230, ch_y[2], string_hash_to_newline(floor(magsum)));
705
    var spell_xoff = langopt(0, -10);
706
    for (var i = 0; i < 6; i += 1)
707
    {
708
        if (global.spell[charcoord][i] > 0)
709
        {
710
            g = 0;
711
            if (global.spellusable[charcoord][i] == 0)
712
                g = 1;
713
            if (global.spellcost[charcoord][i] > global.tension)
714
                g = 1;
715
            if (g == 0)
716
                draw_set_color(c_white);
717
            if (g == 1)
718
                draw_set_color(c_gray);
719
            if (global.lang == "ja")
720
                draw_text_width(xx + 310, ch_y[i], string_hash_to_newline(string(round((global.spellcost[charcoord][i] / global.maxtension) * 100)) + "%"), 42);
721
            else
722
                draw_text(xx + 340, ch_y[i], string_hash_to_newline(string(round((global.spellcost[charcoord][i] / global.maxtension) * 100)) + "%"));
723
            var xloc = xx + 410;
724
            if (global.lang == "ja")
725
                xloc = xx + 390;
726
            draw_text(xloc + spell_xoff, ch_y[i], string_hash_to_newline(global.spellname[charcoord][i]));
727
        }
728
    }
729
    if (global.submenu == 21)
730
    {
731
        var jpxoff = 0;
732
        if (global.lang == "ja")
733
            jpxoff = 40;
734
        draw_sprite(spr_heart, 0, xx + 320 + jpxoff, yy + 240 + (global.submenucoord[21] * 25));
735
    }
736
    if (deschaver == 1)
737
    {
738
        draw_set_color(c_white);
739
        draw_text(xx + 20, yy + 10, string_hash_to_newline(global.spelldesc[charcoord][global.submenucoord[21]]));
740
    }
741
    xx = memxx;
742
}
743
if (global.menuno == 2)
744
{
745
    var memxx = xx;
746
    if (global.lang == "ja")
747
        xx -= 22;
748
    draw_set_color(c_black);
749
    var ch_vspace = langopt(27, 28);
750
    var ln_xoff1 = langopt(580, 626);
751
    var ln_xoff2 = langopt(590, 636);
752
    ossafe_fill_rectangle(xx + 60, yy + 90, xx + ln_xoff1, yy + 410, false);
753
    
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);
754
    draw_set_color(c_white);
755
    var vertlineTop = 
756
    {
757
        x: xx + 248 + 22,
758
        y: yy + 88,
759
        w: 6,
760
        h: 134
761
    };
762
    with (vertlineTop)
763
        draw_sprite_ext(spr_pxwhite, 0, x, y, w, h, 0, c_white, 1);
764
    var lhor = 
765
    {
766
        x: xx + 59,
767
        y: yy + 221,
768
        w: 522,
769
        h: 6
770
    };
771
    if (global.lang == "ja")
772
        lhor.w += 46;
773
    with (lhor)
774
        draw_sprite_ext(spr_pxwhite, 0, x, y, w, h, 0, c_white, 1);
775
    var midVer = 
776
    {
777
        x: xx + 301 + 22,
778
        y: yy + 222,
779
        w: 6,
780
        h: 189
781
    };
782
    with (midVer)
783
        draw_sprite_ext(spr_pxwhite, 0, x, y, w, h, 0, c_white, 1);
784
    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 + 118, yy + 86, 2, 2, 0, c_white, 1);
785
    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"), 1, xx + 376, yy + 86, 2, 2, 0, c_white, 1);
786
    if (global.submenucoord[11] == 1 || global.submenucoord[11] == 2)
787
        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"), 2, xx + 372, yy + 216, 2, 2, 0, c_white, 1);
788
    else
789
        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"), 3, xx + 372, yy + 216, 2, 2, 0, c_white, 1);
790
    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 + 116, yy + 216, 2, 2, 0, c_white, 1);
791
    coord = global.submenucoord[10];
792
    charcoord = global.char[coord];
793
    menusiner += 1;
794
    draw_set_color(c_white);
795
    
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");
796
    var charname_xoff = langopt(0, -25);
797
    draw_text(xx + 135 + charname_xoff, yy + 107, string_hash_to_newline(global.charname[charcoord]));
798
    for (var i = 0; i < 3; i += 1)
799
    {
800
        chosen = 0.4;
801
        if (i == coord)
802
            chosen = 1;
803
        var headssprite = 4648;
804
        if (global.flag[1311] == 1)
805
            headssprite = 4645;
806
        var dodraw = true;
807
        if (i == 2 && haveflowery)
808
        {
809
            dodraw = false;
810
            draw_sprite_ext(spr_flowery_equipchar, 0, 90 + xx + (i * 50) + 6, (160 + yy) - 8, 2, 2, 0, c_white, chosen);
811
        }
812
        if (dodraw)
813
            draw_sprite_ext(headssprite, global.char[i], 90 + xx + (i * 50), 160 + yy, 2, 2, 0, c_white, chosen);
814
    }
815
    if (global.submenu == 10)
816
        draw_sprite(spr_heart_harrows, menusiner / 20, 100 + xx + (coord * 50), 142 + yy);
817
    if (global.submenu != 11)
818
    {
819
        bicon = charcoord - 1;
820
        if (charcoord == 4)
821
            bicon = 5;
822
        draw_sprite_ext(spr_dmenu_equip, bicon, xx + 302, yy + 108, 2, 2, 0, c_white, 1);
823
        draw_sprite_ext(spr_dmenu_equip, 3, xx + 302, yy + 142, 2, 2, 0, c_white, 1);
824
        draw_sprite_ext(spr_dmenu_equip, 4, xx + 302, yy + 172, 2, 2, 0, c_white, 1);
825
    }
826
    if (global.submenu == 11)
827
    {
828
        bicon = charcoord - 1;
829
        if (charcoord == 4)
830
            bicon = 5;
831
        if (global.submenucoord[11] == 0)
832
            draw_sprite(spr_heart, 0, xx + 308, yy + 122);
833
        else
834
            draw_sprite_ext(spr_dmenu_equip, bicon, xx + 302, yy + 108, 2, 2, 0, c_white, 1);
835
        if (global.submenucoord[11] == 1)
836
            draw_sprite(spr_heart, 0, xx + 308, yy + 152);
837
        else
838
            draw_sprite_ext(spr_dmenu_equip, 3, xx + 302, yy + 142, 2, 2, 0, c_white, 1);
839
        if (global.submenucoord[11] == 2)
840
            draw_sprite(spr_heart, 0, xx + 308, yy + 182);
841
        else
842
            draw_sprite_ext(spr_dmenu_equip, 4, xx + 302, yy + 172, 2, 2, 0, c_white, 1);
843
    }
844
    if (charweaponname[charcoord] != " " || charweaponname[charcoord] != "")
845
    {
846
        draw_text(xx + 365, yy + 112, string_hash_to_newline(charweaponname[charcoord]));
847
        draw_item_icon(xx + 343, yy + 118, charweaponicon[charcoord]);
848
    }
849
    else
850
    {
851
        draw_set_color(c_dkgray);
852
        draw_text(xx + 365, yy + 112, string_hash_to_newline(stringsetloc(
(Nothing)
"(Nothing)", "obj_darkcontroller_slash_Draw_0_gml_453_0"
)));
853
        draw_set_color(c_white);
854
    }
855
    if (global.chararmor1[charcoord] != 0)
856
    {
857
        draw_text(xx + 365, yy + 142, string_hash_to_newline(chararmor1name[charcoord]));
858
        draw_item_icon(xx + 343, yy + 148, chararmor1icon[charcoord]);
859
    }
860
    else
861
    {
862
        draw_set_color(c_dkgray);
863
        draw_text(xx + 365, yy + 142, string_hash_to_newline(stringsetloc(
(Nothing)
"(Nothing)", "obj_darkcontroller_slash_Draw_0_gml_465_0"
)));
864
        draw_set_color(c_white);
865
    }
866
    if (global.chararmor2[charcoord] != 0)
867
    {
868
        draw_text(xx + 365, yy + 172, string_hash_to_newline(chararmor2name[charcoord]));
869
        draw_item_icon(xx + 343, yy + 178, chararmor2icon[charcoord]);
870
    }
871
    else
872
    {
873
        draw_set_color(c_dkgray);
874
        draw_text(xx + 365, yy + 172, string_hash_to_newline(stringsetloc(
(Nothing)
"(Nothing)", "obj_darkcontroller_slash_Draw_0_gml_477_0"
)));
875
        draw_set_color(c_white);
876
    }
877
    var eq_xoff = langopt(0, -6);
878
    if (global.submenucoord[11] == 0)
879
    {
880
        j = 0;
881
        for (var i = pagemax[0]; i < (pagemax[0] + 6); i += 1)
882
        {
883
            g = 0;
884
            if (charcoord == 1 && weaponchar1[i] == 0)
885
                g = 1;
886
            if (charcoord == 2 && weaponchar2[i] == 0)
887
                g = 1;
888
            if (charcoord == 3 && weaponchar3[i] == 0)
889
                g = 1;
890
            if (charcoord == 4 && weaponchar4[i] == 0)
891
                g = 1;
892
            if (g == 0)
893
                draw_set_color(c_white);
894
            if (g == 1)
895
                draw_set_color(c_gray);
896
            draw_item_icon(xx + 364 + eq_xoff, yy + 236 + (j * ch_vspace), weaponicon[i]);
897
            if (global.weapon[i] != 0)
898
            {
899
                draw_text(xx + 384 + eq_xoff, yy + 230 + (j * ch_vspace), string_hash_to_newline(weaponname[i]));
900
            }
901
            else
902
            {
903
                draw_set_color(c_dkgray);
904
                draw_text(xx + 384 + eq_xoff, yy + 230 + (j * ch_vspace), string_hash_to_newline(stringsetloc(
---------
"---------", "obj_darkcontroller_slash_Draw_0_gml_585_0"
)));
905
            }
906
            j += 1;
907
        }
908
    }
909
    if (global.submenucoord[11] == 1 || global.submenucoord[11] == 2)
910
    {
911
        j = 0;
912
        for (var i = pagemax[1]; i < (6 + pagemax[1]); i += 1)
913
        {
914
            g = 0;
915
            if (charcoord == 1 && armorchar1[i] == 0)
916
                g = 1;
917
            if (charcoord == 2 && armorchar2[i] == 0)
918
                g = 1;
919
            if (charcoord == 3 && armorchar3[i] == 0)
920
                g = 1;
921
            if (charcoord == 4 && armorchar4[i] == 0)
922
                g = 1;
923
            if (g == 0)
924
                draw_set_color(c_white);
925
            if (g == 1)
926
                draw_set_color(c_gray);
927
            draw_item_icon(xx + 364 + eq_xoff, yy + 236 + (j * ch_vspace), armoricon[i]);
928
            if (global.armor[i] != 0)
929
            {
930
                draw_text(xx + 384 + eq_xoff, yy + 230 + (j * ch_vspace), string_hash_to_newline(armorname[i]));
931
            }
932
            else
933
            {
934
                draw_set_color(c_dkgray);
935
                draw_text(xx + 384 + eq_xoff, yy + 230 + (j * ch_vspace), string_hash_to_newline(stringsetloc(
---------
"---------", "obj_darkcontroller_slash_Draw_0_gml_609_0"
)));
936
            }
937
            j += 1;
938
        }
939
    }
940
    if (global.submenu == 12 || global.submenu == 13 || global.submenu == 14)
941
    {
942
        var __equipmenumax = 47;
943
        var scroll_xoff = langopt(0, 50);
944
        if (global.submenu == 12)
945
            pm = 0;
946
        else
947
            pm = 1;
948
        draw_sprite(spr_heart, 0, xx + 344 + eq_xoff, yy + 240 + ((global.submenucoord[global.submenu] - pagemax[pm]) * 27));
949
        draw_set_color(c_dkgray);
950
        ossafe_fill_rectangle(xx + 555 + scroll_xoff, yy + 260, xx + 560 + scroll_xoff, yy + 263 + 115, false);
951
        draw_set_color(c_white);
952
        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);
953
        if (pagemax[pm] > 0)
954
            draw_sprite_ext(spr_morearrow, 0, xx + 551 + scroll_xoff, (yy + 250) - (sin(cur_jewel / 12) * 3), 1, -1, 0, c_white, 1);
955
        if ((5 + pagemax[pm]) < __equipmenumax)
956
            draw_sprite_ext(spr_morearrow, 0, xx + 551 + scroll_xoff, yy + 385 + (sin(cur_jewel / 12) * 3), 1, 1, 0, c_white, 1);
957
    }
958
    draw_set_color(c_white);
959
    var descoff = (global.lang == "en") ? 0 : 20;
960
    var txt = "";
961
    if (global.submenu == 11)
962
    {
963
        if (global.submenucoord[11] == 0)
964
            txt = charweapondesc[charcoord];
965
        if (global.submenucoord[11] == 1)
966
            txt = chararmor1desc[charcoord];
967
        if (global.submenucoord[11] == 2)
968
            txt = chararmor2desc[charcoord];
969
    }
970
    if (global.submenu == 12)
971
        txt = weapondesc[global.submenucoord[12]];
972
    if (global.submenu == 13 || global.submenu == 14)
973
        txt = armordesc[global.submenucoord[global.submenu]];
974
    if (txt != "")
975
        draw_text(xx + 20 + descoff, yy + 10, string_hash_to_newline(txt));
976
    draw_set_color(c_white);
977
    draw_text(xx + 100, yy + 230 + (ch_vspace * 0), string_hash_to_newline(stringsetloc(
Attack:
"Attack: ", "obj_darkcontroller_slash_Draw_0_gml_586_0"
)));
978
    draw_item_icon(xx + 74, yy + 236 + (ch_vspace * 0), 1);
979
    draw_text(xx + 100, yy + 230 + (ch_vspace * 1), string_hash_to_newline(stringsetloc(
Defense:
"Defense: ", "obj_darkcontroller_slash_Draw_0_gml_587_0"
)));
980
    draw_item_icon(xx + 74, yy + 236 + (ch_vspace * 1), 4);
981
    draw_text(xx + 100, yy + 230 + (ch_vspace * 2), string_hash_to_newline(stringsetloc(
Magic:
"Magic: ", "obj_darkcontroller_slash_Draw_0_gml_588_0"
)));
982
    draw_item_icon(xx + 74, yy + 236 + (ch_vspace * 2), 5);
983
    atsum = global.at[global.char[coord]] + global.itemat[global.char[coord]][0] + global.itemat[global.char[coord]][1] + global.itemat[global.char[coord]][2];
984
    dfsum = global.df[global.char[coord]] + global.itemdf[global.char[coord]][0] + global.itemdf[global.char[coord]][1] + global.itemdf[global.char[coord]][2];
985
    magsum = global.mag[global.char[coord]] + global.itemmag[global.char[coord]][0] + global.itemmag[global.char[coord]][1] + global.itemmag[global.char[coord]][2];
986
    atsum = floor(atsum);
987
    dfsum = floor(dfsum);
988
    magsum = floor(magsum);
989
    grazesum = global.grazeamt;
990
    sizesum = global.grazesize;
991
    for (var i = 0; i < 3; i += 1)
992
    {
993
        for (j = 0; j < 3; j += 1)
994
        {
995
            if (global.char[i] != 0)
996
            {
997
                grazesum += global.itemgrazeamt[global.char[i]][j];
998
                sizesum += global.itemgrazesize[global.char[i]][j];
999
            }
1000
        }
1001
    }
1002
    if (global.submenu == 12 || global.submenu == 13 || global.submenu == 14)
1003
    {
1004
        cur = global.submenucoord[global.submenu];
1005
        g = 0;
1006
        if (global.submenu == 12)
1007
        {
1008
            if (charcoord == 1 && weaponchar1[cur] == 0)
1009
                g = 1;
1010
            if (charcoord == 2 && weaponchar2[cur] == 0)
1011
                g = 1;
1012
            if (charcoord == 3 && weaponchar3[cur] == 0)
1013
                g = 1;
1014
            if (charcoord == 4 && weaponchar4[cur] == 0)
1015
                g = 1;
1016
        }
1017
        if (global.submenu == 13 || global.submenu == 14)
1018
        {
1019
            if (charcoord == 1 && armorchar1[cur] == 0)
1020
                g = 1;
1021
            if (charcoord == 2 && armorchar2[cur] == 0)
1022
                g = 1;
1023
            if (charcoord == 3 && armorchar3[cur] == 0)
1024
                g = 1;
1025
            if (charcoord == 4 && armorchar4[cur] == 0)
1026
                g = 1;
1027
        }
1028
        _abilitytext[0] = charweaponability[charcoord];
1029
        _abilitytext[1] = chararmor1ability[charcoord];
1030
        _abilitytext[2] = chararmor2ability[charcoord];
1031
        _abilitycolor[0] = 4210752;
1032
        _abilitycolor[1] = 4210752;
1033
        _abilitycolor[2] = 4210752;
1034
        _abilityicon[0] = charweaponabilityicon[charcoord];
1035
        _abilityicon[1] = chararmor1abilityicon[charcoord];
1036
        _abilityicon[2] = chararmor2abilityicon[charcoord];
1037
        if (g == 0 && global.submenu == 12)
1038
        {
1039
            atup = weaponat[cur] - global.itemat[charcoord][0];
1040
            dfup = weapondf[cur] - global.itemdf[charcoord][0];
1041
            magup = weaponmag[cur] - global.itemmag[charcoord][0];
1042
            styleup = weaponstyle[cur];
1043
            grazeup = weapongrazeamt[cur] - global.itemgrazeamt[charcoord][0];
1044
            sizeup = weapongrazesize[cur] - global.itemgrazesize[charcoord][0];
1045
            _abilitycolor[0] = 16777215;
1046
            _abilityicon[0] = weaponabilityicon[cur];
1047
            if (weaponability[cur] != _abilitytext[0])
1048
            {
1049
                _abilitycolor[0] = 65535;
1050
                if (weaponability[cur] == " " || weaponability[cur] == "")
1051
                    _abilitycolor[0] = 255;
1052
            }
1053
            _abilitytext[0] = weaponability[cur];
1054
            draw_set_color(c_white);
1055
            var atupsign = "";
1056
            if (atup > 0)
1057
            {
1058
                draw_set_color(c_yellow);
1059
                atupsign = "+";
1060
            }
1061
            if (atup < 0)
1062
                draw_set_color(c_red);
1063
            var s1_string = langopt(string(atsum + atup) + "(" + atupsign + string(atup) + ")", string(atsum + atup));
1064
            draw_text(xx + 230, yy + 230 + (ch_vspace * 0), string(s1_string));
1065
            draw_set_color(c_white);
1066
            if (dfup > 0)
1067
                draw_set_color(c_yellow);
1068
            if (dfup < 0)
1069
                draw_set_color(c_red);
1070
            draw_text(xx + 230, yy + 230 + (ch_vspace * 1), string(dfsum + dfup));
1071
            draw_set_color(c_white);
1072
            if (magup > 0)
1073
                draw_set_color(c_yellow);
1074
            if (magup < 0)
1075
                draw_set_color(c_red);
1076
            draw_text(xx + 230, yy + 230 + (ch_vspace * 2), string(magsum + magup));
1077
        }
1078
        if (g == 0)
1079
        {
1080
            if (global.submenu == 13 || global.submenu == 14)
1081
            {
1082
                arno = global.submenu - 12;
1083
                atup = armorat[cur] - global.itemat[charcoord][arno];
1084
                dfup = armordf[cur] - global.itemdf[charcoord][arno];
1085
                magup = armormag[cur] - global.itemmag[charcoord][arno];
1086
                grazeup = armorgrazeamt[cur] - global.itemgrazeamt[charcoord][arno];
1087
                sizeup = armorgrazesize[cur] - global.itemgrazesize[charcoord][arno];
1088
                _abilitycolor[arno] = 16777215;
1089
                _abilityicon[arno] = armorabilityicon[cur];
1090
                if (armorability[cur] != _abilitytext[arno])
1091
                {
1092
                    _abilitycolor[arno] = 65535;
1093
                    if (armorability[cur] == " " || armorability[cur] == "")
1094
                        _abilitycolor[arno] = 255;
1095
                }
1096
                _abilitytext[arno] = armorability[cur];
1097
                draw_set_color(c_white);
1098
                if (atup > 0)
1099
                    draw_set_color(c_yellow);
1100
                if (atup < 0)
1101
                    draw_set_color(c_red);
1102
                draw_text(xx + 230, yy + 230 + (ch_vspace * 0), string(atsum + atup));
1103
                draw_set_color(c_white);
1104
                if (dfup > 0)
1105
                    draw_set_color(c_yellow);
1106
                if (dfup < 0)
1107
                    draw_set_color(c_red);
1108
                draw_text(xx + 230, yy + 230 + (ch_vspace * 1), string(dfsum + dfup));
1109
                draw_set_color(c_white);
1110
                if (magup > 0)
1111
                    draw_set_color(c_yellow);
1112
                if (magup < 0)
1113
                    draw_set_color(c_red);
1114
                draw_text(xx + 230, yy + 230 + (ch_vspace * 2), string(magsum + magup));
1115
            }
1116
        }
1117
        if (g == 1)
1118
        {
1119
            draw_text(xx + 230, yy + 230 + (ch_vspace * 0), string(atsum));
1120
            draw_text(xx + 230, yy + 230 + (ch_vspace * 1), string(dfsum));
1121
            draw_text(xx + 230, yy + 230 + (ch_vspace * 2), string(magsum));
1122
        }
1123
        for (var i = 0; i < 3; i += 1)
1124
        {
1125
            if (_abilitytext[i] == " " || _abilitytext[i] == "")
1126
            {
1127
                draw_set_color(_abilitycolor[i]);
1128
                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"
)));
1129
            }
1130
            else
1131
            {
1132
                draw_set_color(_abilitycolor[i]);
1133
                draw_text(xx + 100, yy + 230 + (ch_vspace * (i + 3)), string_hash_to_newline(_abilitytext[i]));
1134
                draw_set_color(c_orange);
1135
                draw_item_icon(xx + 74, yy + 238 + (ch_vspace * (i + 3)), _abilityicon[i]);
1136
            }
1137
        }
1138
    }
1139
    else
1140
    {
1141
        draw_text(xx + 230, yy + 230 + (ch_vspace * 0), string(atsum));
1142
        draw_text(xx + 230, yy + 230 + (ch_vspace * 1), string(dfsum));
1143
        draw_text(xx + 230, yy + 230 + (ch_vspace * 2), string(magsum));
1144
        _abilitytext[0] = charweaponability[charcoord];
1145
        _abilitytext[1] = chararmor1ability[charcoord];
1146
        _abilitytext[2] = chararmor2ability[charcoord];
1147
        _abilitycolor[0] = 16777215;
1148
        _abilitycolor[1] = 16777215;
1149
        _abilitycolor[2] = 16777215;
1150
        _abilityicon[0] = charweaponabilityicon[charcoord];
1151
        _abilityicon[1] = chararmor1abilityicon[charcoord];
1152
        _abilityicon[2] = chararmor2abilityicon[charcoord];
1153
        for (var i = 0; i < 3; i += 1)
1154
        {
1155
            if (_abilitytext[i] == " " || _abilitytext[i] == "")
1156
            {
1157
                draw_set_color(c_dkgray);
1158
                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"
)));
1159
            }
1160
            else
1161
            {
1162
                draw_set_color(_abilitycolor[i]);
1163
                draw_text(xx + 100, yy + 230 + (ch_vspace * (i + 3)), string_hash_to_newline(_abilitytext[i]));
1164
                draw_set_color(c_orange);
1165
                draw_item_icon(xx + 74, yy + 238 + (ch_vspace * (i + 3)), _abilityicon[i]);
1166
            }
1167
        }
1168
    }
1169
    xx = memxx;
1170
}
1171
if (global.menuno == 1)
1172
{
1173
    if (evidencecheck == -1)
1174
    {
1175
        evidencecheck = 
scr_keyitemcheck
scr_keyitemcheck

function
scr_keyitemcheck(arg0)
{ haveit = 0; itemcount = 0; for (i = 0; i < 12; i += 1) { if (global.keyitem[i] == arg0) haveit = 1; if (global.keyitem[i] == arg0) itemcount += 1; } return haveit; }
(20) +
scr_keyitemcheck
scr_keyitemcheck

function
scr_keyitemcheck(arg0)
{ haveit = 0; itemcount = 0; for (i = 0; i < 12; i += 1) { if (global.keyitem[i] == arg0) haveit = 1; if (global.keyitem[i] == arg0) itemcount += 1; } return haveit; }
(21) +
scr_keyitemcheck
scr_keyitemcheck

function
scr_keyitemcheck(arg0)
{ haveit = 0; itemcount = 0; for (i = 0; i < 12; i += 1) { if (global.keyitem[i] == arg0) haveit = 1; if (global.keyitem[i] == arg0) itemcount += 1; } return haveit; }
(22) +
scr_keyitemcheck
scr_keyitemcheck

function
scr_keyitemcheck(arg0)
{ haveit = 0; itemcount = 0; for (i = 0; i < 12; i += 1) { if (global.keyitem[i] == arg0) haveit = 1; if (global.keyitem[i] == arg0) itemcount += 1; } return haveit; }
(23) +
scr_keyitemcheck
scr_keyitemcheck

function
scr_keyitemcheck(arg0)
{ haveit = 0; itemcount = 0; for (i = 0; i < 12; i += 1) { if (global.keyitem[i] == arg0) haveit = 1; if (global.keyitem[i] == arg0) itemcount += 1; } return haveit; }
(26) +
scr_keyitemcheck
scr_keyitemcheck

function
scr_keyitemcheck(arg0)
{ haveit = 0; itemcount = 0; for (i = 0; i < 12; i += 1) { if (global.keyitem[i] == arg0) haveit = 1; if (global.keyitem[i] == arg0) itemcount += 1; } return haveit; }
(27) +
scr_keyitemcheck
scr_keyitemcheck

function
scr_keyitemcheck(arg0)
{ haveit = 0; itemcount = 0; for (i = 0; i < 12; i += 1) { if (global.keyitem[i] == arg0) haveit = 1; if (global.keyitem[i] == arg0) itemcount += 1; } return haveit; }
(28);
1176
        evidencecheck = clamp(evidencecheck, 0, 1);
1177
    }
1178
    draw_set_color(c_black);
1179
    ossafe_fill_rectangle(xx + langopt(70, 46), yy + 90, xx + langopt(570, 594), yy + 360, false);
1180
    
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);
1181
    
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");
1182
    
scr_itemname
scr_itemname

function
scr_itemname()
{ for (i = 0; i < 12; i += 1) { itemid = global.item[i];
scr_itemnamelist();
} }
();
1183
    var _xoff = 0;
1184
    if (evidencecheck)
1185
    {
1186
        _xoff = -35;
1187
        if (global.lang == "ja")
1188
            _xoff = -35;
1189
    }
1190
    if (global.submenu == 1)
1191
        draw_sprite(spr_heart, 0, xx + langopt(155, 134) + (120 * global.submenucoord[1]) + _xoff, yy + 120);
1192
    draw_set_color(c_white);
1193
    var itemoff = langopt([180, 300, 420], [158, 278, 398]);
1194
    if (global.submenu > 1)
1195
    {
1196
        if (global.submenucoord[1] == 0)
1197
            draw_set_color(c_orange);
1198
        else
1199
            draw_set_color(c_gray);
1200
    }
1201
    draw_text(xx + itemoff[0] + _xoff, yy + 110, string_hash_to_newline(stringsetloc(
USE
"USE", "obj_darkcontroller_slash_Draw_0_gml_837_0"
)));
1202
    if (global.submenu > 1)
1203
    {
1204
        if (global.submenucoord[1] == 1)
1205
            draw_set_color(c_orange);
1206
        else
1207
            draw_set_color(c_gray);
1208
    }
1209
    draw_text(xx + itemoff[1] + _xoff, yy + 110, string_hash_to_newline(stringsetloc(
TOSS
"TOSS", "obj_darkcontroller_slash_Draw_0_gml_839_0"
)));
1210
    if (global.submenu > 1)
1211
    {
1212
        if (global.submenucoord[1] == 2)
1213
            draw_set_color(c_orange);
1214
        else
1215
            draw_set_color(c_gray);
1216
    }
1217
    var keystring = stringsetloc(
KEY
"KEY", "obj_darkcontroller_slash_Draw_0_gml_841_0"
);
1218
    if (evidencecheck)
1219
        keystring = stringsetloc(
EVIDENCE
"EVIDENCE", "obj_darkcontroller_slash_Draw_0_gml_1419_0"
);
1220
    draw_text(xx + itemoff[2] + _xoff, yy + 110, string_hash_to_newline(keystring));
1221
    if (global.submenu >= 2 && global.submenu <= 6 && global.submenu != 4)
1222
    {
1223
        sm = global.submenucoord[2];
1224
        yheart = (floor(sm / 2) * 30) + 162 + yy;
1225
        xheart = langopt(120, 72) + xx;
1226
        if (sm == 1 || sm == 3 || sm == 5 || sm == 7 || sm == 9 || sm == 11)
1227
            xheart = langopt(330, 334) + xx;
1228
        if (global.submenu == 2 || global.submenu == 3)
1229
            draw_sprite(spr_heart, 0, xheart, yheart);
1230
        draw_set_color(c_white);
1231
        draw_text(xx + 20, yy + 10, string_hash_to_newline(itemdesc[global.submenucoord[2]]));
1232
    }
1233
    if (global.submenu == 7)
1234
    {
1235
        draw_set_color(c_white);
1236
        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")));
1237
    }
1238
    if (global.submenucoord[1] != 2)
1239
    {
1240
        draw_set_color(bcolor);
1241
        for (var i = 0; i < 6; i += 1)
1242
        {
1243
            draw_text(xx + langopt(148, 94), yy + 154 + (30 * i), string_hash_to_newline(global.itemname[i * 2]));
1244
            draw_text(xx + 358, yy + 154 + (30 * i), string_hash_to_newline(global.itemname[(i * 2) + 1]));
1245
        }
1246
        draw_set_color(c_white);
1247
        if (global.submenu == 1)
1248
            draw_set_color(c_gray);
1249
        for (var i = 0; i < 6; i += 1)
1250
        {
1251
            draw_text(xx + langopt(146, 92), yy + 152 + (30 * i), string_hash_to_newline(global.itemname[i * 2]));
1252
            draw_text(xx + 356, yy + 152 + (30 * i), string_hash_to_newline(global.itemname[(i * 2) + 1]));
1253
        }
1254
    }
1255
    if (global.submenucoord[1] == 2)
1256
    {
1257
        
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; } }
();
1258
        draw_set_color(bcolor);
1259
        for (var i = 0; i < 6; i += 1)
1260
        {
1261
            draw_text(xx + langopt(148, 94), yy + 154 + (30 * i), string_hash_to_newline(keyitemname[i * 2]));
1262
            draw_text(xx + 358, yy + 154 + (30 * i), string_hash_to_newline(keyitemname[(i * 2) + 1]));
1263
        }
1264
        draw_set_color(c_white);
1265
        if (global.submenu == 1)
1266
            draw_set_color(c_gray);
1267
        for (var i = 0; i < 6; i += 1)
1268
        {
1269
            if (global.submenu == 4)
1270
            {
1271
                if (keyitemusable[i * 2] == 1)
1272
                    draw_set_color(c_white);
1273
                else
1274
                    draw_set_color(c_ltgray);
1275
            }
1276
            draw_text(xx + langopt(146, 92), yy + 152 + (30 * i), string_hash_to_newline(keyitemname[i * 2]));
1277
            if (global.submenu == 4)
1278
            {
1279
                if (keyitemusable[(i * 2) + 1] == 1)
1280
                    draw_set_color(c_white);
1281
                else
1282
                    draw_set_color(c_ltgray);
1283
            }
1284
            draw_text(xx + 356, yy + 152 + (30 * i), string_hash_to_newline(keyitemname[(i * 2) + 1]));
1285
        }
1286
        if (global.submenu == 4)
1287
        {
1288
            sm = global.submenucoord[4];
1289
            yheart = (floor(sm / 2) * 30) + 162 + yy;
1290
            xheart = langopt(120, 72) + xx;
1291
            if (sm == 1 || sm == 3 || sm == 5 || sm == 7 || sm == 9 || sm == 11)
1292
                xheart = langopt(330, 334) + xx;
1293
            draw_sprite(spr_heart, 0, xheart, yheart);
1294
            draw_set_color(c_white);
1295
            draw_text(xx + 20, yy + 10, string_hash_to_newline(keyitemdesc[global.submenucoord[4]]));
1296
        }
1297
    }
1298
}
1299
if (haveflowery)
1300
{
1301
    var alpha = 1;
1302
    if (global.submenu == 10 || global.submenu == 20)
1303
    {
1304
        if (global.submenucoord[global.submenu] == 2)
1305
        {
1306
            var _box = 
1307
            {
1308
                x: xx + 71,
1309
                y: yy + 110,
1310
                w: 171,
1311
                h: 26
1312
            };
1313
            if (global.lang == "ja")
1314
            {
1315
                _box = 
1316
                {
1317
                    x: xx + 52,
1318
                    y: yy + 108,
1319
                    w: 183,
1320
                    h: 30
1321
                };
1322
                if (global.submenu == 20)
1323
                {
1324
                    _box = 
1325
                    {
1326
                        x: xx + 72,
1327
                        y: yy + 108,
1328
                        w: 193,
1329
                        h: 30
1330
                    };
1331
                }
1332
            }
1333
            with (_box)
1334
                draw_sprite_ext(spr_pxwhite, 0, x, y, w, h, 0, c_black, 1);
1335
            draw_set_halign(fa_center);
1336
            var flname = stringsetloc(
Flowery
"Flowery", "obj_darkcontroller_slash_Draw_0_gml_1545_0"
);
1337
            draw_set_color(c_white);
1338
            
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");
1339
            var fname = 
1340
            {
1341
                x: (xx + 176) - 11,
1342
                y: (yy + 106) - 1
1343
            };
1344
            if (global.submenu == 10)
1345
            {
1346
                fname = 
1347
                {
1348
                    x: ((xx + 176) - 11) + 5,
1349
                    y: ((yy + 106) - 1) + 2
1350
                };
1351
            }
1352
            if (global.lang == "ja")
1353
            {
1354
                fname = 
1355
                {
1356
                    x: xx + 142,
1357
                    y: yy + 106 + 1
1358
                };
1359
                if (global.submenu == 20)
1360
                {
1361
                    fname = 
1362
                    {
1363
                        x: xx + 142 + 28,
1364
                        y: yy + 106
1365
                    };
1366
                }
1367
            }
1368
            draw_text(fname.x, fname.y, flname);
1369
            draw_set_halign(fa_left);
1370
        }
1371
    }
1372
    if ((global.submenu == 10 || global.submenu == 20) && coord == 2)
1373
    {
1374
        var boxwid = 222;
1375
        if (global.submenu == 10)
1376
            boxwid = 220;
1377
        if (global.lang == "en")
1378
        {
1379
            draw_sprite_ext(spr_pxwhite, 0, xx + 70, yy + 233, boxwid, 168, 0, #010000, alpha);
1380
        }
1381
        else
1382
        {
1383
            var _box = 
1384
            {
1385
                x: xx + 46,
1386
                y: yy + 230,
1387
                w: 255,
1388
                h: 171
1389
            };
1390
            if (global.submenu == 20)
1391
            {
1392
                _box = 
1393
                {
1394
                    x: xx + 53,
1395
                    y: yy + 227,
1396
                    w: 224,
1397
                    h: 174
1398
                };
1399
            }
1400
            draw_sprite_ext(spr_pxwhite, 0, _box.x, _box.y, _box.w, _box.h, 0, c_black, alpha);
1401
        }
1402
        var stat = [];
1403
        stat[0] = stringsetloc(
Attack:
"Attack:", "obj_darkcontroller_slash_Draw_0_gml_1535_0"
);
1404
        stat[1] = stringsetloc(
Defense:
"Defense:", "obj_darkcontroller_slash_Draw_0_gml_1536_0"
);
1405
        stat[2] = stringsetloc(
Magic:
"Magic:", "obj_darkcontroller_slash_Draw_0_gml_1537_0"
);
1406
        stat[3] = stringsetloc(
Flowers:
"Flowers:", "obj_darkcontroller_slash_Draw_0_gml_1538_0"
);
1407
        stat[4] = stringsetloc(
Floweriness:
"Floweriness:", "obj_darkcontroller_slash_Draw_0_gml_1539_0"
);
1408
        stat[5] = stringsetloc(
Guts:
"Guts:", "obj_darkcontroller_slash_Draw_0_gml_1540_0"
);
1409
        var statamt = [];
1410
        statamt[0] = "99";
1411
        statamt[1] = "99";
1412
        statamt[2] = "99";
1413
        statamt[3] = "99";
1414
        statamt[4] = " ";
1415
        statamt[5] = " ";
1416
        var icon = [];
1417
        icon[0] = [4392, 1, 16777215, 0];
1418
        icon[1] = [4392, 4, 16777215, 0];
1419
        icon[2] = [4392, 5, 16777215, 0];
1420
        icon[3] = [4392, 21, -1, 2];
1421
        icon[4] = [4392, 21, -1, 0];
1422
        icon[5] = [4392, 21, -1, 0];
1423
        var space = 27;
1424
        if (global.submenu == 20)
1425
            space = 25;
1426
        if (global.lang == "ja")
1427
        {
1428
            if (global.submenu == 20)
1429
                space = 28;
1430
        }
1431
        
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");
1432
        for (var i = 0; i < array_length(stat); i++)
1433
        {
1434
            var scale = 1;
1435
            var width = string_width(stat[i]);
1436
            var maxwidth = 122;
1437
            var _p = 
1438
            {
1439
                x1: xx + 100,
1440
                y1: yy + 230,
1441
                x2: xx + 100 + 130,
1442
                y2: yy + 230
1443
            };
1444
            if (global.lang == "ja")
1445
            {
1446
                _p.x1 -= 15;
1447
                maxwidth = 131;
1448
                _p.x2 -= 15;
1449
            }
1450
            if (width > maxwidth)
1451
                scale = maxwidth / width;
1452
            draw_text_transformed(_p.x1, _p.y1 + (i * space), stat[i], scale, 1, 0);
1453
            draw_text(_p.x2, _p.y2 + (i * space), statamt[i]);
1454
            var __jxoff = 0;
1455
            if (global.lang == "ja")
1456
                __jxoff -= 15;
1457
            draw_sprite_ext(icon[i][0], icon[i][1], xx + 74 + __jxoff, yy + 236 + (i * space) + icon[i][3], 2, 2, 0, icon[i][2], 1);
1458
        }
1459
        var f = 
1460
        {
1461
            x: xx + 228,
1462
            x2: xx + 212,
1463
            y: yy + 336
1464
        };
1465
        if (global.submenu == 10)
1466
        {
1467
            f = 
1468
            {
1469
                x: xx + 230,
1470
                x2: xx + 214,
1471
                y: yy + 336 + 8
1472
            };
1473
        }
1474
        if (global.lang == "ja")
1475
        {
1476
            f = 
1477
            {
1478
                x: (xx + 228) - 13,
1479
                x2: (xx + 212) - 15,
1480
                y: yy + 336 + 12
1481
            };
1482
            if (global.submenu == 10)
1483
            {
1484
                f = 
1485
                {
1486
                    x: (xx + 230) - 15,
1487
                    x2: (xx + 214) - 15,
1488
                    y: yy + 336 + 8
1489
                };
1490
            }
1491
        }
1492
        for (var i = 0; i < 5; i++)
1493
        {
1494
            with (f)
1495
            {
1496
                if (i < 3)
1497
                    draw_sprite_ext(spr_dmenu_items_floweryhead, 0, x + (16 * i), y, 2, 2, 0, -1, 1);
1498
                draw_sprite_ext(spr_dmenu_items_floweryhead, 0, x2 + (16 * i), y + space, 2, 2, 0, -1, 1);
1499
            }
1500
        }
1501
    }
1502
    if (global.submenu == 10 && coord == 2)
1503
    {
1504
        var flbox = 
1505
        {
1506
            x: xx + 336,
1507
            y: yy + 114,
1508
            w: 234,
1509
            h: 91
1510
        };
1511
        if (global.lang == "ja")
1512
        {
1513
            flbox = 
1514
            {
1515
                x: xx + 312,
1516
                y: yy + 109,
1517
                w: 285,
1518
                h: 103
1519
            };
1520
        }
1521
        with (flbox)
1522
            draw_sprite_ext(spr_pxwhite, 0, x, y, w, h, 0, c_black, 1);
1523
        var equipped = [stringsetloc(
WinningSmile
"WinningSmile", "obj_darkcontroller_slash_Draw_0_gml_1584_0"
), stringsetloc(
PetalMantle
"PetalMantle", "obj_darkcontroller_slash_Draw_0_gml_1585_0"
), stringsetloc(
SundayBest
"SundayBest", "obj_darkcontroller_slash_Draw_0_gml_1586_0"
)];
1524
        var space = 30;
1525
        var icon = [[4392, 21], [4392, 4], [4392, 4]];
1526
        var loff = 0;
1527
        if (global.lang == "ja")
1528
            loff = -22;
1529
        for (var i = 0; i < array_length(equipped); i++)
1530
        {
1531
            draw_text(xx + 365 + loff, ((yy + 120) - 8) + (i * space), equipped[i]);
1532
            draw_sprite_ext(icon[i][0], icon[i][1], xx + 343 + loff, yy + 118 + (i * space), 2, 2, 0, c_white, 1);
1533
        }
1534
        draw_sprite_ext(spr_pxwhite, 0, xx + 297 + loff, (yy + 112) - 4, 36, 34, 0, #010000, 1);
1535
        draw_sprite_ext(spr_dmenu_equip_flowery, 0, xx + 302 + loff, (yy + 112) - 4 - 6, 2, 2, 0, -1, 1);
1536
    }
1537
    if (global.submenu == 20 && coord == 2)
1538
    {
1539
        var _box = 
1540
        {
1541
            x: xx + 302,
1542
            y: yy + 235,
1543
            w: 273,
1544
            h: 160
1545
        };
1546
        if (global.lang == "ja")
1547
        {
1548
            _box = 
1549
            {
1550
                x: xx + 287,
1551
                y: yy + 234,
1552
                w: 296,
1553
                h: 161
1554
            };
1555
        }
1556
        draw_sprite_ext(spr_pxwhite, 0, _box.x, _box.y, _box.w, _box.h, 0, #010000, alpha);
1557
        var spell = [];
1558
        spell[0] = stringsetloc(
Sanfrandisco
"Sanfrandisco", "obj_darkcontroller_slash_Draw_0_gml_1607_0"
);
1559
        spell[1] = stringsetloc(
MyJarona
"MyJarona", "obj_darkcontroller_slash_Draw_0_gml_1608_0"
);
1560
        spell[2] = stringsetloc(
Ez2Dance
"Ez2Dance", "obj_darkcontroller_slash_Draw_0_gml_1609_0"
);
1561
        spell[3] = stringsetloc(
PrismRush
"PrismRush", "obj_darkcontroller_slash_Draw_0_gml_1610_0"
);
1562
        spell[4] = stringsetloc(
Afinihug
"Afinihug", "obj_darkcontroller_slash_Draw_0_gml_1611_0"
);
1563
        spell[5] = stringsetloc(
HoneyKiss
"HoneyKiss", "obj_darkcontroller_slash_Draw_0_gml_1612_0"
);
1564
        var cost = [];
1565
        cost[1] = 0;
1566
        cost[1] = 99;
1567
        cost[2] = 22;
1568
        cost[3] = 111;
1569
        cost[4] = 222;
1570
        cost[5] = 333;
1571
        var space = 25;
1572
        
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");
1573
        for (var i = 0; i < 6; i++)
1574
        {
1575
            var scale = 1;
1576
            var width = string_width(spell[i]);
1577
            var maxwidth = 144;
1578
            var _x = xx + 410;
1579
            if (global.lang == "ja")
1580
            {
1581
                _x -= 45;
1582
                space = 28;
1583
                maxwidth = 212;
1584
            }
1585
            if (width > maxwidth)
1586
                scale = maxwidth / width;
1587
            draw_text_transformed(_x, yy + 230 + (i * space), spell[i], scale, 1, 0);
1588
            draw_text_transformed(_x - 70, yy + 230 + (i * space), string(cost[i]) + "%", 1, 1, 0);
1589
        }
1590
    }
1591
}