Deltarune (Chapter 1) script viewer

← back to main script listing

gml_Object_obj_darkcontroller_Draw_0

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

function
scr_charbox()
{ for (c = 0; c < 3; c += 1) { if (havechar[c] == 1) { if (c == 0) charcolor = hpcolor[0]; if (c == 1) charcolor = hpcolor[1]; if (c == 2) charcolor = hpcolor[2]; gc = global.charturn; xchunk = 0; if (charpos[c] == 0 && chartotal == 3) xchunk = 0; if (charpos[c] == 1 && chartotal == 3) xchunk = 212; if (charpos[c] == 2 && chartotal == 3) xchunk = 424; if (charpos[c] == 0 && chartotal == 2) xchunk = 106; if (charpos[c] == 1 && chartotal == 2) xchunk = 326; if (charpos[c] == 0 && chartotal == 1) xchunk = 212; 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) { for (sglowi = 0; sglowi < 3; sglowi += 1) { if (global.monster[sglowi] == 1 && global.monsterstatus[sglowi] == 1 && global.tension >= 40) pacify_glow = 1; if (global.encounterno == 31) pacify_glow = 0; } } draw_sprite(
scr_84_get_sprite("spr_btfight"), btc[0], xx + xchunk + 15, (485 - bp) + yy);
if (c == 0) draw_sprite(
scr_84_get_sprite("spr_btact"), btc[1], xx + xchunk + 50, (485 - bp) + yy);
else draw_sprite(
scr_84_get_sprite("spr_bttech"), btc[1], xx + xchunk + 50, (485 - bp) + yy);
draw_sprite(
scr_84_get_sprite("spr_btitem"), btc[2], xx + xchunk + 85, (485 - bp) + yy);
draw_sprite(
scr_84_get_sprite("spr_btspare"), btc[3], xx + xchunk + 120, (485 - bp) + yy);
draw_sprite(
scr_84_get_sprite("spr_btdefend"), btc[4], xx + xchunk + 155, (485 - bp) + yy);
if (spare_glow == 1 && gc == charpos[c]) draw_sprite_ext(
scr_84_get_sprite("spr_btspare"), 2, xx + xchunk + 120, (485 - bp) + yy, 1, 1, 0, c_white, 0.4 + (sin(global.time / 6) * 0.4));
if (pacify_glow == 1 && gc == charpos[c]) draw_sprite_ext(
scr_84_get_sprite("spr_bttech"), 2, xx + xchunk + 50, (485 - bp) + yy, 1, 1, 0, c_white, 0.4 + (sin(global.time / 6) * 0.4));
} if (gc == charpos[c]) draw_set_color(charcolor); else draw_set_color(bcolor); if (global.charselect == charpos[c] || global.charselect == 3) draw_set_color(charcolor); draw_rectangle(xx + xchunk, (480 - bp - 2) + yy + mmy[c], xx + xchunk + 212, (480 - bp) + yy, false); draw_set_color(c_black); draw_rectangle(xx + xchunk + 2, (480 - bp) + yy + mmy[c], xx + xchunk + 210, (480 - bp) + yy + mmy[c] + 33, false); b_offset = 480; if (global.fighting == 0) b_offset = 430; if (global.fighting == 1) ...
();
12
    if (global.menuno == 0)
13
        deschaver = 0;
14
    if (deschaver == 0)
15
    {
16
        draw_sprite_ext(_spr_darkmenudesc, global.menucoord[0], xx + 20, (yy + tp) - 56, 2, 2, 0, c_white, 1);
17
        msprite[0] = spr_darkitembt;
18
        msprite[1] = spr_darkequipbt;
19
        msprite[2] = spr_darktalkbt;
20
        msprite[3] = spr_darktechbt;
21
        msprite[4] = spr_darkconfigbt;
22
        for (var i = 0; i < 5; i += 1)
23
        {
24
            off = 1;
25
            if (global.menucoord[0] == i)
26
                off = 0;
27
            if ((global.menuno - 1) == i)
28
                off = 2;
29
            spritemx = 0;
30
            if (i >= 2)
31
                spritemx = -100;
32
            if (i != 2)
33
                draw_sprite_ext(msprite[i], off, xx + 120 + (i * 100) + spritemx, (yy + tp) - 60, 2, 2, 0, c_white, 1);
34
        }
35
        draw_set_color(c_white);
36
        
scr_84_set_draw_font
scr_84_set_draw_font

function
scr_84_set_draw_font(arg0)
{ global.chemg_font = arg0; draw_set_font(
scr_84_get_font(arg0));
}
("mainbig");
37
        draw_text(xx + 520, (yy + tp) - 60, string_hash_to_newline(
D$
scr_84_get_lang_string
scr_84_get_lang_string

function
scr_84_get_lang_string(arg0)
{ return ds_map_find_value(global.lang_map, arg0); }
("obj_darkcontroller_slash_Draw_0_gml_47_0")
+ string(global.gold)));
38
    }
39
}
40
if (global.menuno == 5)
41
{
42
    draw_set_color(c_black);
43
    if (global.lang == "ja")
44
    {
45
        draw_rectangle(xx + 60, yy + 85, xx + 580, yy + 412, false);
46
        
scr_darkbox
scr_darkbox

function
scr_darkbox(arg0, arg1, arg2, arg3)
{ cur_jewel += 1; textbox_width = arg2 - arg0 - 63; if (textbox_width < 0) textbox_width = 0; textbox_height = arg3 - arg1 - 63; if (textbox_height < 0) textbox_height = 0; if (textbox_width > 0) { draw_sprite_stretched(spr_textbox_top, 0, arg0 + 32, arg1, textbox_width, 32); draw_sprite_ext(spr_textbox_top, 0, arg0 + 32, arg3 + 1, textbox_width, -2, 0, c_white, 1); } if (textbox_height > 0) { draw_sprite_ext(spr_textbox_left, 0, arg2 + 1, arg1 + 32, -2, textbox_height, 0, c_white, 1); draw_sprite_ext(spr_textbox_left, 0, arg0, arg1 + 32, 2, textbox_height, 0, c_white, 1); } if (global.flag[8 simplify_vfx] == 0) { draw_sprite_ext(spr_textbox_topleft, cur_jewel / 10, arg0, arg1, 2, 2, 0, c_white, 1); draw_sprite_ext(spr_textbox_topleft, cur_jewel / 10, arg2 + 1, arg1, -2, 2, 0, c_white, 1); draw_sprite_ext(spr_textbox_topleft, cur_jewel / 10, arg0, arg3 + 1, 2, -2, 0, c_white, 1); draw_sprite_ext(spr_textbox_topleft, cur_jewel / 10, arg2 + 1, arg3 + 1, -2, -2, 0, c_white, 1); } else { draw_sprite_ext(spr_textbox_topleft, 0, arg0, arg1, 2, 2, 0, c_white, 1); draw_sprite_ext(spr_textbox_topleft, 0, arg2 + 1, arg1, -2, 2, 0, c_white, 1); draw_sprite_ext(spr_textbox_topleft, 0, arg0, arg3 + 1, 2, -2, 0, c_white, 1); draw_sprite_ext(spr_textbox_topleft, 0, arg2 + 1, arg3 + 1, -2, -2, 0, c_white, 1); } }
(xx + 50, yy + 75, xx + 590, yy + 422);
47
    }
48
    else
49
    {
50
        draw_rectangle(xx + 60, yy + 90, xx + 580, yy + 410, false);
51
        
scr_darkbox
scr_darkbox

function
scr_darkbox(arg0, arg1, arg2, arg3)
{ cur_jewel += 1; textbox_width = arg2 - arg0 - 63; if (textbox_width < 0) textbox_width = 0; textbox_height = arg3 - arg1 - 63; if (textbox_height < 0) textbox_height = 0; if (textbox_width > 0) { draw_sprite_stretched(spr_textbox_top, 0, arg0 + 32, arg1, textbox_width, 32); draw_sprite_ext(spr_textbox_top, 0, arg0 + 32, arg3 + 1, textbox_width, -2, 0, c_white, 1); } if (textbox_height > 0) { draw_sprite_ext(spr_textbox_left, 0, arg2 + 1, arg1 + 32, -2, textbox_height, 0, c_white, 1); draw_sprite_ext(spr_textbox_left, 0, arg0, arg1 + 32, 2, textbox_height, 0, c_white, 1); } if (global.flag[8 simplify_vfx] == 0) { draw_sprite_ext(spr_textbox_topleft, cur_jewel / 10, arg0, arg1, 2, 2, 0, c_white, 1); draw_sprite_ext(spr_textbox_topleft, cur_jewel / 10, arg2 + 1, arg1, -2, 2, 0, c_white, 1); draw_sprite_ext(spr_textbox_topleft, cur_jewel / 10, arg0, arg3 + 1, 2, -2, 0, c_white, 1); draw_sprite_ext(spr_textbox_topleft, cur_jewel / 10, arg2 + 1, arg3 + 1, -2, -2, 0, c_white, 1); } else { draw_sprite_ext(spr_textbox_topleft, 0, arg0, arg1, 2, 2, 0, c_white, 1); draw_sprite_ext(spr_textbox_topleft, 0, arg2 + 1, arg1, -2, 2, 0, c_white, 1); draw_sprite_ext(spr_textbox_topleft, 0, arg0, arg3 + 1, 2, -2, 0, c_white, 1); draw_sprite_ext(spr_textbox_topleft, 0, arg2 + 1, arg3 + 1, -2, -2, 0, c_white, 1); } }
(xx + 50, yy + 80, xx + 590, yy + 420);
52
    }
53
    if ((global.submenu >= 30 && global.submenu <= 33) || global.submenu == 36)
54
    {
55
        var _xPos = (global.lang == "en") ? (xx + 170) : (xx + 150);
56
        var _heartXPos = (global.lang == "en") ? (xx + 145) : (xx + 125);
57
        var _selectXPos = (global.lang == "ja" && global.is_console) ? (xx + 385) : (xx + 430);
58
        draw_set_color(c_white);
59
        draw_text(xx + 270, yy + 100, string_hash_to_newline(
CONFIG
scr_84_get_lang_string
scr_84_get_lang_string

function
scr_84_get_lang_string(arg0)
{ return ds_map_find_value(global.lang_map, arg0); }
("obj_darkcontroller_slash_Draw_0_gml_74_0")
));
60
        audvol = string(round(global.flag[17 audio_volume] * 100)) + "%";
61
        musvol = string(abs(global.flag[16 music_volume] * 100)) + "%";
62
        runoff = 
OFF
scr_84_get_lang_string
scr_84_get_lang_string

function
scr_84_get_lang_string(arg0)
{ return ds_map_find_value(global.lang_map, arg0); }
("obj_darkcontroller_slash_Draw_0_gml_79_0")
;
63
        if (global.flag[11 auto_run] == 1)
64
            runoff = 
ON
scr_84_get_lang_string
scr_84_get_lang_string

function
scr_84_get_lang_string(arg0)
{ return ds_map_find_value(global.lang_map, arg0); }
("obj_darkcontroller_slash_Draw_0_gml_79_1")
;
65
        flashoff = 
OFF
scr_84_get_lang_string
scr_84_get_lang_string

function
scr_84_get_lang_string(arg0)
{ return ds_map_find_value(global.lang_map, arg0); }
("obj_darkcontroller_slash_Draw_0_gml_80_0")
;
66
        if (global.flag[8 simplify_vfx] == 1)
67
            flashoff = 
ON
scr_84_get_lang_string
scr_84_get_lang_string

function
scr_84_get_lang_string(arg0)
{ return ds_map_find_value(global.lang_map, arg0); }
("obj_darkcontroller_slash_Draw_0_gml_80_1")
;
68
        shakeoff = 
OFF
scr_84_get_lang_string
scr_84_get_lang_string

function
scr_84_get_lang_string(arg0)
{ return ds_map_find_value(global.lang_map, arg0); }
("obj_darkcontroller_slash_Draw_0_gml_81_0")
;
69
        if (global.flag[12 disable_shaking] == 1)
70
            shakeoff = 
ON
scr_84_get_lang_string
scr_84_get_lang_string

function
scr_84_get_lang_string(arg0)
{ return ds_map_find_value(global.lang_map, arg0); }
("obj_darkcontroller_slash_Draw_0_gml_81_1")
;
71
        if (!global.is_console)
72
        {
73
            fullscreenoff = 
OFF
scr_84_get_lang_string
scr_84_get_lang_string

function
scr_84_get_lang_string(arg0)
{ return ds_map_find_value(global.lang_map, arg0); }
("obj_darkcontroller_slash_Draw_0_gml_82_0")
;
74
            if (window_get_fullscreen())
75
                fullscreenoff = 
ON
scr_84_get_lang_string
scr_84_get_lang_string

function
scr_84_get_lang_string(arg0)
{ return ds_map_find_value(global.lang_map, arg0); }
("obj_darkcontroller_slash_Draw_0_gml_82_1")
;
76
        }
77
        draw_sprite(spr_heart, 0, _heartXPos, yy + 160 + (global.submenucoord[30] * 35));
78
        if (global.submenu == 33)
79
            draw_set_color(c_yellow);
80
        draw_text(_xPos, yy + 150, string_hash_to_newline(
Master Volume
scr_84_get_lang_string
scr_84_get_lang_string

function
scr_84_get_lang_string(arg0)
{ return ds_map_find_value(global.lang_map, arg0); }
("obj_darkcontroller_slash_Draw_0_gml_86_0")
));
81
        draw_text(_selectXPos, yy + 150, string_hash_to_newline(audvol));
82
        draw_set_color(c_white);
83
        draw_text(_xPos, yy + 185, string_hash_to_newline(
Controls
scr_84_get_lang_string
scr_84_get_lang_string

function
scr_84_get_lang_string(arg0)
{ return ds_map_find_value(global.lang_map, arg0); }
("obj_darkcontroller_slash_Draw_0_gml_91_0")
));
84
        draw_text(_xPos, yy + 220, string_hash_to_newline(
Simplify VFX
scr_84_get_lang_string
scr_84_get_lang_string

function
scr_84_get_lang_string(arg0)
{ return ds_map_find_value(global.lang_map, arg0); }
("obj_darkcontroller_slash_Draw_0_gml_92_0")
));
85
        draw_text(_selectXPos, yy + 220, string_hash_to_newline(flashoff));
86
        if (global.is_console)
87
        {
88
            draw_text(_xPos, yy + 255, string_hash_to_newline(
Auto-Run
scr_84_get_lang_string
scr_84_get_lang_string

function
scr_84_get_lang_string(arg0)
{ return ds_map_find_value(global.lang_map, arg0); }
("obj_darkcontroller_slash_Draw_0_gml_94_0")
));
89
            draw_text(_selectXPos, yy + 255, string_hash_to_newline(runoff));
90
            if (global.submenu == 36)
91
                draw_set_color(c_yellow);
92
            else if (global.disable_border)
93
                draw_set_color(c_gray);
94
            draw_text(_xPos, yy + 290, border_text);
95
            draw_text(_selectXPos, yy + 290, border_options[selected_border]);
96
            draw_set_color(c_white);
97
            draw_text(_xPos, yy + 325, string_hash_to_newline(
Return to Title
scr_84_get_lang_string
scr_84_get_lang_string

function
scr_84_get_lang_string(arg0)
{ return ds_map_find_value(global.lang_map, arg0); }
("obj_darkcontroller_slash_Draw_0_gml_95_0")
));
98
            draw_text(_xPos, yy + 360, string_hash_to_newline(
Back
scr_84_get_lang_string
scr_84_get_lang_string

function
scr_84_get_lang_string(arg0)
{ return ds_map_find_value(global.lang_map, arg0); }
("obj_darkcontroller_slash_Draw_0_gml_96_0")
));
99
        }
100
        else
101
        {
102
            draw_text(_xPos, yy + 255, string_hash_to_newline(
Fullscreen
scr_84_get_lang_string
scr_84_get_lang_string

function
scr_84_get_lang_string(arg0)
{ return ds_map_find_value(global.lang_map, arg0); }
("obj_darkcontroller_slash_Draw_0_gml_93_0")
));
103
            draw_text(xx + 430, yy + 255, string_hash_to_newline(fullscreenoff));
104
            draw_text(_xPos, yy + 290, string_hash_to_newline(
Auto-Run
scr_84_get_lang_string
scr_84_get_lang_string

function
scr_84_get_lang_string(arg0)
{ return ds_map_find_value(global.lang_map, arg0); }
("obj_darkcontroller_slash_Draw_0_gml_94_0")
));
105
            draw_text(xx + 430, yy + 290, string_hash_to_newline(runoff));
106
            draw_text(_xPos, yy + 325, string_hash_to_newline(
Return to Title
scr_84_get_lang_string
scr_84_get_lang_string

function
scr_84_get_lang_string(arg0)
{ return ds_map_find_value(global.lang_map, arg0); }
("obj_darkcontroller_slash_Draw_0_gml_95_0")
));
107
            draw_text(_xPos, yy + 360, string_hash_to_newline(
Back
scr_84_get_lang_string
scr_84_get_lang_string

function
scr_84_get_lang_string(arg0)
{ return ds_map_find_value(global.lang_map, arg0); }
("obj_darkcontroller_slash_Draw_0_gml_96_0")
));
108
        }
109
    }
110
    if (global.submenu == 34)
111
    {
112
    }
113
    if (global.submenu == 35)
114
    {
115
        var is_dualshock = global.gamepad_type == "Sony DualShock 4" || global.gamepad_type == "DualSense Wireless Controller";
116
        var _yOffset = (global.lang == "en") ? 0 : -4;
117
        var _headerOffset = (is_dualshock && global.lang == "ja") ? -5 : 0;
118
        draw_set_color(c_white);
119
        draw_text(xx + 105, yy + 100 + _headerOffset, string_hash_to_newline(
Function
scr_84_get_lang_string
scr_84_get_lang_string

function
scr_84_get_lang_string(arg0)
{ return ds_map_find_value(global.lang_map, arg0); }
("obj_darkcontroller_slash_Draw_0_gml_113_0")
));
120
        if (global.is_console)
121
        {
122
            var gamepad_text = (global.lang == "en") ? "Button" : "ボタン";
123
            var buttonXPos = (scr_is_switch_os() && global.lang == "en") ? (xx + 445) : (xx + 435);
124
            var buttonYPos = yy + 100 + _yOffset;
125
            draw_text(buttonXPos, buttonYPos, gamepad_text);
126
        }
127
        else
128
        {
129
            draw_text(xx + 325, yy + 100 + _headerOffset, string_hash_to_newline(
Key
scr_84_get_lang_string
scr_84_get_lang_string

function
scr_84_get_lang_string(arg0)
{ return ds_map_find_value(global.lang_map, arg0); }
("obj_darkcontroller_slash_Draw_0_gml_114_0")
));
130
            if (obj_gamecontroller.gamepad_active)
131
                draw_text(xx + 435, yy + 100 + _headerOffset, string_hash_to_newline(
Gamepad
scr_84_get_lang_string
scr_84_get_lang_string

function
scr_84_get_lang_string(arg0)
{ return ds_map_find_value(global.lang_map, arg0); }
("obj_darkcontroller_slash_Draw_0_gml_115_0")
));
132
        }
133
        function_n[0] = 
DOWN
scr_84_get_lang_string
scr_84_get_lang_string

function
scr_84_get_lang_string(arg0)
{ return ds_map_find_value(global.lang_map, arg0); }
("obj_darkcontroller_slash_Draw_0_gml_117_0")
;
134
        function_n[1] = 
RIGHT
scr_84_get_lang_string
scr_84_get_lang_string

function
scr_84_get_lang_string(arg0)
{ return ds_map_find_value(global.lang_map, arg0); }
("obj_darkcontroller_slash_Draw_0_gml_118_0")
;
135
        function_n[2] = 
UP
scr_84_get_lang_string
scr_84_get_lang_string

function
scr_84_get_lang_string(arg0)
{ return ds_map_find_value(global.lang_map, arg0); }
("obj_darkcontroller_slash_Draw_0_gml_119_0")
;
136
        function_n[3] = 
LEFT
scr_84_get_lang_string
scr_84_get_lang_string

function
scr_84_get_lang_string(arg0)
{ return ds_map_find_value(global.lang_map, arg0); }
("obj_darkcontroller_slash_Draw_0_gml_120_0")
;
137
        function_n[4] = 
CONFIRM
scr_84_get_lang_string
scr_84_get_lang_string

function
scr_84_get_lang_string(arg0)
{ return ds_map_find_value(global.lang_map, arg0); }
("obj_darkcontroller_slash_Draw_0_gml_121_0")
;
138
        function_n[5] = 
CANCEL
scr_84_get_lang_string
scr_84_get_lang_string

function
scr_84_get_lang_string(arg0)
{ return ds_map_find_value(global.lang_map, arg0); }
("obj_darkcontroller_slash_Draw_0_gml_122_0")
;
139
        function_n[6] = 
MENU
scr_84_get_lang_string
scr_84_get_lang_string

function
scr_84_get_lang_string(arg0)
{ return ds_map_find_value(global.lang_map, arg0); }
("obj_darkcontroller_slash_Draw_0_gml_123_0")
;
140
        function_n[7] = 
Reset to default
scr_84_get_lang_string
scr_84_get_lang_string

function
scr_84_get_lang_string(arg0)
{ return ds_map_find_value(global.lang_map, arg0); }
("obj_darkcontroller_slash_Draw_0_gml_124_0")
;
141
        function_n[8] = 
Finish
scr_84_get_lang_string
scr_84_get_lang_string

function
scr_84_get_lang_string(arg0)
{ return ds_map_find_value(global.lang_map, arg0); }
("obj_darkcontroller_slash_Draw_0_gml_125_0")
;
142
        if (global.is_console || is_dualshock)
143
        {
144
            var _heartYPos = (global.lang == "en") ? (yy + 146) : (yy + 144);
145
            var _heartHeight = (global.lang == "en") ? 29 : 30;
146
            draw_sprite(spr_heart, 0, xx + 80, _heartYPos + (global.submenucoord[35] * _heartHeight) + _yOffset);
147
        }
148
        else
149
        {
150
            var heart_offset = (global.lang == "en") ? 28 : 29;
151
            draw_sprite(spr_heart, 0, xx + 80, (yy + 150 + (global.submenucoord[35] * heart_offset) + _yOffset) - 2);
152
        }
153
        var line_padding = (global.lang == "ja") ? 1 : 0;
154
        for (var i = 0; i <= 8; i += 1)
155
        {
156
            draw_set_color(c_white);
157
            if (global.submenucoord[35] == i)
158
                draw_set_color(c_aqua);
159
            if (global.submenucoord[35] == i && control_select_con == 1)
160
                draw_set_color(c_red);
161
            if (i == 7 && control_flash_timer > 0)
162
                draw_set_color(merge_color(c_aqua, c_yellow, (control_flash_timer / 10) - 0.1));
163
            var _textYPos;
164
            if (is_dualshock)
165
            {
166
                var _textHeight = 29;
167
                _textYPos = (global.lang == "en") ? (yy + 137) : (yy + 136);
168
                draw_text(xx + 105, _textYPos + (i * (_textHeight + line_padding)) + _yOffset, string_hash_to_newline(function_n[i]));
169
            }
170
            else
171
            {
172
                draw_text(xx + 105, yy + 140 + (i * (28 + line_padding)) + _yOffset, string_hash_to_newline(function_n[i]));
173
            }
174
            if (i < 7)
175
            {
176
                if (is_dualshock)
177
                {
178
                    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);
179
                    var _sprite_height = 29;
180
                    var _xPos = xx + 465;
181
                    var _yPos = yy + 139;
182
                    if (_sprite == button_ps4_dpad_up || _sprite == button_ps4_dpad_down || _sprite == button_ps4_dpad_left || _sprite == button_ps4_dpad_right)
183
                    {
184
                        _sprite_height = 30;
185
                        _yPos = _textYPos + 0.5;
186
                        _xPos = xx + 463;
187
                    }
188
                    else if (_sprite == button_ps4_options)
189
                    {
190
                        _sprite_height = 29.5;
191
                        _yPos = _textYPos + 0.5;
192
                        _xPos = xx + 460;
193
                    }
194
                    draw_sprite_ext(_sprite, 0, _xPos, _yPos + (i * (_sprite_height + line_padding)) + _yOffset, 2, 2, 0, c_white, 1);
195
                    if (!global.is_console)
196
                        draw_text(xx + 325, yy + 140 + (i * 28), string_hash_to_newline(global.asc_def[global.input_k[i]]));
197
                }
198
                else if (global.is_console)
199
                {
200
                    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;
201
                    var _xPos = (global.lang == "en") ? (xx + 475) : (xx + 465);
202
                    if (_sprite == button_switch_lStickClick_0 || _sprite == button_switch_rStickClick_0)
203
                        _xPos -= 3;
204
                    draw_sprite_ext(_sprite, 0, _xPos, yy + 144 + (i * (28 + line_padding)) + _yOffset, 2, 2, 0, c_white, 1);
205
                }
206
                else
207
                {
208
                    draw_text(xx + 325, yy + 140 + (i * 28), string_hash_to_newline(global.asc_def[global.input_k[i]]));
209
                    if (obj_gamecontroller.gamepad_active)
210
                    {
211
                        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);
212
                        var _xPos = (global.lang == "en") ? (xx + 475) : (xx + 465);
213
                        if (sprite_get_width(_sprite) < 12)
214
                            _xPos += 2;
215
                        draw_sprite_ext(_sprite, 0, _xPos, yy + 144 + (i * (28 + line_padding)) + _yOffset, 2, 2, 0, c_white, 1);
216
                    }
217
                }
218
            }
219
        }
220
    }
221
}
222
if (global.menuno == 4)
223
{
224
    var memxx = xx;
225
    if (global.lang == "ja")
226
        xx += -15;
227
    draw_set_color(c_black);
228
    if (global.lang == "ja")
229
    {
230
        draw_rectangle(xx + 60, yy + 90, xx + 612, yy + 410, false);
231
        
scr_darkbox
scr_darkbox

function
scr_darkbox(arg0, arg1, arg2, arg3)
{ cur_jewel += 1; textbox_width = arg2 - arg0 - 63; if (textbox_width < 0) textbox_width = 0; textbox_height = arg3 - arg1 - 63; if (textbox_height < 0) textbox_height = 0; if (textbox_width > 0) { draw_sprite_stretched(spr_textbox_top, 0, arg0 + 32, arg1, textbox_width, 32); draw_sprite_ext(spr_textbox_top, 0, arg0 + 32, arg3 + 1, textbox_width, -2, 0, c_white, 1); } if (textbox_height > 0) { draw_sprite_ext(spr_textbox_left, 0, arg2 + 1, arg1 + 32, -2, textbox_height, 0, c_white, 1); draw_sprite_ext(spr_textbox_left, 0, arg0, arg1 + 32, 2, textbox_height, 0, c_white, 1); } if (global.flag[8 simplify_vfx] == 0) { draw_sprite_ext(spr_textbox_topleft, cur_jewel / 10, arg0, arg1, 2, 2, 0, c_white, 1); draw_sprite_ext(spr_textbox_topleft, cur_jewel / 10, arg2 + 1, arg1, -2, 2, 0, c_white, 1); draw_sprite_ext(spr_textbox_topleft, cur_jewel / 10, arg0, arg3 + 1, 2, -2, 0, c_white, 1); draw_sprite_ext(spr_textbox_topleft, cur_jewel / 10, arg2 + 1, arg3 + 1, -2, -2, 0, c_white, 1); } else { draw_sprite_ext(spr_textbox_topleft, 0, arg0, arg1, 2, 2, 0, c_white, 1); draw_sprite_ext(spr_textbox_topleft, 0, arg2 + 1, arg1, -2, 2, 0, c_white, 1); draw_sprite_ext(spr_textbox_topleft, 0, arg0, arg3 + 1, 2, -2, 0, c_white, 1); draw_sprite_ext(spr_textbox_topleft, 0, arg2 + 1, arg3 + 1, -2, -2, 0, c_white, 1); } }
(xx + 50, yy + 80, xx + 622, yy + 420);
232
    }
233
    else
234
    {
235
        draw_rectangle(xx + 60, yy + 90, xx + 580, yy + 410, false);
236
        
scr_darkbox
scr_darkbox

function
scr_darkbox(arg0, arg1, arg2, arg3)
{ cur_jewel += 1; textbox_width = arg2 - arg0 - 63; if (textbox_width < 0) textbox_width = 0; textbox_height = arg3 - arg1 - 63; if (textbox_height < 0) textbox_height = 0; if (textbox_width > 0) { draw_sprite_stretched(spr_textbox_top, 0, arg0 + 32, arg1, textbox_width, 32); draw_sprite_ext(spr_textbox_top, 0, arg0 + 32, arg3 + 1, textbox_width, -2, 0, c_white, 1); } if (textbox_height > 0) { draw_sprite_ext(spr_textbox_left, 0, arg2 + 1, arg1 + 32, -2, textbox_height, 0, c_white, 1); draw_sprite_ext(spr_textbox_left, 0, arg0, arg1 + 32, 2, textbox_height, 0, c_white, 1); } if (global.flag[8 simplify_vfx] == 0) { draw_sprite_ext(spr_textbox_topleft, cur_jewel / 10, arg0, arg1, 2, 2, 0, c_white, 1); draw_sprite_ext(spr_textbox_topleft, cur_jewel / 10, arg2 + 1, arg1, -2, 2, 0, c_white, 1); draw_sprite_ext(spr_textbox_topleft, cur_jewel / 10, arg0, arg3 + 1, 2, -2, 0, c_white, 1); draw_sprite_ext(spr_textbox_topleft, cur_jewel / 10, arg2 + 1, arg3 + 1, -2, -2, 0, c_white, 1); } else { draw_sprite_ext(spr_textbox_topleft, 0, arg0, arg1, 2, 2, 0, c_white, 1); draw_sprite_ext(spr_textbox_topleft, 0, arg2 + 1, arg1, -2, 2, 0, c_white, 1); draw_sprite_ext(spr_textbox_topleft, 0, arg0, arg3 + 1, 2, -2, 0, c_white, 1); draw_sprite_ext(spr_textbox_topleft, 0, arg2 + 1, arg3 + 1, -2, -2, 0, c_white, 1); } }
(xx + 50, yy + 80, xx + 590, yy + 420);
237
    }
238
    draw_set_color(c_white);
239
    draw_rectangle(xx + 60, yy + 216, xx + 60 + 520, yy + 216 + 5, false);
240
    draw_rectangle(xx + 294, yy + 220, xx + 294 + 5, (yy + 220 + 190) - 4, false);
241
    if (global.lang == "ja")
242
        draw_rectangle(xx + 60, yy + 216, xx + 60 + 552, yy + 216 + 5, false);
243
    draw_sprite_ext(_spr_dmenu_captions, 0, xx + 124, yy + 84, 2, 2, 0, c_white, 1);
244
    draw_sprite_ext(_spr_dmenu_captions, 4, xx + 124, yy + 210, 2, 2, 0, c_white, 1);
245
    draw_sprite_ext(_spr_dmenu_captions, 5, xx + 380, yy + 210, 2, 2, 0, c_white, 1);
246
    var lang_tp_off = 0;
247
    if (global.lang == "ja")
248
        lang_tp_off = -30;
249
    draw_sprite_ext(spr_dmenu_captions, 6, xx + 340 + lang_tp_off, yy + 225, 1, 1, 0, c_white, 1);
250
    coord = global.submenucoord[20];
251
    charcoord = global.char[coord];
252
    menusiner += 1;
253
    draw_set_color(c_white);
254
    
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");
255
    draw_text(xx + 130, yy + 105, string_hash_to_newline(global.charname[charcoord]));
256
    for (var i = 0; i < 3; i += 1)
257
    {
258
        chosen = 0.4;
259
        if (i == coord)
260
            chosen = 1;
261
        draw_sprite_ext(spr_equipchar, global.char[i], 90 + xx + (i * 50), 160 + yy, 2, 2, 0, c_white, chosen);
262
    }
263
    if (global.submenu == 20)
264
        draw_sprite(spr_heart_harrows, menusiner / 20, 100 + xx + (coord * 50), 141 + yy);
265
    var ch_yoff = yy + 230;
266
    var ch_vspace = 25;
267
    if (global.lang == "ja")
268
        ch_vspace = 28;
269
    var ch_y;
270
    for (var ch_i = 0; ch_i < 6; ch_i++)
271
        ch_y[ch_i] = ch_yoff + (ch_i * ch_vspace);
272
    draw_set_color(c_white);
273
    draw_text(xx + 100, ch_y[0], string_hash_to_newline(
Attack:
scr_84_get_lang_string
scr_84_get_lang_string

function
scr_84_get_lang_string(arg0)
{ return ds_map_find_value(global.lang_map, arg0); }
("obj_darkcontroller_slash_Draw_0_gml_207_0")
));
274
    draw_item_icon(xx + 74, ch_y[0] + 6, 1);
275
    draw_text(xx + 100, ch_y[1], string_hash_to_newline(
Defense:
scr_84_get_lang_string
scr_84_get_lang_string

function
scr_84_get_lang_string(arg0)
{ return ds_map_find_value(global.lang_map, arg0); }
("obj_darkcontroller_slash_Draw_0_gml_208_0")
));
276
    draw_item_icon(xx + 74, ch_y[1] + 6, 4);
277
    draw_text(xx + 100, ch_y[2], string_hash_to_newline(
Magic:
scr_84_get_lang_string
scr_84_get_lang_string

function
scr_84_get_lang_string(arg0)
{ return ds_map_find_value(global.lang_map, arg0); }
("obj_darkcontroller_slash_Draw_0_gml_209_0")
));
278
    draw_item_icon(xx + 74, ch_y[2] + 6, 5);
279
    draw_text(xx + 100, ch_y[5], string_hash_to_newline(
Guts:
scr_84_get_lang_string
scr_84_get_lang_string

function
scr_84_get_lang_string(arg0)
{ return ds_map_find_value(global.lang_map, arg0); }
("obj_darkcontroller_slash_Draw_0_gml_212_0")
));
280
    draw_item_icon(xx + 74, ch_y[5] + 6, 9);
281
    char_desc = 
LV1
scr_84_get_lang_string
scr_84_get_lang_string

function
scr_84_get_lang_string(arg0)
{ return ds_map_find_value(global.lang_map, arg0); }
("obj_darkcontroller_slash_Draw_0_gml_214_0")
;
282
    guts_amount = 0;
283
    fluff_amount = 0;
284
    if (charcoord == 1)
285
    {
286
        guts_amount = 1;
287
        draw_set_color(c_dkgray);
288
        draw_text(xx + 100, ch_y[4], string_hash_to_newline(
???
scr_84_get_lang_string
scr_84_get_lang_string

function
scr_84_get_lang_string(arg0)
{ return ds_map_find_value(global.lang_map, arg0); }
("obj_darkcontroller_slash_Draw_0_gml_226_0")
));
289
        if (dograndom >= 99)
290
        {
291
            draw_set_color(c_white);
292
            draw_text(xx + 100, ch_y[3], string_hash_to_newline(
Dog:
scr_84_get_lang_string
scr_84_get_lang_string

function
scr_84_get_lang_string(arg0)
{ return ds_map_find_value(global.lang_map, arg0); }
("obj_darkcontroller_slash_Draw_0_gml_231_0")
));
293
            draw_sprite_ext(spr_dog_sleep, -threebuffer / 30, xx + 220, ch_y[3] + 5, 2, 2, 0, c_white, 1);
294
        }
295
        else
296
        {
297
            draw_text(xx + 100, ch_y[3], string_hash_to_newline(
???
scr_84_get_lang_string
scr_84_get_lang_string

function
scr_84_get_lang_string(arg0)
{ return ds_map_find_value(global.lang_map, arg0); }
("obj_darkcontroller_slash_Draw_0_gml_236_0")
));
298
        }
299
        draw_set_color(c_white);
300
        char_desc = 
LV1 Human#Body contains a#human SOUL.
scr_84_get_lang_string
scr_84_get_lang_string

function
scr_84_get_lang_string(arg0)
{ return ds_map_find_value(global.lang_map, arg0); }
("obj_darkcontroller_slash_Draw_0_gml_239_0")
;
301
        if (global.plot >= 30)
302
            char_desc = 
LV1 Leader#Commands the party#with various ACTs.
scr_84_get_lang_string
scr_84_get_lang_string

function
scr_84_get_lang_string(arg0)
{ return ds_map_find_value(global.lang_map, arg0); }
("obj_darkcontroller_slash_Draw_0_gml_240_0")
;
303
        if (global.flag[252 inspected_beds_ch1] == 1)
304
            char_desc = 
LV1 Bed Inspector#Inspects all beds#inexplicably.
scr_84_get_lang_string
scr_84_get_lang_string

function
scr_84_get_lang_string(arg0)
{ return ds_map_find_value(global.lang_map, arg0); }
("obj_darkcontroller_slash_Draw_0_gml_241_0")
;
305
    }
306
    if (charcoord == 2)
307
    {
308
        guts_amount = 2;
309
        rude_amount = 100;
310
        if (global.plot >= 154)
311
            rude_amount = 99;
312
        crude_amount = 100;
313
        if (global.flag[214 team_name] == 1)
314
            crude_amount = 101;
315
        draw_text(xx + 100, ch_y[3], string_hash_to_newline(
Rudeness
scr_84_get_lang_string
scr_84_get_lang_string

function
scr_84_get_lang_string(arg0)
{ return ds_map_find_value(global.lang_map, arg0); }
("obj_darkcontroller_slash_Draw_0_gml_251_0")
));
316
        draw_item_icon(xx + 74, ch_y[3] + 6, 13);
317
        if (global.lang == "ja")
318
        {
319
            draw_text_transformed(xx + 100, ch_y[4], string_hash_to_newline(
Crudeness
scr_84_get_lang_string
scr_84_get_lang_string

function
scr_84_get_lang_string(arg0)
{ return ds_map_find_value(global.lang_map, arg0); }
("obj_darkcontroller_slash_Draw_0_gml_252_0")
), 1, 1, 0);
320
            draw_item_icon(xx + 74, ch_y[4] + 6, 13);
321
        }
322
        else
323
        {
324
            draw_text_transformed(xx + 100, ch_y[4], string_hash_to_newline(
Crudeness
scr_84_get_lang_string
scr_84_get_lang_string

function
scr_84_get_lang_string(arg0)
{ return ds_map_find_value(global.lang_map, arg0); }
("obj_darkcontroller_slash_Draw_0_gml_252_0")
), 0.8, 1, 0);
325
            draw_item_icon(xx + 74, ch_y[4] + 6, 13);
326
        }
327
        draw_text(xx + 230, ch_y[3], string_hash_to_newline(rude_amount));
328
        draw_text(xx + 230, ch_y[4], string_hash_to_newline(crude_amount));
329
        char_desc = 
LV1 Mean Girl#Won't do anything#but fight.
scr_84_get_lang_string
scr_84_get_lang_string

function
scr_84_get_lang_string(arg0)
{ return ds_map_find_value(global.lang_map, arg0); }
("obj_darkcontroller_slash_Draw_0_gml_255_0")
;
330
        if (global.plot >= 154)
331
            char_desc = 
LV1 Dark Knight#Does damage using#dark energy.
scr_84_get_lang_string
scr_84_get_lang_string

function
scr_84_get_lang_string(arg0)
{ return ds_map_find_value(global.lang_map, arg0); }
("obj_darkcontroller_slash_Draw_0_gml_256_0")
;
332
    }
333
    if (charcoord == 3)
334
    {
335
        guts_amount = 0;
336
        fluff_amount = 1;
337
        kindness_amount = 100;
338
        kind_icon = 10;
339
        kind_text = 
Kindness
scr_84_get_lang_string
scr_84_get_lang_string

function
scr_84_get_lang_string(arg0)
{ return ds_map_find_value(global.lang_map, arg0); }
("obj_darkcontroller_slash_Draw_0_gml_265_0")
;
340
        if (dograndom >= 99)
341
        {
342
            kind_icon = 11;
343
            kind_text = 
Dogness
scr_84_get_lang_string
scr_84_get_lang_string

function
scr_84_get_lang_string(arg0)
{ return ds_map_find_value(global.lang_map, arg0); }
("obj_darkcontroller_slash_Draw_0_gml_269_0")
;
344
            kindness_amount = 1;
345
        }
346
        char_desc = 
LV1 Lonely Prince#Dark-World being.#Has no subjects.
scr_84_get_lang_string
scr_84_get_lang_string

function
scr_84_get_lang_string(arg0)
{ return ds_map_find_value(global.lang_map, arg0); }
("obj_darkcontroller_slash_Draw_0_gml_272_0")
;
347
        if (global.charweapon[3] == 9)
348
            char_desc = 
LV1 Prickly Prince#Deals damage with#his rugged scarf.
scr_84_get_lang_string
scr_84_get_lang_string

function
scr_84_get_lang_string(arg0)
{ return ds_map_find_value(global.lang_map, arg0); }
("obj_darkcontroller_slash_Draw_0_gml_275_0")
;
349
        if (global.charweapon[3] == 10)
350
        {
351
            char_desc = 
LV1 Fluffy Prince#Weak, but has nice#healing powers.
scr_84_get_lang_string
scr_84_get_lang_string

function
scr_84_get_lang_string(arg0)
{ return ds_map_find_value(global.lang_map, arg0); }
("obj_darkcontroller_slash_Draw_0_gml_279_0")
;
352
            fluff_amount += 1;
353
        }
354
        draw_text(xx + 100, ch_y[3], string_hash_to_newline(kind_text));
355
        draw_item_icon(xx + 74, ch_y[3] + 6, kind_icon);
356
        draw_text(xx + 230, ch_y[3], string_hash_to_newline(kindness_amount));
357
        fluff_xscale = 0.8;
358
        if (global.lang == "ja")
359
            fluff_xscale = 1;
360
        draw_text_transformed(xx + 100, ch_y[4], string_hash_to_newline(
Fluffiness
scr_84_get_lang_string
scr_84_get_lang_string

function
scr_84_get_lang_string(arg0)
{ return ds_map_find_value(global.lang_map, arg0); }
("obj_darkcontroller_slash_Draw_0_gml_286_0")
), fluff_xscale, 1, 0);
361
        draw_item_icon(xx + 74, ch_y[4] + 6, 12);
362
        for (var i = 0; i < fluff_amount; i += 1)
363
            draw_item_icon(xx + 230 + (i * 20), ch_y[4] + 6, 12);
364
    }
365
    draw_text(xx + 320, yy + 105, string_hash_to_newline(char_desc));
366
    guts_xoff = 0;
367
    if (global.lang == "ja")
368
        guts_xoff = 16;
369
    for (var i = 0; i < guts_amount; i += 1)
370
        draw_item_icon(xx + 190 + (i * 20) + guts_xoff, ch_y[5] + 6, 9);
371
    atsum = global.at[global.char[coord]] + global.itemat[global.char[coord]][0] + global.itemat[global.char[coord]][1] + global.itemat[global.char[coord]][2];
372
    dfsum = global.df[global.char[coord]] + global.itemdf[global.char[coord]][0] + global.itemdf[global.char[coord]][1] + global.itemdf[global.char[coord]][2];
373
    magsum = global.mag[global.char[coord]] + global.itemmag[global.char[coord]][0] + global.itemmag[global.char[coord]][1] + global.itemmag[global.char[coord]][2];
374
    grazesum = global.grazeamt;
375
    sizesum = global.grazesize;
376
    for (var i = 0; i < 3; i += 1)
377
    {
378
        for (j = 0; j < 3; j += 1)
379
        {
380
            if (global.char[i] != 0)
381
            {
382
                grazesum += global.itemgrazeamt[global.char[i]][j];
383
                sizesum += global.itemgrazesize[global.char[i]][j];
384
            }
385
        }
386
    }
387
    draw_text(xx + 230, ch_y[0], string_hash_to_newline(atsum));
388
    draw_text(xx + 230, ch_y[1], string_hash_to_newline(dfsum));
389
    draw_text(xx + 230, ch_y[2], string_hash_to_newline(magsum));
390
    spell_xoff = 0;
391
    if (global.lang == "ja")
392
        spell_xoff = -10;
393
    for (var i = 0; i < 6; i += 1)
394
    {
395
        if (global.spell[charcoord][i] > 0)
396
        {
397
            g = 0;
398
            if (global.spellusable[charcoord][i] == 0)
399
                g = 1;
400
            if (global.spellcost[charcoord][i] > global.tension)
401
                g = 1;
402
            if (g == 0)
403
                draw_set_color(c_white);
404
            if (g == 1)
405
                draw_set_color(c_gray);
406
            var spellcostx = xx + 340;
407
            var spellnamex = xx + 410;
408
            if (global.lang == "ja")
409
            {
410
                spellcostx -= 30;
411
                spellnamex -= 20;
412
            }
413
            draw_text(spellcostx, ch_y[i], string_hash_to_newline(string(round((global.spellcost[charcoord][i] / global.maxtension) * 100)) + "%"));
414
            draw_text(spellnamex + spell_xoff, ch_y[i], string_hash_to_newline(global.spellname[charcoord][i]));
415
        }
416
    }
417
    if (global.submenu == 21)
418
    {
419
        var spellnameoff = 0;
420
        if (global.lang == "ja")
421
            spellnameoff = 40;
422
        draw_sprite(spr_heart, 0, xx + spellnameoff + 320, yy + 240 + (global.submenucoord[21] * ch_vspace));
423
    }
424
    if (deschaver == 1)
425
    {
426
        draw_set_color(c_white);
427
        draw_text(xx + 20, yy + 10, string_hash_to_newline(global.spelldesc[charcoord][global.submenucoord[21]]));
428
    }
429
    xx = memxx;
430
}
431
if (global.menuno == 2)
432
{
433
    var memxx = xx;
434
    if (global.lang == "ja")
435
        xx -= 22;
436
    draw_set_color(c_black);
437
    var ch_vspace = 27;
438
    if (global.lang == "ja")
439
    {
440
        ch_vspace = 28;
441
        draw_rectangle(xx + 60, yy + 90, xx + 626, yy + 410, false);
442
        
scr_darkbox
scr_darkbox

function
scr_darkbox(arg0, arg1, arg2, arg3)
{ cur_jewel += 1; textbox_width = arg2 - arg0 - 63; if (textbox_width < 0) textbox_width = 0; textbox_height = arg3 - arg1 - 63; if (textbox_height < 0) textbox_height = 0; if (textbox_width > 0) { draw_sprite_stretched(spr_textbox_top, 0, arg0 + 32, arg1, textbox_width, 32); draw_sprite_ext(spr_textbox_top, 0, arg0 + 32, arg3 + 1, textbox_width, -2, 0, c_white, 1); } if (textbox_height > 0) { draw_sprite_ext(spr_textbox_left, 0, arg2 + 1, arg1 + 32, -2, textbox_height, 0, c_white, 1); draw_sprite_ext(spr_textbox_left, 0, arg0, arg1 + 32, 2, textbox_height, 0, c_white, 1); } if (global.flag[8 simplify_vfx] == 0) { draw_sprite_ext(spr_textbox_topleft, cur_jewel / 10, arg0, arg1, 2, 2, 0, c_white, 1); draw_sprite_ext(spr_textbox_topleft, cur_jewel / 10, arg2 + 1, arg1, -2, 2, 0, c_white, 1); draw_sprite_ext(spr_textbox_topleft, cur_jewel / 10, arg0, arg3 + 1, 2, -2, 0, c_white, 1); draw_sprite_ext(spr_textbox_topleft, cur_jewel / 10, arg2 + 1, arg3 + 1, -2, -2, 0, c_white, 1); } else { draw_sprite_ext(spr_textbox_topleft, 0, arg0, arg1, 2, 2, 0, c_white, 1); draw_sprite_ext(spr_textbox_topleft, 0, arg2 + 1, arg1, -2, 2, 0, c_white, 1); draw_sprite_ext(spr_textbox_topleft, 0, arg0, arg3 + 1, 2, -2, 0, c_white, 1); draw_sprite_ext(spr_textbox_topleft, 0, arg2 + 1, arg3 + 1, -2, -2, 0, c_white, 1); } }
(xx + 50, yy + 80, xx + 636, yy + 420);
443
    }
444
    else
445
    {
446
        draw_rectangle(xx + 60, yy + 90, xx + 580, yy + 410, false);
447
        
scr_darkbox
scr_darkbox

function
scr_darkbox(arg0, arg1, arg2, arg3)
{ cur_jewel += 1; textbox_width = arg2 - arg0 - 63; if (textbox_width < 0) textbox_width = 0; textbox_height = arg3 - arg1 - 63; if (textbox_height < 0) textbox_height = 0; if (textbox_width > 0) { draw_sprite_stretched(spr_textbox_top, 0, arg0 + 32, arg1, textbox_width, 32); draw_sprite_ext(spr_textbox_top, 0, arg0 + 32, arg3 + 1, textbox_width, -2, 0, c_white, 1); } if (textbox_height > 0) { draw_sprite_ext(spr_textbox_left, 0, arg2 + 1, arg1 + 32, -2, textbox_height, 0, c_white, 1); draw_sprite_ext(spr_textbox_left, 0, arg0, arg1 + 32, 2, textbox_height, 0, c_white, 1); } if (global.flag[8 simplify_vfx] == 0) { draw_sprite_ext(spr_textbox_topleft, cur_jewel / 10, arg0, arg1, 2, 2, 0, c_white, 1); draw_sprite_ext(spr_textbox_topleft, cur_jewel / 10, arg2 + 1, arg1, -2, 2, 0, c_white, 1); draw_sprite_ext(spr_textbox_topleft, cur_jewel / 10, arg0, arg3 + 1, 2, -2, 0, c_white, 1); draw_sprite_ext(spr_textbox_topleft, cur_jewel / 10, arg2 + 1, arg3 + 1, -2, -2, 0, c_white, 1); } else { draw_sprite_ext(spr_textbox_topleft, 0, arg0, arg1, 2, 2, 0, c_white, 1); draw_sprite_ext(spr_textbox_topleft, 0, arg2 + 1, arg1, -2, 2, 0, c_white, 1); draw_sprite_ext(spr_textbox_topleft, 0, arg0, arg3 + 1, 2, -2, 0, c_white, 1); draw_sprite_ext(spr_textbox_topleft, 0, arg2 + 1, arg3 + 1, -2, -2, 0, c_white, 1); } }
(xx + 50, yy + 80, xx + 590, yy + 420);
448
    }
449
    draw_set_color(c_white);
450
    draw_rectangle(xx + 270, yy + 91, xx + 275, yy + 91 + 135, false);
451
    draw_rectangle(xx + 59, yy + 221, xx + 59 + 523, yy + 221 + 5, false);
452
    if (global.lang == "ja")
453
        draw_rectangle(xx + 59, yy + 221, xx + 63 + 565, yy + 221 + 5, false);
454
    draw_rectangle(xx + 318, yy + 221, xx + 318 + 5, yy + 221 + 190, false);
455
    draw_sprite_ext(_spr_dmenu_captions, 0, xx + 118, yy + 86, 2, 2, 0, c_white, 1);
456
    draw_sprite_ext(_spr_dmenu_captions, 1, xx + 376, yy + 86, 2, 2, 0, c_white, 1);
457
    if (global.submenucoord[11] == 1 || global.submenucoord[11] == 2)
458
        draw_sprite_ext(_spr_dmenu_captions, 2, xx + 372, yy + 216, 2, 2, 0, c_white, 1);
459
    else
460
        draw_sprite_ext(_spr_dmenu_captions, 3, xx + 372, yy + 216, 2, 2, 0, c_white, 1);
461
    draw_sprite_ext(_spr_dmenu_captions, 4, xx + 116, yy + 216, 2, 2, 0, c_white, 1);
462
    coord = global.submenucoord[10];
463
    charcoord = global.char[coord];
464
    menusiner += 1;
465
    draw_set_color(c_white);
466
    
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");
467
    charname_xoff = 0;
468
    if (global.lang == "ja")
469
        charname_xoff = -25;
470
    draw_text(xx + 135 + charname_xoff, yy + 107, string_hash_to_newline(global.charname[charcoord]));
471
    for (var i = 0; i < 3; i += 1)
472
    {
473
        chosen = 0.4;
474
        if (i == coord)
475
            chosen = 1;
476
        draw_sprite_ext(spr_equipchar, global.char[i], 90 + xx + (i * 50), 160 + yy, 2, 2, 0, c_white, chosen);
477
    }
478
    if (global.submenu == 10)
479
        draw_sprite(spr_heart_harrows, menusiner / 20, 100 + xx + (coord * 50), 142 + yy);
480
    if (global.submenu != 11)
481
    {
482
        draw_sprite_ext(spr_dmenu_equip, charcoord - 1, xx + 302, yy + 108, 2, 2, 0, c_white, 1);
483
        draw_sprite_ext(spr_dmenu_equip, 3, xx + 302, yy + 142, 2, 2, 0, c_white, 1);
484
        draw_sprite_ext(spr_dmenu_equip, 4, xx + 302, yy + 172, 2, 2, 0, c_white, 1);
485
    }
486
    if (global.submenu == 11)
487
    {
488
        if (global.submenucoord[11] == 0)
489
            draw_sprite(spr_heart, 0, xx + 308, yy + 122);
490
        else
491
            draw_sprite_ext(spr_dmenu_equip, charcoord - 1, xx + 302, yy + 108, 2, 2, 0, c_white, 1);
492
        if (global.submenucoord[11] == 1)
493
            draw_sprite(spr_heart, 0, xx + 308, yy + 152);
494
        else
495
            draw_sprite_ext(spr_dmenu_equip, 3, xx + 302, yy + 142, 2, 2, 0, c_white, 1);
496
        if (global.submenucoord[11] == 2)
497
            draw_sprite(spr_heart, 0, xx + 308, yy + 182);
498
        else
499
            draw_sprite_ext(spr_dmenu_equip, 4, xx + 302, yy + 172, 2, 2, 0, c_white, 1);
500
    }
501
    if (charweaponname[charcoord] != " ")
502
    {
503
        draw_text(xx + 365, yy + 112, string_hash_to_newline(charweaponname[charcoord]));
504
        draw_item_icon(xx + 343, yy + 118, charweaponicon[charcoord]);
505
    }
506
    else
507
    {
508
        draw_set_color(c_dkgray);
509
        draw_text(xx + 365, yy + 112, string_hash_to_newline(
(Nothing)
scr_84_get_lang_string
scr_84_get_lang_string

function
scr_84_get_lang_string(arg0)
{ return ds_map_find_value(global.lang_map, arg0); }
("obj_darkcontroller_slash_Draw_0_gml_423_0")
));
510
        draw_set_color(c_white);
511
    }
512
    if (global.chararmor1[charcoord] != 0)
513
    {
514
        draw_text(xx + 365, yy + 142, string_hash_to_newline(chararmor1name[charcoord]));
515
        draw_item_icon(xx + 343, yy + 148, chararmor1icon[charcoord]);
516
    }
517
    else
518
    {
519
        draw_set_color(c_dkgray);
520
        draw_text(xx + 365, yy + 142, string_hash_to_newline(
(Nothing)
scr_84_get_lang_string
scr_84_get_lang_string

function
scr_84_get_lang_string(arg0)
{ return ds_map_find_value(global.lang_map, arg0); }
("obj_darkcontroller_slash_Draw_0_gml_435_0")
));
521
        draw_set_color(c_white);
522
    }
523
    if (global.chararmor2[charcoord] != 0)
524
    {
525
        draw_text(xx + 365, yy + 172, string_hash_to_newline(chararmor2name[charcoord]));
526
        draw_item_icon(xx + 343, yy + 178, chararmor2icon[charcoord]);
527
    }
528
    else
529
    {
530
        draw_set_color(c_dkgray);
531
        draw_text(xx + 365, yy + 172, string_hash_to_newline(
(Nothing)
scr_84_get_lang_string
scr_84_get_lang_string

function
scr_84_get_lang_string(arg0)
{ return ds_map_find_value(global.lang_map, arg0); }
("obj_darkcontroller_slash_Draw_0_gml_447_0")
));
532
        draw_set_color(c_white);
533
    }
534
    eq_xoff = 0;
535
    if (global.lang == "ja")
536
        eq_xoff = -6;
537
    if (global.submenucoord[11] == 0)
538
    {
539
        j = 0;
540
        for (var i = pagemax[0]; i < (6 + pagemax[0]); i += 1)
541
        {
542
            g = 0;
543
            if (charcoord == 1 && weaponchar1[i] == 0)
544
                g = 1;
545
            if (charcoord == 2 && weaponchar2[i] == 0)
546
                g = 1;
547
            if (charcoord == 3 && weaponchar3[i] == 0)
548
                g = 1;
549
            if (g == 0)
550
                draw_set_color(c_white);
551
            if (g == 1)
552
                draw_set_color(c_gray);
553
            draw_item_icon(xx + 364 + eq_xoff, yy + 236 + (j * ch_vspace), weaponicon[i]);
554
            if (global.weapon[i] != 0)
555
            {
556
                draw_text(xx + 384 + eq_xoff, yy + 230 + (j * ch_vspace), string_hash_to_newline(weaponname[i]));
557
            }
558
            else
559
            {
560
                draw_set_color(c_dkgray);
561
                draw_text(xx + 384 + eq_xoff, yy + 230 + (j * ch_vspace), string_hash_to_newline("---------"));
562
            }
563
            j += 1;
564
        }
565
    }
566
    if (global.submenucoord[11] == 1 || global.submenucoord[11] == 2)
567
    {
568
        j = 0;
569
        for (var i = pagemax[1]; i < (6 + pagemax[1]); i += 1)
570
        {
571
            g = 0;
572
            if (charcoord == 1 && armorchar1[i] == 0)
573
                g = 1;
574
            if (charcoord == 2 && armorchar2[i] == 0)
575
                g = 1;
576
            if (charcoord == 3 && armorchar3[i] == 0)
577
                g = 1;
578
            if (g == 0)
579
                draw_set_color(c_white);
580
            if (g == 1)
581
                draw_set_color(c_gray);
582
            draw_item_icon(xx + 364 + eq_xoff, yy + 236 + (j * ch_vspace), armoricon[i]);
583
            if (global.armor[i] != 0)
584
            {
585
                draw_text(xx + 384 + eq_xoff, yy + 230 + (j * ch_vspace), string_hash_to_newline(armorname[i]));
586
            }
587
            else
588
            {
589
                draw_set_color(c_dkgray);
590
                draw_text(xx + 384 + eq_xoff, yy + 230 + (j * ch_vspace), string_hash_to_newline("---------"));
591
            }
592
            j += 1;
593
        }
594
    }
595
    if (global.submenu == 12 || global.submenu == 13 || global.submenu == 14)
596
    {
597
        scroll_xoff = 0;
598
        if (global.lang == "ja")
599
            scroll_xoff = 54;
600
        if (global.submenu == 12)
601
            pm = 0;
602
        else
603
            pm = 1;
604
        draw_sprite(spr_heart, 0, xx + 344 + eq_xoff, yy + 240 + ((global.submenucoord[global.submenu] - pagemax[pm]) * ch_vspace));
605
        draw_set_color(c_white);
606
        for (var i = 0; i < 12; i += 1)
607
        {
608
            buff = 0;
609
            if (global.submenucoord[global.submenu] == i)
610
                buff += 3;
611
            if (pm == 0)
612
            {
613
                if (global.weapon[i] == 0)
614
                    buff -= 1;
615
            }
616
            if (pm == 1)
617
            {
618
                if (global.armor[i] == 0)
619
                    buff -= 1;
620
            }
621
            draw_rectangle(((xx + 555) - buff) + scroll_xoff, (yy + 260 + (i * 10)) - buff, xx + 558 + buff + scroll_xoff, yy + 263 + (i * 10) + buff, false);
622
        }
623
        if (pagemax[pm] > 0)
624
            draw_sprite_ext(spr_morearrow, 0, xx + 551 + scroll_xoff, (yy + 250) - (sin(cur_jewel / 12) * 3), 1, -1, 0, c_white, 1);
625
        if ((5 + pagemax[pm]) < 11)
626
            draw_sprite_ext(spr_morearrow, 0, xx + 551 + scroll_xoff, yy + 385 + (sin(cur_jewel / 12) * 3), 1, 1, 0, c_white, 1);
627
    }
628
    draw_set_color(c_white);
629
    var descoff = (global.lang == "en") ? 0 : 20;
630
    var txt = "";
631
    if (global.submenu == 11)
632
    {
633
        if (global.submenucoord[11] == 0)
634
            txt = charweapondesc[charcoord];
635
        if (global.submenucoord[11] == 1)
636
            txt = chararmor1desc[charcoord];
637
        if (global.submenucoord[11] == 2)
638
            txt = chararmor2desc[charcoord];
639
    }
640
    if (global.submenu == 12)
641
        txt = weapondesc[global.submenucoord[12]];
642
    if (global.submenu == 13 || global.submenu == 14)
643
        txt = armordesc[global.submenucoord[global.submenu]];
644
    if (txt != "")
645
        draw_text(xx + 20 + descoff, yy + 10, string_hash_to_newline(txt));
646
    draw_set_color(c_white);
647
    draw_text(xx + 100, yy + 230 + (ch_vspace * 0), string_hash_to_newline(
Attack:
scr_84_get_lang_string
scr_84_get_lang_string

function
scr_84_get_lang_string(arg0)
{ return ds_map_find_value(global.lang_map, arg0); }
("obj_darkcontroller_slash_Draw_0_gml_556_0")
));
648
    draw_item_icon(xx + 74, yy + 236 + (ch_vspace * 0), 1);
649
    draw_text(xx + 100, yy + 230 + (ch_vspace * 1), string_hash_to_newline(
Defense:
scr_84_get_lang_string
scr_84_get_lang_string

function
scr_84_get_lang_string(arg0)
{ return ds_map_find_value(global.lang_map, arg0); }
("obj_darkcontroller_slash_Draw_0_gml_557_0")
));
650
    draw_item_icon(xx + 74, yy + 236 + (ch_vspace * 1), 4);
651
    draw_text(xx + 100, yy + 230 + (ch_vspace * 2), string_hash_to_newline(
Magic:
scr_84_get_lang_string
scr_84_get_lang_string

function
scr_84_get_lang_string(arg0)
{ return ds_map_find_value(global.lang_map, arg0); }
("obj_darkcontroller_slash_Draw_0_gml_558_0")
));
652
    draw_item_icon(xx + 74, yy + 236 + (ch_vspace * 2), 5);
653
    atsum = global.at[global.char[coord]] + global.itemat[global.char[coord]][0] + global.itemat[global.char[coord]][1] + global.itemat[global.char[coord]][2];
654
    dfsum = global.df[global.char[coord]] + global.itemdf[global.char[coord]][0] + global.itemdf[global.char[coord]][1] + global.itemdf[global.char[coord]][2];
655
    magsum = global.mag[global.char[coord]] + global.itemmag[global.char[coord]][0] + global.itemmag[global.char[coord]][1] + global.itemmag[global.char[coord]][2];
656
    grazesum = global.grazeamt;
657
    sizesum = global.grazesize;
658
    for (var i = 0; i < 3; i += 1)
659
    {
660
        for (j = 0; j < 3; j += 1)
661
        {
662
            if (global.char[i] != 0)
663
            {
664
                grazesum += global.itemgrazeamt[global.char[i]][j];
665
                sizesum += global.itemgrazesize[global.char[i]][j];
666
            }
667
        }
668
    }
669
    if (global.submenu == 12 || global.submenu == 13 || global.submenu == 14)
670
    {
671
        cur = global.submenucoord[global.submenu];
672
        g = 0;
673
        if (global.submenu == 12)
674
        {
675
            if (charcoord == 1 && weaponchar1[cur] == 0)
676
                g = 1;
677
            if (charcoord == 2 && weaponchar2[cur] == 0)
678
                g = 1;
679
            if (charcoord == 3 && weaponchar3[cur] == 0)
680
                g = 1;
681
        }
682
        if (global.submenu == 13 || global.submenu == 14)
683
        {
684
            if (charcoord == 1 && armorchar1[cur] == 0)
685
                g = 1;
686
            if (charcoord == 2 && armorchar2[cur] == 0)
687
                g = 1;
688
            if (charcoord == 3 && armorchar3[cur] == 0)
689
                g = 1;
690
        }
691
        _abilitytext[0] = charweaponability[charcoord];
692
        _abilitytext[1] = chararmor1ability[charcoord];
693
        _abilitytext[2] = chararmor2ability[charcoord];
694
        _abilitycolor[0] = 4210752;
695
        _abilitycolor[1] = 4210752;
696
        _abilitycolor[2] = 4210752;
697
        _abilityicon[0] = charweaponabilityicon[charcoord];
698
        _abilityicon[1] = chararmor1abilityicon[charcoord];
699
        _abilityicon[2] = chararmor2abilityicon[charcoord];
700
        if (g == 0 && global.submenu == 12)
701
        {
702
            atup = weaponat[cur] - global.itemat[charcoord][0];
703
            dfup = weapondf[cur] - global.itemdf[charcoord][0];
704
            magup = weaponmag[cur] - global.itemmag[charcoord][0];
705
            styleup = weaponstyle[cur];
706
            grazeup = weapongrazeamt[cur] - global.itemgrazeamt[charcoord][0];
707
            sizeup = weapongrazesize[cur] - global.itemgrazesize[charcoord][0];
708
            _abilitycolor[0] = 16777215;
709
            _abilityicon[0] = weaponabilityicon[cur];
710
            if (weaponability[cur] != _abilitytext[0])
711
            {
712
                _abilitycolor[0] = 65535;
713
                if (weaponability[cur] == " ")
714
                    _abilitycolor[0] = 255;
715
            }
716
            _abilitytext[0] = weaponability[cur];
717
            draw_set_color(c_white);
718
            if (atup > 0)
719
                draw_set_color(c_yellow);
720
            if (atup < 0)
721
                draw_set_color(c_red);
722
            if (global.lang == "ja")
723
                draw_text(xx + 230, yy + 230 + (ch_vspace * 0), string_hash_to_newline(string(atsum + atup)));
724
            else
725
                draw_text(xx + 230, yy + 230 + (ch_vspace * 0), string_hash_to_newline(string(atsum + atup) + 
(
scr_84_get_lang_string
scr_84_get_lang_string

function
scr_84_get_lang_string(arg0)
{ return ds_map_find_value(global.lang_map, arg0); }
("obj_darkcontroller_slash_Draw_0_gml_643_0")
+ string(atup) + ")"));
726
            draw_set_color(c_white);
727
            if (dfup > 0)
728
                draw_set_color(c_yellow);
729
            if (dfup < 0)
730
                draw_set_color(c_red);
731
            draw_text(xx + 230, yy + 230 + (ch_vspace * 1), string_hash_to_newline(dfsum + dfup));
732
            draw_set_color(c_white);
733
            if (magup > 0)
734
                draw_set_color(c_yellow);
735
            if (magup < 0)
736
                draw_set_color(c_red);
737
            draw_text(xx + 230, yy + 230 + (ch_vspace * 2), string_hash_to_newline(magsum + magup));
738
        }
739
        if (g == 0)
740
        {
741
            if (global.submenu == 13 || global.submenu == 14)
742
            {
743
                arno = global.submenu - 12;
744
                atup = armorat[cur] - global.itemat[charcoord][arno];
745
                dfup = armordf[cur] - global.itemdf[charcoord][arno];
746
                magup = armormag[cur] - global.itemmag[charcoord][arno];
747
                grazeup = armorgrazeamt[cur] - global.itemgrazeamt[charcoord][arno];
748
                sizeup = armorgrazesize[cur] - global.itemgrazesize[charcoord][arno];
749
                _abilitycolor[arno] = 16777215;
750
                _abilityicon[arno] = armorabilityicon[cur];
751
                if (armorability[cur] != _abilitytext[arno])
752
                {
753
                    _abilitycolor[arno] = 65535;
754
                    if (armorability[cur] == " ")
755
                        _abilitycolor[arno] = 255;
756
                }
757
                _abilitytext[arno] = armorability[cur];
758
                draw_set_color(c_white);
759
                if (atup > 0)
760
                    draw_set_color(c_yellow);
761
                if (atup < 0)
762
                    draw_set_color(c_red);
763
                draw_text(xx + 230, yy + 230 + (ch_vspace * 0), string_hash_to_newline(atsum + atup));
764
                draw_set_color(c_white);
765
                if (dfup > 0)
766
                    draw_set_color(c_yellow);
767
                if (dfup < 0)
768
                    draw_set_color(c_red);
769
                draw_text(xx + 230, yy + 230 + (ch_vspace * 1), string_hash_to_newline(dfsum + dfup));
770
                draw_set_color(c_white);
771
                if (magup > 0)
772
                    draw_set_color(c_yellow);
773
                if (magup < 0)
774
                    draw_set_color(c_red);
775
                draw_text(xx + 230, yy + 230 + (ch_vspace * 2), string_hash_to_newline(magsum + magup));
776
            }
777
        }
778
        if (g == 1)
779
        {
780
            draw_text(xx + 230, yy + 230 + (ch_vspace * 0), string_hash_to_newline(atsum));
781
            draw_text(xx + 230, yy + 230 + (ch_vspace * 1), string_hash_to_newline(dfsum));
782
            draw_text(xx + 230, yy + 230 + (ch_vspace * 2), string_hash_to_newline(magsum));
783
        }
784
        for (var i = 0; i < 3; i += 1)
785
        {
786
            if (_abilitytext[i] == " ")
787
            {
788
                draw_set_color(_abilitycolor[i]);
789
                draw_text(xx + 100, yy + 230 + (ch_vspace * (i + 3)), string_hash_to_newline(
(No ability.)
scr_84_get_lang_string
scr_84_get_lang_string

function
scr_84_get_lang_string(arg0)
{ return ds_map_find_value(global.lang_map, arg0); }
("obj_darkcontroller_slash_Draw_0_gml_736_0")
));
790
            }
791
            else
792
            {
793
                draw_set_color(_abilitycolor[i]);
794
                draw_text(xx + 100, yy + 230 + (ch_vspace * (i + 3)), string_hash_to_newline(_abilitytext[i]));
795
                draw_set_color(c_orange);
796
                draw_item_icon(xx + 74, yy + 230 + (ch_vspace * (i + 3)) + 8, _abilityicon[i]);
797
            }
798
        }
799
    }
800
    else
801
    {
802
        draw_text(xx + 230, yy + 230 + (ch_vspace * 0), string_hash_to_newline(atsum));
803
        draw_text(xx + 230, yy + 230 + (ch_vspace * 1), string_hash_to_newline(dfsum));
804
        draw_text(xx + 230, yy + 230 + (ch_vspace * 2), string_hash_to_newline(magsum));
805
        _abilitytext[0] = charweaponability[charcoord];
806
        _abilitytext[1] = chararmor1ability[charcoord];
807
        _abilitytext[2] = chararmor2ability[charcoord];
808
        _abilitycolor[0] = 16777215;
809
        _abilitycolor[1] = 16777215;
810
        _abilitycolor[2] = 16777215;
811
        _abilityicon[0] = charweaponabilityicon[charcoord];
812
        _abilityicon[1] = chararmor1abilityicon[charcoord];
813
        _abilityicon[2] = chararmor2abilityicon[charcoord];
814
        for (var i = 0; i < 3; i += 1)
815
        {
816
            if (_abilitytext[i] == " ")
817
            {
818
                draw_set_color(c_dkgray);
819
                draw_text(xx + 100, yy + 230 + (ch_vspace * (i + 3)), string_hash_to_newline(
(No ability.)
scr_84_get_lang_string
scr_84_get_lang_string

function
scr_84_get_lang_string(arg0)
{ return ds_map_find_value(global.lang_map, arg0); }
("obj_darkcontroller_slash_Draw_0_gml_773_0")
));
820
            }
821
            else
822
            {
823
                draw_set_color(_abilitycolor[i]);
824
                draw_text(xx + 100, yy + 230 + (ch_vspace * (i + 3)), string_hash_to_newline(_abilitytext[i]));
825
                draw_set_color(c_orange);
826
                draw_item_icon(xx + 74, yy + 230 + (ch_vspace * (i + 3)) + 8, _abilityicon[i]);
827
            }
828
        }
829
    }
830
    xx = memxx;
831
}
832
if (global.menuno == 1)
833
{
834
    draw_set_color(c_black);
835
    if (global.lang == "ja")
836
    {
837
        draw_rectangle(xx + 46, yy + 90, xx + 594, yy + 360, false);
838
        
scr_darkbox
scr_darkbox

function
scr_darkbox(arg0, arg1, arg2, arg3)
{ cur_jewel += 1; textbox_width = arg2 - arg0 - 63; if (textbox_width < 0) textbox_width = 0; textbox_height = arg3 - arg1 - 63; if (textbox_height < 0) textbox_height = 0; if (textbox_width > 0) { draw_sprite_stretched(spr_textbox_top, 0, arg0 + 32, arg1, textbox_width, 32); draw_sprite_ext(spr_textbox_top, 0, arg0 + 32, arg3 + 1, textbox_width, -2, 0, c_white, 1); } if (textbox_height > 0) { draw_sprite_ext(spr_textbox_left, 0, arg2 + 1, arg1 + 32, -2, textbox_height, 0, c_white, 1); draw_sprite_ext(spr_textbox_left, 0, arg0, arg1 + 32, 2, textbox_height, 0, c_white, 1); } if (global.flag[8 simplify_vfx] == 0) { draw_sprite_ext(spr_textbox_topleft, cur_jewel / 10, arg0, arg1, 2, 2, 0, c_white, 1); draw_sprite_ext(spr_textbox_topleft, cur_jewel / 10, arg2 + 1, arg1, -2, 2, 0, c_white, 1); draw_sprite_ext(spr_textbox_topleft, cur_jewel / 10, arg0, arg3 + 1, 2, -2, 0, c_white, 1); draw_sprite_ext(spr_textbox_topleft, cur_jewel / 10, arg2 + 1, arg3 + 1, -2, -2, 0, c_white, 1); } else { draw_sprite_ext(spr_textbox_topleft, 0, arg0, arg1, 2, 2, 0, c_white, 1); draw_sprite_ext(spr_textbox_topleft, 0, arg2 + 1, arg1, -2, 2, 0, c_white, 1); draw_sprite_ext(spr_textbox_topleft, 0, arg0, arg3 + 1, 2, -2, 0, c_white, 1); draw_sprite_ext(spr_textbox_topleft, 0, arg2 + 1, arg3 + 1, -2, -2, 0, c_white, 1); } }
(xx + 36, yy + 80, xx + 604, yy + 370);
839
    }
840
    else
841
    {
842
        draw_rectangle(xx + 70, yy + 90, xx + 570, yy + 360, false);
843
        
scr_darkbox
scr_darkbox

function
scr_darkbox(arg0, arg1, arg2, arg3)
{ cur_jewel += 1; textbox_width = arg2 - arg0 - 63; if (textbox_width < 0) textbox_width = 0; textbox_height = arg3 - arg1 - 63; if (textbox_height < 0) textbox_height = 0; if (textbox_width > 0) { draw_sprite_stretched(spr_textbox_top, 0, arg0 + 32, arg1, textbox_width, 32); draw_sprite_ext(spr_textbox_top, 0, arg0 + 32, arg3 + 1, textbox_width, -2, 0, c_white, 1); } if (textbox_height > 0) { draw_sprite_ext(spr_textbox_left, 0, arg2 + 1, arg1 + 32, -2, textbox_height, 0, c_white, 1); draw_sprite_ext(spr_textbox_left, 0, arg0, arg1 + 32, 2, textbox_height, 0, c_white, 1); } if (global.flag[8 simplify_vfx] == 0) { draw_sprite_ext(spr_textbox_topleft, cur_jewel / 10, arg0, arg1, 2, 2, 0, c_white, 1); draw_sprite_ext(spr_textbox_topleft, cur_jewel / 10, arg2 + 1, arg1, -2, 2, 0, c_white, 1); draw_sprite_ext(spr_textbox_topleft, cur_jewel / 10, arg0, arg3 + 1, 2, -2, 0, c_white, 1); draw_sprite_ext(spr_textbox_topleft, cur_jewel / 10, arg2 + 1, arg3 + 1, -2, -2, 0, c_white, 1); } else { draw_sprite_ext(spr_textbox_topleft, 0, arg0, arg1, 2, 2, 0, c_white, 1); draw_sprite_ext(spr_textbox_topleft, 0, arg2 + 1, arg1, -2, 2, 0, c_white, 1); draw_sprite_ext(spr_textbox_topleft, 0, arg0, arg3 + 1, 2, -2, 0, c_white, 1); draw_sprite_ext(spr_textbox_topleft, 0, arg2 + 1, arg3 + 1, -2, -2, 0, c_white, 1); } }
(xx + 60, yy + 80, xx + 580, yy + 370);
844
    }
845
    
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");
846
    
scr_itemname
scr_itemname

function
scr_itemname()
{ for (i = 0; i < 12; i += 1) { itemid = global.item[i];
scr_itemnamelist();
} }
();
847
    if (global.lang == "ja")
848
    {
849
        if (global.submenu == 1)
850
            draw_sprite(spr_heart, 0, xx + 134 + (120 * global.submenucoord[1]), yy + 120);
851
        draw_set_color(c_white);
852
        if (global.submenu > 1)
853
        {
854
            if (global.submenucoord[1] == 0)
855
                draw_set_color(c_orange);
856
            else
857
                draw_set_color(c_gray);
858
        }
859
        draw_text(xx + 158, yy + 110, string_hash_to_newline(
USE
scr_84_get_lang_string
scr_84_get_lang_string

function
scr_84_get_lang_string(arg0)
{ return ds_map_find_value(global.lang_map, arg0); }
("obj_darkcontroller_slash_Draw_0_gml_807_0")
));
860
        if (global.submenu > 1)
861
        {
862
            if (global.submenucoord[1] == 1)
863
                draw_set_color(c_orange);
864
            else
865
                draw_set_color(c_gray);
866
        }
867
        draw_text(xx + 278, yy + 110, string_hash_to_newline(
TOSS
scr_84_get_lang_string
scr_84_get_lang_string

function
scr_84_get_lang_string(arg0)
{ return ds_map_find_value(global.lang_map, arg0); }
("obj_darkcontroller_slash_Draw_0_gml_809_0")
));
868
        if (global.submenu > 1)
869
        {
870
            if (global.submenucoord[1] == 2)
871
                draw_set_color(c_orange);
872
            else
873
                draw_set_color(c_gray);
874
        }
875
        draw_text(xx + 398, yy + 110, string_hash_to_newline(
KEY
scr_84_get_lang_string
scr_84_get_lang_string

function
scr_84_get_lang_string(arg0)
{ return ds_map_find_value(global.lang_map, arg0); }
("obj_darkcontroller_slash_Draw_0_gml_811_0")
));
876
    }
877
    else
878
    {
879
        if (global.submenu == 1)
880
            draw_sprite(spr_heart, 0, xx + 155 + (120 * global.submenucoord[1]), yy + 120);
881
        draw_set_color(c_white);
882
        if (global.submenu > 1)
883
        {
884
            if (global.submenucoord[1] == 0)
885
                draw_set_color(c_orange);
886
            else
887
                draw_set_color(c_gray);
888
        }
889
        draw_text(xx + 180, yy + 110, string_hash_to_newline(
USE
scr_84_get_lang_string
scr_84_get_lang_string

function
scr_84_get_lang_string(arg0)
{ return ds_map_find_value(global.lang_map, arg0); }
("obj_darkcontroller_slash_Draw_0_gml_807_0")
));
890
        if (global.submenu > 1)
891
        {
892
            if (global.submenucoord[1] == 1)
893
                draw_set_color(c_orange);
894
            else
895
                draw_set_color(c_gray);
896
        }
897
        draw_text(xx + 300, yy + 110, string_hash_to_newline(
TOSS
scr_84_get_lang_string
scr_84_get_lang_string

function
scr_84_get_lang_string(arg0)
{ return ds_map_find_value(global.lang_map, arg0); }
("obj_darkcontroller_slash_Draw_0_gml_809_0")
));
898
        if (global.submenu > 1)
899
        {
900
            if (global.submenucoord[1] == 2)
901
                draw_set_color(c_orange);
902
            else
903
                draw_set_color(c_gray);
904
        }
905
        draw_text(xx + 420, yy + 110, string_hash_to_newline(
KEY
scr_84_get_lang_string
scr_84_get_lang_string

function
scr_84_get_lang_string(arg0)
{ return ds_map_find_value(global.lang_map, arg0); }
("obj_darkcontroller_slash_Draw_0_gml_811_0")
));
906
    }
907
    if (global.submenu >= 2 && global.submenu <= 6 && global.submenu != 4)
908
    {
909
        sm = global.submenucoord[2];
910
        yheart = (floor(sm / 2) * 30) + 162 + yy;
911
        if (global.lang == "ja")
912
        {
913
            xheart = 72 + xx;
914
            if (sm == 1 || sm == 3 || sm == 5 || sm == 7 || sm == 9 || sm == 11)
915
                xheart = 334 + xx;
916
        }
917
        else
918
        {
919
            xheart = 120 + xx;
920
            if (sm == 1 || sm == 3 || sm == 5 || sm == 7 || sm == 9 || sm == 11)
921
                xheart = 330 + xx;
922
        }
923
        if (global.submenu == 2 || global.submenu == 3)
924
            draw_sprite(spr_heart, 0, xheart, yheart);
925
        draw_set_color(c_white);
926
        draw_text(xx + 20, yy + 10, string_hash_to_newline(itemdesc[global.submenucoord[2]]));
927
    }
928
    if (global.submenu == 7)
929
    {
930
        draw_set_color(c_white);
931
        if (global.lang == "ja")
932
            draw_text(xx + 20, yy + 10, global.itemname[global.submenucoord[2]] + string_hash_to_newline(
Really throw away the#
scr_84_get_lang_string
scr_84_get_lang_string

function
scr_84_get_lang_string(arg0)
{ return ds_map_find_value(global.lang_map, arg0); }
("obj_darkcontroller_slash_Draw_0_gml_829_0")
));
933
        else
934
            draw_text(xx + 20, yy + 10, string_hash_to_newline(
Really throw away the#
scr_84_get_lang_string
scr_84_get_lang_string

function
scr_84_get_lang_string(arg0)
{ return ds_map_find_value(global.lang_map, arg0); }
("obj_darkcontroller_slash_Draw_0_gml_829_0")
+ global.itemname[global.submenucoord[2]] + "?"));
935
    }
936
    if (global.submenucoord[1] != 2)
937
    {
938
        if (global.lang == "ja")
939
        {
940
            draw_set_color(bcolor);
941
            for (var i = 0; i < 6; i += 1)
942
            {
943
                draw_text(xx + 94, yy + 154 + (30 * i), string_hash_to_newline(global.itemname[i * 2]));
944
                draw_text(xx + 358, yy + 154 + (30 * i), string_hash_to_newline(global.itemname[(i * 2) + 1]));
945
            }
946
            draw_set_color(c_white);
947
            if (global.submenu == 1)
948
                draw_set_color(c_gray);
949
            for (var i = 0; i < 6; i += 1)
950
            {
951
                draw_text(xx + 92, yy + 152 + (30 * i), string_hash_to_newline(global.itemname[i * 2]));
952
                draw_text(xx + 356, yy + 152 + (30 * i), string_hash_to_newline(global.itemname[(i * 2) + 1]));
953
            }
954
        }
955
        else
956
        {
957
            draw_set_color(bcolor);
958
            for (var i = 0; i < 6; i += 1)
959
            {
960
                draw_text(xx + 148, yy + 154 + (30 * i), string_hash_to_newline(global.itemname[i * 2]));
961
                draw_text(xx + 358, yy + 154 + (30 * i), string_hash_to_newline(global.itemname[(i * 2) + 1]));
962
            }
963
            draw_set_color(c_white);
964
            if (global.submenu == 1)
965
                draw_set_color(c_gray);
966
            for (var i = 0; i < 6; i += 1)
967
            {
968
                draw_text(xx + 146, yy + 152 + (30 * i), string_hash_to_newline(global.itemname[i * 2]));
969
                draw_text(xx + 356, yy + 152 + (30 * i), string_hash_to_newline(global.itemname[(i * 2) + 1]));
970
            }
971
        }
972
    }
973
    if (global.submenucoord[1] == 2)
974
    {
975
        
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; } }
();
976
        if (global.lang == "ja")
977
        {
978
            draw_set_color(bcolor);
979
            for (var i = 0; i < 6; i += 1)
980
            {
981
                draw_text(xx + 94, yy + 154 + (30 * i), string_hash_to_newline(keyitemname[i * 2]));
982
                draw_text(xx + 358, yy + 154 + (30 * i), string_hash_to_newline(keyitemname[(i * 2) + 1]));
983
            }
984
            draw_set_color(c_white);
985
            if (global.submenu == 1)
986
                draw_set_color(c_gray);
987
            for (var i = 0; i < 6; i += 1)
988
            {
989
                if (global.submenu == 4)
990
                {
991
                    if (keyitemusable[i * 2] == 1)
992
                        draw_set_color(c_white);
993
                    else
994
                        draw_set_color(c_ltgray);
995
                }
996
                draw_text(xx + 92, yy + 152 + (30 * i), string_hash_to_newline(keyitemname[i * 2]));
997
                if (global.submenu == 4)
998
                {
999
                    if (keyitemusable[(i * 2) + 1] == 1)
1000
                        draw_set_color(c_white);
1001
                    else
1002
                        draw_set_color(c_ltgray);
1003
                }
1004
                draw_text(xx + 356, yy + 152 + (30 * i), string_hash_to_newline(keyitemname[(i * 2) + 1]));
1005
            }
1006
        }
1007
        else
1008
        {
1009
            draw_set_color(bcolor);
1010
            for (var i = 0; i < 6; i += 1)
1011
            {
1012
                draw_text(xx + 148, yy + 154 + (30 * i), string_hash_to_newline(keyitemname[i * 2]));
1013
                draw_text(xx + 358, yy + 154 + (30 * i), string_hash_to_newline(keyitemname[(i * 2) + 1]));
1014
            }
1015
            draw_set_color(c_white);
1016
            if (global.submenu == 1)
1017
                draw_set_color(c_gray);
1018
            for (var i = 0; i < 6; i += 1)
1019
            {
1020
                if (global.submenu == 4)
1021
                {
1022
                    if (keyitemusable[i * 2] == 1)
1023
                        draw_set_color(c_white);
1024
                    else
1025
                        draw_set_color(c_ltgray);
1026
                }
1027
                draw_text(xx + 146, yy + 152 + (30 * i), string_hash_to_newline(keyitemname[i * 2]));
1028
                if (global.submenu == 4)
1029
                {
1030
                    if (keyitemusable[(i * 2) + 1] == 1)
1031
                        draw_set_color(c_white);
1032
                    else
1033
                        draw_set_color(c_ltgray);
1034
                }
1035
                draw_text(xx + 356, yy + 152 + (30 * i), string_hash_to_newline(keyitemname[(i * 2) + 1]));
1036
            }
1037
        }
1038
        if (global.submenu == 4)
1039
        {
1040
            sm = global.submenucoord[4];
1041
            yheart = (floor(sm / 2) * 30) + 162 + yy;
1042
            if (global.lang == "ja")
1043
            {
1044
                xheart = 72 + xx;
1045
                if (sm == 1 || sm == 3 || sm == 5 || sm == 7 || sm == 9 || sm == 11)
1046
                    xheart = 334 + xx;
1047
            }
1048
            else
1049
            {
1050
                xheart = 120 + xx;
1051
                if (sm == 1 || sm == 3 || sm == 5 || sm == 7 || sm == 9 || sm == 11)
1052
                    xheart = 330 + xx;
1053
            }
1054
            draw_sprite(spr_heart, 0, xheart, yheart);
1055
            draw_set_color(c_white);
1056
            draw_text(xx + 20, yy + 10, string_hash_to_newline(keyitemdesc[global.submenucoord[4]]));
1057
        }
1058
    }
1059
}
1060
1061
enum e__VW
1062
{
1063
    XView,
1064
    YView,
1065
    WView,
1066
    HView,
1067
    Angle,
1068
    HBorder,
1069
    VBorder,
1070
    HSpeed,
1071
    VSpeed,
1072
    Object,
1073
    Visible,
1074
    XPort,
1075
    YPort,
1076
    WPort,
1077
    HPort,
1078
    Camera,
1079
    SurfaceID
1080
}