1 |
if (init) |
2 |
event_inherited(); |
3 |
if (type == 2 && init == 1) |
4 |
{ |
5 |
draw_set_color(c_white); |
6 |
var topbary = 206; |
7 |
draw_rectangle(camerax() + 110, cameray() + topbary, (camerax() + 640) - 110, cameray() + topbary + 2, 0); |
8 |
} |
9 |
if (type == 1 && init == 1) |
10 |
{ |
11 |
draw_set_color(c_white); |
12 |
var topbary = 179; |
13 |
var botbary = 278; |
14 |
draw_rectangle((camerax() + 110) - 20, cameray() + topbary, ((camerax() + 640) - 110) + 20, cameray() + topbary + 2, 0); |
15 |
draw_rectangle((camerax() + 110) - 20, cameray() + botbary, ((camerax() + 640) - 110) + 20, cameray() + botbary + 2, 0); |
16 |
draw_set_halign(fa_right); |
17 |
if (global.lang == "ja") |
18 |
draw_text_transformed(((camerax() + 640) - 110) + 20 + 40, 346, string((floor(menuScrollCurrent[0]) / 2) + 1) + " / " + string(ceil(menuMaximumID[0] / 2)), 0.5, 1, 0); |
19 |
else |
20 |
draw_text_transformed(((camerax() + 640) - 110) + 20 + 40, 346, stringsetloc(Page "Page ", "obj_fusionmenu_slash_Draw_0_gml_171_0" ) + string((floor(menuScrollCurrent[0]) / 2) + 1) + " / " + string(ceil(menuMaximumID[0] / 2)), 0.5, 1, 0); |
21 |
draw_set_halign(fa_left); |
22 |
} |
23 |
if (type == 3 && init == 1) |
24 |
{ |
25 |
if (menu == 0) |
26 |
{ |
27 |
scr_84_set_draw_font("mainbig"); |
28 |
draw_set_color(c_white); |
29 |
draw_text(xx + 80, yy + 30, stringsetloc(Recruits"Recruits", "obj_fusionmenu_slash_Draw_0_gml_14_0" )); |
30 |
if (alternateMenu == 0) |
31 |
{ |
32 |
draw_rectangle(xx + 330, yy + 10, xx + 620, yy + 440, false); |
33 |
draw_set_color(c_black); |
34 |
draw_rectangle(xx + 334, yy + 14, (xx + 620) - 4, (yy + 440) - 4, false); |
35 |
} |
36 |
reccolor = c_black; |
37 |
if (recruitChapter[menuCoord[0]] == 1) |
38 |
reccolor = c_purple; |
39 |
if (recruitChapter[menuCoord[0]] == 2) |
40 |
reccolor = c_aqua; |
41 |
draw_rectangle_color(xx + 370, yy + 75, xx + 370 + 205, yy + 75 + 150, c_black, c_black, reccolor, reccolor, false); |
42 |
draw_set_color(c_white); |
43 |
draw_rectangle(xx + 370, yy + 75, xx + 370 + 205, yy + 75 + 150, true); |
44 |
recruitspriteheight = sprite_get_height(recruitSprite[menuCoord[0]]); |
45 |
recruitspritewidth = sprite_get_width(recruitSprite[menuCoord[0]]); |
46 |
rx = ((sprite_get_xoffset(recruitSprite[menuCoord[0]]) * 2) - recruitspritewidth) + (recruitSpriteX[menuCoord[0]] * 2); |
47 |
ry = ((sprite_get_yoffset(recruitSprite[menuCoord[0]]) * 2) - (recruitspriteheight * 2)) + (recruitSpriteY[menuCoord[0]] * 2); |
48 |
animer += 0.25; |
49 |
draw_sprite_ext(recruitSprite[menuCoord[0]], animer, xx + 470 + rx, yy + 220 + ry, 2, 2, 0, c_white, 1); |
50 |
if (recruitSprite[menuCoord[0]] == spr_werewire_idle) |
51 |
{ |
52 |
draw_sprite_ext(spr_werewire_wire_curve, 0, (xx + 470 + rx) - 20, (yy + 220 + ry) - 12, 2, 2, 0, c_white, 1); |
53 |
draw_sprite_ext(spr_werewire_wire_vertical, 0, (xx + 470 + rx) - 20, (yy + 220 + ry) - 12 - 31, 2, 8, 0, c_white, 1); |
54 |
} |
55 |
draw_set_halign(fa_center); |
56 |
draw_text(xx + 473, yy + 240, recruitName[menuCoord[0]]); |
57 |
draw_set_halign(fa_left); |
58 |
draw_text_transformed(xx + 368, yy + 280, stringsetloc(CHAPTER "CHAPTER ", "obj_fusionmenu_slash_Draw_0_gml_47_0" ) + string(recruitChapter[menuCoord[0]]), 1, 1, 0); |
59 |
draw_set_halign(fa_right); |
60 |
draw_text_transformed(xx + 576, yy + 280, stringsetloc(LV "LV ", "obj_fusionmenu_slash_Draw_0_gml_48_0" ) + string(recruitLevel[menuCoord[0]]), 1, 1, 0); |
61 |
draw_set_halign(fa_left); |
62 |
if (alternateMenu == 0) |
63 |
{ |
64 |
if (global.is_console || obj_gamecontroller.gamepad_active) |
65 |
{ |
66 |
draw_sprite_ext(scr_getbuttonspritescr_getbuttonspritefunction scr_getbuttonsprite(arg0, arg1)
{
var control = arg0;
var isString = arg1;
var button = noone;
var is_dualshock = os_type == os_ps4 || obj_gamecontroller.gamepad_type == 1;
var button_sprite = button_questionmark;
var invert = is_dualshock && (global.typer == 50 || global.typer == 70 || global.typer == 71);
if (isString)
{
if (control == "A")
{
button_sprite = button_xbox_left;
if (os_type == os_switch)
button_sprite = button_switch_left_0;
else if (is_dualshock)
button_sprite = invert ? button_ps4_dpad_left_dark : button_ps4_dpad_left;
return button_sprite;
}
if (control == "D")
{
button_sprite = button_xbox_right;
if (os_type == os_switch)
button_sprite = button_switch_right_0;
else if (is_dualshock)
button_sprite = invert ? button_ps4_dpad_right_dark : button_ps4_dpad_right;
return button_sprite;
}
if (control == "W")
{
button_sprite = button_xbox_up;
if (os_type == os_switch)
button_sprite = button_switch_up_0;
else if (is_dualshock)
button_sprite = invert ? button_ps4_dpad_up_dark : button_ps4_dpad_up;
return button_sprite;
}
if (control == "S")
{
button_sprite = button_xbox_down;
if (os_type == os_switch)
button_sprite = button_switch_down_0;
else if (is_dualshock)
button_sprite = invert ? button_ps4_dpad_down_dark : button_ps4_dpad_down;
return button_sprite;
}
if (control == "Z")
button = global.button0;
if (control == "X")
button = global.button1;
if (control == "C")
button = global.button2;
}
else
{
button = control;
if (control == gp_padl)
{
button_sprite = button_xbox_left;
if (os_type == os_switch)
button_sprite = button_switch_left_0;
else if (is_dualshock)
button_sprite = invert ? button_ps4_dpad_left_dark : button_ps4_dpad_left;
return button_sprite;
}
if (control == gp_padr)
{
button_sprite = button_xbox_right;
if (os_type == os_switch)
button_sprite = button_switch_right_0;
else if (is_dualshock)
button_sprite = invert ? button_ps4_dpad_right_dark : button_ps4_dpad_right;
return button_sprite;
}
if (control == gp_padu)
{
button_sprite = button_xbox_up;
if (os_type == os_switch)
button_sprite = button_switch_up_0;
else if (is_dualshock)
button_sprite = invert ? button_ps4_dpad_up_dark : button_ps4_dpad_up;
return button_sprite;
}
if (control == gp_padd)
{
button_sprite = button_xbox_down;
if (os_type == os_switch)
button_sprite = button_switch_down_0;
else if (is_dualshock)
button_sprite = invert ? button_ps4_dpad_down_dark : button_ps4_dpad_down;
return button_sprite;
}
}
if (button == gp_face1)
{
button_sprite = button_xbox_a;
if (is_dualshock)
button_sprite = button_ps4_cross_0;
if (os_type == os_switch)
button_sprite = button_switch_b_0;
return button_sprite;
... (global.input_g[4], false), 0, xx + 380, yy + 323, 2, 2, 0, c_white, 1); |
67 |
draw_sprite_ext(scr_getbuttonspritescr_getbuttonspritefunction scr_getbuttonsprite(arg0, arg1)
{
var control = arg0;
var isString = arg1;
var button = noone;
var is_dualshock = os_type == os_ps4 || obj_gamecontroller.gamepad_type == 1;
var button_sprite = button_questionmark;
var invert = is_dualshock && (global.typer == 50 || global.typer == 70 || global.typer == 71);
if (isString)
{
if (control == "A")
{
button_sprite = button_xbox_left;
if (os_type == os_switch)
button_sprite = button_switch_left_0;
else if (is_dualshock)
button_sprite = invert ? button_ps4_dpad_left_dark : button_ps4_dpad_left;
return button_sprite;
}
if (control == "D")
{
button_sprite = button_xbox_right;
if (os_type == os_switch)
button_sprite = button_switch_right_0;
else if (is_dualshock)
button_sprite = invert ? button_ps4_dpad_right_dark : button_ps4_dpad_right;
return button_sprite;
}
if (control == "W")
{
button_sprite = button_xbox_up;
if (os_type == os_switch)
button_sprite = button_switch_up_0;
else if (is_dualshock)
button_sprite = invert ? button_ps4_dpad_up_dark : button_ps4_dpad_up;
return button_sprite;
}
if (control == "S")
{
button_sprite = button_xbox_down;
if (os_type == os_switch)
button_sprite = button_switch_down_0;
else if (is_dualshock)
button_sprite = invert ? button_ps4_dpad_down_dark : button_ps4_dpad_down;
return button_sprite;
}
if (control == "Z")
button = global.button0;
if (control == "X")
button = global.button1;
if (control == "C")
button = global.button2;
}
else
{
button = control;
if (control == gp_padl)
{
button_sprite = button_xbox_left;
if (os_type == os_switch)
button_sprite = button_switch_left_0;
else if (is_dualshock)
button_sprite = invert ? button_ps4_dpad_left_dark : button_ps4_dpad_left;
return button_sprite;
}
if (control == gp_padr)
{
button_sprite = button_xbox_right;
if (os_type == os_switch)
button_sprite = button_switch_right_0;
else if (is_dualshock)
button_sprite = invert ? button_ps4_dpad_right_dark : button_ps4_dpad_right;
return button_sprite;
}
if (control == gp_padu)
{
button_sprite = button_xbox_up;
if (os_type == os_switch)
button_sprite = button_switch_up_0;
else if (is_dualshock)
button_sprite = invert ? button_ps4_dpad_up_dark : button_ps4_dpad_up;
return button_sprite;
}
if (control == gp_padd)
{
button_sprite = button_xbox_down;
if (os_type == os_switch)
button_sprite = button_switch_down_0;
else if (is_dualshock)
button_sprite = invert ? button_ps4_dpad_down_dark : button_ps4_dpad_down;
return button_sprite;
}
}
if (button == gp_face1)
{
button_sprite = button_xbox_a;
if (is_dualshock)
button_sprite = button_ps4_cross_0;
if (os_type == os_switch)
button_sprite = button_switch_b_0;
return button_sprite;
... (global.input_g[5], false), 0, xx + 380, yy + 353, 2, 2, 0, c_white, 1); |
68 |
draw_text(xx + 414, yy + 320, string_hash_to_newline(stringsetloc(More Info"More Info", "obj_fusionmenu_slash_Draw_0_gml_70_0" ))); |
69 |
draw_text(xx + 414, yy + 350, string_hash_to_newline(stringsetloc(Quit"Quit", "obj_fusionmenu_slash_Draw_0_gml_71_0" ))); |
70 |
} |
71 |
else |
72 |
{ |
73 |
draw_text(xx + 380, yy + 320, string_hash_to_newline(stringsetsubloc("~1: More Info#~2: Quit", scr_get_input_namescr_get_input_namefunction scr_get_input_name(arg0)
{
var _control = "[?]";
if (global.is_console || obj_gamecontroller.gamepad_active)
{
_control = global.input_g[arg0];
if (_control == gp_padr)
return "\\*D ";
if (_control == gp_padl)
return "\\*A ";
if (_control == gp_padu)
return "\\*W ";
if (_control == gp_padd)
return "\\*S ";
if (_control == global.button0)
return "\\*Z ";
if (_control == global.button1)
return "\\*X ";
if (_control == global.button2)
return "\\*C ";
}
var left_bracket = (global.lang == "en") ? "[" : "[";
var right_bracket = (global.lang == "en") ? "]" : "]";
_control = left_bracket + global.asc_def[global.input_k[arg0]] + right_bracket;
if (!is_string(_control))
_control = "[?]";
else
return _control;
} (4), scr_get_input_namescr_get_input_namefunction scr_get_input_name(arg0)
{
var _control = "[?]";
if (global.is_console || obj_gamecontroller.gamepad_active)
{
_control = global.input_g[arg0];
if (_control == gp_padr)
return "\\*D ";
if (_control == gp_padl)
return "\\*A ";
if (_control == gp_padu)
return "\\*W ";
if (_control == gp_padd)
return "\\*S ";
if (_control == global.button0)
return "\\*Z ";
if (_control == global.button1)
return "\\*X ";
if (_control == global.button2)
return "\\*C ";
}
var left_bracket = (global.lang == "en") ? "[" : "[";
var right_bracket = (global.lang == "en") ? "]" : "]";
_control = left_bracket + global.asc_def[global.input_k[arg0]] + right_bracket;
if (!is_string(_control))
_control = "[?]";
else
return _control;
} (5), "obj_fusionmenu_slash_Draw_0_gml_50_0"))); |
74 |
} |
75 |
} |
76 |
else if (global.is_console || obj_gamecontroller.gamepad_active) |
77 |
{ |
78 |
draw_sprite_ext(scr_getbuttonspritescr_getbuttonspritefunction scr_getbuttonsprite(arg0, arg1)
{
var control = arg0;
var isString = arg1;
var button = noone;
var is_dualshock = os_type == os_ps4 || obj_gamecontroller.gamepad_type == 1;
var button_sprite = button_questionmark;
var invert = is_dualshock && (global.typer == 50 || global.typer == 70 || global.typer == 71);
if (isString)
{
if (control == "A")
{
button_sprite = button_xbox_left;
if (os_type == os_switch)
button_sprite = button_switch_left_0;
else if (is_dualshock)
button_sprite = invert ? button_ps4_dpad_left_dark : button_ps4_dpad_left;
return button_sprite;
}
if (control == "D")
{
button_sprite = button_xbox_right;
if (os_type == os_switch)
button_sprite = button_switch_right_0;
else if (is_dualshock)
button_sprite = invert ? button_ps4_dpad_right_dark : button_ps4_dpad_right;
return button_sprite;
}
if (control == "W")
{
button_sprite = button_xbox_up;
if (os_type == os_switch)
button_sprite = button_switch_up_0;
else if (is_dualshock)
button_sprite = invert ? button_ps4_dpad_up_dark : button_ps4_dpad_up;
return button_sprite;
}
if (control == "S")
{
button_sprite = button_xbox_down;
if (os_type == os_switch)
button_sprite = button_switch_down_0;
else if (is_dualshock)
button_sprite = invert ? button_ps4_dpad_down_dark : button_ps4_dpad_down;
return button_sprite;
}
if (control == "Z")
button = global.button0;
if (control == "X")
button = global.button1;
if (control == "C")
button = global.button2;
}
else
{
button = control;
if (control == gp_padl)
{
button_sprite = button_xbox_left;
if (os_type == os_switch)
button_sprite = button_switch_left_0;
else if (is_dualshock)
button_sprite = invert ? button_ps4_dpad_left_dark : button_ps4_dpad_left;
return button_sprite;
}
if (control == gp_padr)
{
button_sprite = button_xbox_right;
if (os_type == os_switch)
button_sprite = button_switch_right_0;
else if (is_dualshock)
button_sprite = invert ? button_ps4_dpad_right_dark : button_ps4_dpad_right;
return button_sprite;
}
if (control == gp_padu)
{
button_sprite = button_xbox_up;
if (os_type == os_switch)
button_sprite = button_switch_up_0;
else if (is_dualshock)
button_sprite = invert ? button_ps4_dpad_up_dark : button_ps4_dpad_up;
return button_sprite;
}
if (control == gp_padd)
{
button_sprite = button_xbox_down;
if (os_type == os_switch)
button_sprite = button_switch_down_0;
else if (is_dualshock)
button_sprite = invert ? button_ps4_dpad_down_dark : button_ps4_dpad_down;
return button_sprite;
}
}
if (button == gp_face1)
{
button_sprite = button_xbox_a;
if (is_dualshock)
button_sprite = button_ps4_cross_0;
if (os_type == os_switch)
button_sprite = button_switch_b_0;
return button_sprite;
... (global.input_g[4], false), 0, xx + 380, yy + 323, 2, 2, 0, c_white, 1); |
79 |
draw_sprite_ext(scr_getbuttonspritescr_getbuttonspritefunction scr_getbuttonsprite(arg0, arg1)
{
var control = arg0;
var isString = arg1;
var button = noone;
var is_dualshock = os_type == os_ps4 || obj_gamecontroller.gamepad_type == 1;
var button_sprite = button_questionmark;
var invert = is_dualshock && (global.typer == 50 || global.typer == 70 || global.typer == 71);
if (isString)
{
if (control == "A")
{
button_sprite = button_xbox_left;
if (os_type == os_switch)
button_sprite = button_switch_left_0;
else if (is_dualshock)
button_sprite = invert ? button_ps4_dpad_left_dark : button_ps4_dpad_left;
return button_sprite;
}
if (control == "D")
{
button_sprite = button_xbox_right;
if (os_type == os_switch)
button_sprite = button_switch_right_0;
else if (is_dualshock)
button_sprite = invert ? button_ps4_dpad_right_dark : button_ps4_dpad_right;
return button_sprite;
}
if (control == "W")
{
button_sprite = button_xbox_up;
if (os_type == os_switch)
button_sprite = button_switch_up_0;
else if (is_dualshock)
button_sprite = invert ? button_ps4_dpad_up_dark : button_ps4_dpad_up;
return button_sprite;
}
if (control == "S")
{
button_sprite = button_xbox_down;
if (os_type == os_switch)
button_sprite = button_switch_down_0;
else if (is_dualshock)
button_sprite = invert ? button_ps4_dpad_down_dark : button_ps4_dpad_down;
return button_sprite;
}
if (control == "Z")
button = global.button0;
if (control == "X")
button = global.button1;
if (control == "C")
button = global.button2;
}
else
{
button = control;
if (control == gp_padl)
{
button_sprite = button_xbox_left;
if (os_type == os_switch)
button_sprite = button_switch_left_0;
else if (is_dualshock)
button_sprite = invert ? button_ps4_dpad_left_dark : button_ps4_dpad_left;
return button_sprite;
}
if (control == gp_padr)
{
button_sprite = button_xbox_right;
if (os_type == os_switch)
button_sprite = button_switch_right_0;
else if (is_dualshock)
button_sprite = invert ? button_ps4_dpad_right_dark : button_ps4_dpad_right;
return button_sprite;
}
if (control == gp_padu)
{
button_sprite = button_xbox_up;
if (os_type == os_switch)
button_sprite = button_switch_up_0;
else if (is_dualshock)
button_sprite = invert ? button_ps4_dpad_up_dark : button_ps4_dpad_up;
return button_sprite;
}
if (control == gp_padd)
{
button_sprite = button_xbox_down;
if (os_type == os_switch)
button_sprite = button_switch_down_0;
else if (is_dualshock)
button_sprite = invert ? button_ps4_dpad_down_dark : button_ps4_dpad_down;
return button_sprite;
}
}
if (button == gp_face1)
{
button_sprite = button_xbox_a;
if (is_dualshock)
button_sprite = button_ps4_cross_0;
if (os_type == os_switch)
button_sprite = button_switch_b_0;
return button_sprite;
... (global.input_g[5], false), 0, xx + 380, yy + 353, 2, 2, 0, c_white, 1); |
80 |
draw_text(xx + 414, yy + 320, string_hash_to_newline(stringsetloc(More Info"More Info", "obj_fusionmenu_slash_Draw_0_gml_83_0" ))); |
81 |
draw_text(xx + 414, yy + 350, string_hash_to_newline(stringsetloc(Quit"Quit", "obj_fusionmenu_slash_Draw_0_gml_84_0_b" ))); |
82 |
} |
83 |
else |
84 |
{ |
85 |
draw_text(xx + 380, yy + 320, string_hash_to_newline(stringsetsubloc("~1: More Info#~2: Quit", scr_get_input_namescr_get_input_namefunction scr_get_input_name(arg0)
{
var _control = "[?]";
if (global.is_console || obj_gamecontroller.gamepad_active)
{
_control = global.input_g[arg0];
if (_control == gp_padr)
return "\\*D ";
if (_control == gp_padl)
return "\\*A ";
if (_control == gp_padu)
return "\\*W ";
if (_control == gp_padd)
return "\\*S ";
if (_control == global.button0)
return "\\*Z ";
if (_control == global.button1)
return "\\*X ";
if (_control == global.button2)
return "\\*C ";
}
var left_bracket = (global.lang == "en") ? "[" : "[";
var right_bracket = (global.lang == "en") ? "]" : "]";
_control = left_bracket + global.asc_def[global.input_k[arg0]] + right_bracket;
if (!is_string(_control))
_control = "[?]";
else
return _control;
} (4), scr_get_input_namescr_get_input_namefunction scr_get_input_name(arg0)
{
var _control = "[?]";
if (global.is_console || obj_gamecontroller.gamepad_active)
{
_control = global.input_g[arg0];
if (_control == gp_padr)
return "\\*D ";
if (_control == gp_padl)
return "\\*A ";
if (_control == gp_padu)
return "\\*W ";
if (_control == gp_padd)
return "\\*S ";
if (_control == global.button0)
return "\\*Z ";
if (_control == global.button1)
return "\\*X ";
if (_control == global.button2)
return "\\*C ";
}
var left_bracket = (global.lang == "en") ? "[" : "[";
var right_bracket = (global.lang == "en") ? "]" : "]";
_control = left_bracket + global.asc_def[global.input_k[arg0]] + right_bracket;
if (!is_string(_control))
_control = "[?]";
else
return _control;
} (5), "obj_fusionmenu_slash_Draw_0_gml_51_0"))); |
86 |
} |
87 |
if (alternateMenu) |
88 |
{ |
89 |
draw_set_halign(fa_center); |
90 |
draw_set_color(c_lime); |
91 |
draw_text_transformed(xx + 298, yy + 30, stringsetloc(PROGRESS"PROGRESS", "obj_fusionmenu_slash_Draw_0_gml_56_0" ), squished, 1, 0); |
92 |
draw_set_halign(fa_left); |
93 |
} |
94 |
} |
95 |
if (menu == 1) |
96 |
{ |
97 |
reccolor = c_black; |
98 |
if (recruitChapter[menuCoord[1]] == 1) |
99 |
reccolor = c_purple; |
100 |
if (recruitChapter[menuCoord[1]] == 2) |
101 |
reccolor = c_aqua; |
102 |
draw_rectangle_color(xx + 80, yy + 70, xx + 80 + 205, yy + 70 + 150, c_black, c_black, reccolor, reccolor, false); |
103 |
draw_set_color(c_white); |
104 |
draw_rectangle(xx + 80, yy + 70, xx + 80 + 205, yy + 70 + 150, true); |
105 |
recruitspriteheight = sprite_get_height(recruitSprite[menuCoord[1]]); |
106 |
recruitspritewidth = sprite_get_width(recruitSprite[menuCoord[1]]); |
107 |
rx = ((sprite_get_xoffset(recruitSprite[menuCoord[1]]) * 2) - recruitspritewidth) + (recruitSpriteX[menuCoord[1]] * 2); |
108 |
ry = ((sprite_get_yoffset(recruitSprite[menuCoord[1]]) * 2) - (recruitspriteheight * 2)) + (recruitSpriteY[menuCoord[1]] * 2); |
109 |
animer += 0.25; |
110 |
draw_sprite_ext(recruitSprite[menuCoord[1]], animer, xx + 180 + rx, yy + 215 + ry, 2, 2, 0, c_white, 1); |
111 |
if (recruitSprite[menuCoord[1]] == spr_werewire_idle) |
112 |
{ |
113 |
draw_sprite_ext(spr_werewire_wire_curve, 0, (xx + 180 + rx) - 20, (yy + 215 + ry) - 12, 2, 2, 0, c_white, 1); |
114 |
draw_sprite_ext(spr_werewire_wire_vertical, 0, (xx + 180 + rx) - 20, (yy + 215 + ry) - 12 - 31, 2, 8, 0, c_white, 1); |
115 |
} |
116 |
draw_set_color(c_white); |
117 |
draw_text(xx + 300, yy + 70, recruitName[menuCoord[1]]); |
118 |
draw_set_halign(fa_right); |
119 |
draw_text_transformed(xx + 590, yy + 30, string(menuCoord[menu] + 1) + "/" + string(menuMaximumID[menu] + 1), squished, 1, 0); |
120 |
draw_set_halign(fa_left); |
121 |
draw_text_transformed(xx + 300, yy + 30, stringsetloc(CHAPTER "CHAPTER ", "obj_fusionmenu_slash_Draw_0_gml_84_0" ) + string(recruitChapter[menuCoord[1]]), squished, 1, 0); |
122 |
var ymod = 120; |
123 |
if (jp) |
124 |
ymod = 104; |
125 |
var memfont = draw_get_font(); |
126 |
if (!jp) |
127 |
{ |
128 |
draw_set_font(fnt_dotumche); |
129 |
draw_text_ext_transformed(xx + 300, yy + ymod, string_hash_to_newline(recruitDesc[menuCoord[1]]), 20, 280, 1, 1, 0); |
130 |
} |
131 |
else |
132 |
{ |
133 |
draw_set_font(fnt_ja_kakugo); |
134 |
draw_text_ext_transformed(xx + 300, yy + 120, string_hash_to_newline(recruitDesc[menuCoord[1]]), 25, 280, 1, 1, 0); |
135 |
} |
136 |
draw_set_font(memfont); |
137 |
stringl[0] = stringsetloc(LIKE"LIKE", "obj_fusionmenu_slash_Draw_0_gml_87_0" ); |
138 |
stringl[1] = stringsetloc(DISLIKE"DISLIKE", "obj_fusionmenu_slash_Draw_0_gml_88_0" ); |
139 |
stringl[2] = stringsetloc(?????"?????", "obj_fusionmenu_slash_Draw_0_gml_89_0" ); |
140 |
stringl[3] = stringsetloc(?????"?????", "obj_fusionmenu_slash_Draw_0_gml_90_0" ); |
141 |
stringm[0] = recruitLike[menuCoord[1]]; |
142 |
stringm[1] = recruitDislike[menuCoord[1]]; |
143 |
stringm[2] = stringsetloc(?????????"?????????", "obj_fusionmenu_slash_Draw_0_gml_93_0" ); |
144 |
stringm[3] = stringsetloc(?????????"?????????", "obj_fusionmenu_slash_Draw_0_gml_94_0" ); |
145 |
stringn[0] = stringsetloc(LEVEL"LEVEL", "obj_fusionmenu_slash_Draw_0_gml_95_0" ); |
146 |
stringn[1] = stringsetloc(ATTACK"ATTACK", "obj_fusionmenu_slash_Draw_0_gml_96_0" ); |
147 |
stringn[2] = stringsetloc(DEFENSE"DEFENSE", "obj_fusionmenu_slash_Draw_0_gml_97_0" ); |
148 |
stringn[3] = stringsetloc(ELEMENT "ELEMENT ", "obj_fusionmenu_slash_Draw_0_gml_98_0" ); |
149 |
stringo[0] = string(recruitLevel[menuCoord[1]]); |
150 |
stringo[1] = string(recruitAttack[menuCoord[1]]); |
151 |
stringo[2] = string(recruitDefense[menuCoord[1]]); |
152 |
stringo[3] = recruitElement[menuCoord[1]]; |
153 |
stringel = stringn[3] + stringo[3]; |
154 |
for (i = 0; i < 4; i++) |
155 |
{ |
156 |
stringlscale = 1; |
157 |
stringmscale = 1; |
158 |
if (!jp) |
159 |
{ |
160 |
if (string_width(string_hash_to_newline(stringl[i])) >= 60) |
161 |
stringlscale = 80 / string_width(string_hash_to_newline(stringl[i])); |
162 |
} |
163 |
if (string_width(string_hash_to_newline(stringm[i])) >= 290) |
164 |
stringmscale = 290 / string_width(string_hash_to_newline(stringm[i])); |
165 |
draw_set_halign(fa_left); |
166 |
draw_text_transformed(xx + 80, yy + 240 + (i * 40), string_hash_to_newline(stringl[i]), stringlscale, 1, 0); |
167 |
draw_text_transformed(xx + 80 + 100, yy + 240 + (i * 40), string_hash_to_newline(stringm[i]), stringmscale, 1, 0); |
168 |
draw_set_halign(fa_right); |
169 |
if (i != 3) |
170 |
{ |
171 |
draw_text_transformed(xx + 560, yy + 240 + (i * 40), string_hash_to_newline(stringn[i]), squished, 1, 0); |
172 |
draw_text_transformed(xx + 590, yy + 240 + (i * 40), string_hash_to_newline(stringo[i]), squished, 1, 0); |
173 |
} |
174 |
else |
175 |
{ |
176 |
draw_text_transformed(xx + 590, yy + 240 + (i * 40), string_hash_to_newline(stringel), squished, 1, 0); |
177 |
} |
178 |
draw_set_halign(fa_left); |
179 |
} |
180 |
if (alternateMenu == 0) |
181 |
{ |
182 |
if (recruitPlaceable[menuCoord[1]]) |
183 |
{ |
184 |
if (global.is_console || obj_gamecontroller.gamepad_active) |
185 |
{ |
186 |
draw_sprite_ext(scr_getbuttonspritescr_getbuttonspritefunction scr_getbuttonsprite(arg0, arg1)
{
var control = arg0;
var isString = arg1;
var button = noone;
var is_dualshock = os_type == os_ps4 || obj_gamecontroller.gamepad_type == 1;
var button_sprite = button_questionmark;
var invert = is_dualshock && (global.typer == 50 || global.typer == 70 || global.typer == 71);
if (isString)
{
if (control == "A")
{
button_sprite = button_xbox_left;
if (os_type == os_switch)
button_sprite = button_switch_left_0;
else if (is_dualshock)
button_sprite = invert ? button_ps4_dpad_left_dark : button_ps4_dpad_left;
return button_sprite;
}
if (control == "D")
{
button_sprite = button_xbox_right;
if (os_type == os_switch)
button_sprite = button_switch_right_0;
else if (is_dualshock)
button_sprite = invert ? button_ps4_dpad_right_dark : button_ps4_dpad_right;
return button_sprite;
}
if (control == "W")
{
button_sprite = button_xbox_up;
if (os_type == os_switch)
button_sprite = button_switch_up_0;
else if (is_dualshock)
button_sprite = invert ? button_ps4_dpad_up_dark : button_ps4_dpad_up;
return button_sprite;
}
if (control == "S")
{
button_sprite = button_xbox_down;
if (os_type == os_switch)
button_sprite = button_switch_down_0;
else if (is_dualshock)
button_sprite = invert ? button_ps4_dpad_down_dark : button_ps4_dpad_down;
return button_sprite;
}
if (control == "Z")
button = global.button0;
if (control == "X")
button = global.button1;
if (control == "C")
button = global.button2;
}
else
{
button = control;
if (control == gp_padl)
{
button_sprite = button_xbox_left;
if (os_type == os_switch)
button_sprite = button_switch_left_0;
else if (is_dualshock)
button_sprite = invert ? button_ps4_dpad_left_dark : button_ps4_dpad_left;
return button_sprite;
}
if (control == gp_padr)
{
button_sprite = button_xbox_right;
if (os_type == os_switch)
button_sprite = button_switch_right_0;
else if (is_dualshock)
button_sprite = invert ? button_ps4_dpad_right_dark : button_ps4_dpad_right;
return button_sprite;
}
if (control == gp_padu)
{
button_sprite = button_xbox_up;
if (os_type == os_switch)
button_sprite = button_switch_up_0;
else if (is_dualshock)
button_sprite = invert ? button_ps4_dpad_up_dark : button_ps4_dpad_up;
return button_sprite;
}
if (control == gp_padd)
{
button_sprite = button_xbox_down;
if (os_type == os_switch)
button_sprite = button_switch_down_0;
else if (is_dualshock)
button_sprite = invert ? button_ps4_dpad_down_dark : button_ps4_dpad_down;
return button_sprite;
}
}
if (button == gp_face1)
{
button_sprite = button_xbox_a;
if (is_dualshock)
button_sprite = button_ps4_cross_0;
if (os_type == os_switch)
button_sprite = button_switch_b_0;
return button_sprite;
... (global.input_g[4], false), 0, xx + 80, yy + 402, 2, 2, 0, c_white, 1); |
187 |
draw_text(xx + 114, yy + 400, stringsetloc(Place"Place", "obj_fusionmenu_slash_Draw_0_gml_169_0" )); |
188 |
} |
189 |
else |
190 |
{ |
191 |
draw_text(xx + 80, yy + 400, stringsetsubloc("~1: Place", scr_get_input_namescr_get_input_namefunction scr_get_input_name(arg0)
{
var _control = "[?]";
if (global.is_console || obj_gamecontroller.gamepad_active)
{
_control = global.input_g[arg0];
if (_control == gp_padr)
return "\\*D ";
if (_control == gp_padl)
return "\\*A ";
if (_control == gp_padu)
return "\\*W ";
if (_control == gp_padd)
return "\\*S ";
if (_control == global.button0)
return "\\*Z ";
if (_control == global.button1)
return "\\*X ";
if (_control == global.button2)
return "\\*C ";
}
var left_bracket = (global.lang == "en") ? "[" : "[";
var right_bracket = (global.lang == "en") ? "]" : "]";
_control = left_bracket + global.asc_def[global.input_k[arg0]] + right_bracket;
if (!is_string(_control))
_control = "[?]";
else
return _control;
} (4), "obj_fusionmenu_slash_Draw_0_gml_125_0")); |
192 |
} |
193 |
} |
194 |
else |
195 |
{ |
196 |
draw_set_color(c_gray); |
197 |
draw_text(xx + 80, yy + 400, stringsetloc(Cannot Place"Cannot Place", "obj_fusionmenu_slash_Draw_0_gml_129_0" )); |
198 |
} |
199 |
draw_set_color(c_white); |
200 |
if (global.is_console || obj_gamecontroller.gamepad_active) |
201 |
{ |
202 |
draw_sprite_ext(scr_getbuttonspritescr_getbuttonspritefunction scr_getbuttonsprite(arg0, arg1)
{
var control = arg0;
var isString = arg1;
var button = noone;
var is_dualshock = os_type == os_ps4 || obj_gamecontroller.gamepad_type == 1;
var button_sprite = button_questionmark;
var invert = is_dualshock && (global.typer == 50 || global.typer == 70 || global.typer == 71);
if (isString)
{
if (control == "A")
{
button_sprite = button_xbox_left;
if (os_type == os_switch)
button_sprite = button_switch_left_0;
else if (is_dualshock)
button_sprite = invert ? button_ps4_dpad_left_dark : button_ps4_dpad_left;
return button_sprite;
}
if (control == "D")
{
button_sprite = button_xbox_right;
if (os_type == os_switch)
button_sprite = button_switch_right_0;
else if (is_dualshock)
button_sprite = invert ? button_ps4_dpad_right_dark : button_ps4_dpad_right;
return button_sprite;
}
if (control == "W")
{
button_sprite = button_xbox_up;
if (os_type == os_switch)
button_sprite = button_switch_up_0;
else if (is_dualshock)
button_sprite = invert ? button_ps4_dpad_up_dark : button_ps4_dpad_up;
return button_sprite;
}
if (control == "S")
{
button_sprite = button_xbox_down;
if (os_type == os_switch)
button_sprite = button_switch_down_0;
else if (is_dualshock)
button_sprite = invert ? button_ps4_dpad_down_dark : button_ps4_dpad_down;
return button_sprite;
}
if (control == "Z")
button = global.button0;
if (control == "X")
button = global.button1;
if (control == "C")
button = global.button2;
}
else
{
button = control;
if (control == gp_padl)
{
button_sprite = button_xbox_left;
if (os_type == os_switch)
button_sprite = button_switch_left_0;
else if (is_dualshock)
button_sprite = invert ? button_ps4_dpad_left_dark : button_ps4_dpad_left;
return button_sprite;
}
if (control == gp_padr)
{
button_sprite = button_xbox_right;
if (os_type == os_switch)
button_sprite = button_switch_right_0;
else if (is_dualshock)
button_sprite = invert ? button_ps4_dpad_right_dark : button_ps4_dpad_right;
return button_sprite;
}
if (control == gp_padu)
{
button_sprite = button_xbox_up;
if (os_type == os_switch)
button_sprite = button_switch_up_0;
else if (is_dualshock)
button_sprite = invert ? button_ps4_dpad_up_dark : button_ps4_dpad_up;
return button_sprite;
}
if (control == gp_padd)
{
button_sprite = button_xbox_down;
if (os_type == os_switch)
button_sprite = button_switch_down_0;
else if (is_dualshock)
button_sprite = invert ? button_ps4_dpad_down_dark : button_ps4_dpad_down;
return button_sprite;
}
}
if (button == gp_face1)
{
button_sprite = button_xbox_a;
if (is_dualshock)
button_sprite = button_ps4_cross_0;
if (os_type == os_switch)
button_sprite = button_switch_b_0;
return button_sprite;
... (global.input_g[5], false), 0, xx + 320, yy + 402, 2, 2, 0, c_white, 1); |
203 |
draw_text(xx + 354, yy + 400, stringsetloc(Return"Return", "obj_fusionmenu_slash_Draw_0_gml_186_0" )); |
204 |
} |
205 |
else |
206 |
{ |
207 |
draw_text(xx + 320, yy + 400, stringsetsubloc("~1: Return", scr_get_input_namescr_get_input_namefunction scr_get_input_name(arg0)
{
var _control = "[?]";
if (global.is_console || obj_gamecontroller.gamepad_active)
{
_control = global.input_g[arg0];
if (_control == gp_padr)
return "\\*D ";
if (_control == gp_padl)
return "\\*A ";
if (_control == gp_padu)
return "\\*W ";
if (_control == gp_padd)
return "\\*S ";
if (_control == global.button0)
return "\\*Z ";
if (_control == global.button1)
return "\\*X ";
if (_control == global.button2)
return "\\*C ";
}
var left_bracket = (global.lang == "en") ? "[" : "[";
var right_bracket = (global.lang == "en") ? "]" : "]";
_control = left_bracket + global.asc_def[global.input_k[arg0]] + right_bracket;
if (!is_string(_control))
_control = "[?]";
else
return _control;
} (5), "obj_fusionmenu_slash_Draw_0_gml_132_0")); |
208 |
} |
209 |
} |
210 |
else if (global.is_console || obj_gamecontroller.gamepad_active) |
211 |
{ |
212 |
var button_x = (global.lang == "en") ? (xx + 165) : (xx + 84); |
213 |
draw_sprite_ext(scr_getbuttonspritescr_getbuttonspritefunction scr_getbuttonsprite(arg0, arg1)
{
var control = arg0;
var isString = arg1;
var button = noone;
var is_dualshock = os_type == os_ps4 || obj_gamecontroller.gamepad_type == 1;
var button_sprite = button_questionmark;
var invert = is_dualshock && (global.typer == 50 || global.typer == 70 || global.typer == 71);
if (isString)
{
if (control == "A")
{
button_sprite = button_xbox_left;
if (os_type == os_switch)
button_sprite = button_switch_left_0;
else if (is_dualshock)
button_sprite = invert ? button_ps4_dpad_left_dark : button_ps4_dpad_left;
return button_sprite;
}
if (control == "D")
{
button_sprite = button_xbox_right;
if (os_type == os_switch)
button_sprite = button_switch_right_0;
else if (is_dualshock)
button_sprite = invert ? button_ps4_dpad_right_dark : button_ps4_dpad_right;
return button_sprite;
}
if (control == "W")
{
button_sprite = button_xbox_up;
if (os_type == os_switch)
button_sprite = button_switch_up_0;
else if (is_dualshock)
button_sprite = invert ? button_ps4_dpad_up_dark : button_ps4_dpad_up;
return button_sprite;
}
if (control == "S")
{
button_sprite = button_xbox_down;
if (os_type == os_switch)
button_sprite = button_switch_down_0;
else if (is_dualshock)
button_sprite = invert ? button_ps4_dpad_down_dark : button_ps4_dpad_down;
return button_sprite;
}
if (control == "Z")
button = global.button0;
if (control == "X")
button = global.button1;
if (control == "C")
button = global.button2;
}
else
{
button = control;
if (control == gp_padl)
{
button_sprite = button_xbox_left;
if (os_type == os_switch)
button_sprite = button_switch_left_0;
else if (is_dualshock)
button_sprite = invert ? button_ps4_dpad_left_dark : button_ps4_dpad_left;
return button_sprite;
}
if (control == gp_padr)
{
button_sprite = button_xbox_right;
if (os_type == os_switch)
button_sprite = button_switch_right_0;
else if (is_dualshock)
button_sprite = invert ? button_ps4_dpad_right_dark : button_ps4_dpad_right;
return button_sprite;
}
if (control == gp_padu)
{
button_sprite = button_xbox_up;
if (os_type == os_switch)
button_sprite = button_switch_up_0;
else if (is_dualshock)
button_sprite = invert ? button_ps4_dpad_up_dark : button_ps4_dpad_up;
return button_sprite;
}
if (control == gp_padd)
{
button_sprite = button_xbox_down;
if (os_type == os_switch)
button_sprite = button_switch_down_0;
else if (is_dualshock)
button_sprite = invert ? button_ps4_dpad_down_dark : button_ps4_dpad_down;
return button_sprite;
}
}
if (button == gp_face1)
{
button_sprite = button_xbox_a;
if (is_dualshock)
button_sprite = button_ps4_cross_0;
if (os_type == os_switch)
button_sprite = button_switch_b_0;
return button_sprite;
... (global.input_g[5], false), 0, button_x, yy + 402, 2, 2, 0, c_white, 1); |
214 |
var x_offset = (global.lang == "en") ? 0 : 38; |
215 |
draw_text(xx + 80 + x_offset, yy + 400, string_hash_to_newline(stringsetloc(Press to Return"Press to Return", "obj_fusionmenu_slash_Draw_0_gml_199_0" ))); |
216 |
} |
217 |
else |
218 |
{ |
219 |
draw_text(xx + 80, yy + 400, stringsetsubloc("Press ~1 to Return", scr_get_input_namescr_get_input_namefunction scr_get_input_name(arg0)
{
var _control = "[?]";
if (global.is_console || obj_gamecontroller.gamepad_active)
{
_control = global.input_g[arg0];
if (_control == gp_padr)
return "\\*D ";
if (_control == gp_padl)
return "\\*A ";
if (_control == gp_padu)
return "\\*W ";
if (_control == gp_padd)
return "\\*S ";
if (_control == global.button0)
return "\\*Z ";
if (_control == global.button1)
return "\\*X ";
if (_control == global.button2)
return "\\*C ";
}
var left_bracket = (global.lang == "en") ? "[" : "[";
var right_bracket = (global.lang == "en") ? "]" : "]";
_control = left_bracket + global.asc_def[global.input_k[arg0]] + right_bracket;
if (!is_string(_control))
_control = "[?]";
else
return _control;
} (5), "obj_fusionmenu_slash_Draw_0_gml_136_0")); |
220 |
} |
221 |
} |
222 |
} |
223 |
if (type == 4 && init == 1) |
224 |
{ |
225 |
scr_84_set_draw_font("mainbig"); |
226 |
if (menu == 0) |
227 |
draw_set_color(c_ltgray); |
228 |
else |
229 |
draw_set_color(c_dkgray); |
230 |
if (jp) |
231 |
{ |
232 |
var memfont = draw_get_font(); |
233 |
draw_set_font(fnt_ja_kakugo); |
234 |
draw_text_transformed(xx + 60, yy + 140, stringsetloc(HELD"HELD", "obj_fusionmenu_slash_Draw_0_gml_154_0" ), 1, 1, 0); |
235 |
draw_set_font(memfont); |
236 |
} |
237 |
else |
238 |
{ |
239 |
draw_set_font(scr_84_get_fontscr_84_get_fontfunction 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);
} ("dotumche")); |
240 |
draw_text_transformed(xx + 60, yy + 140, stringset("POCKET"), 1, 1, 0); |
241 |
} |
242 |
if (menu == 1) |
243 |
draw_set_color(c_ltgray); |
244 |
if (menu < 1) |
245 |
draw_set_color(c_dkgray); |
246 |
if (jp) |
247 |
{ |
248 |
var memfont = draw_get_font(); |
249 |
draw_set_font(fnt_ja_kakugo); |
250 |
draw_text_transformed(xx + 60, yy + 290, stringsetloc(RESERVE"RESERVE", "obj_fusionmenu_slash_Draw_0_gml_159_0" ), 1, 1, 0); |
251 |
draw_set_font(memfont); |
252 |
} |
253 |
else |
254 |
{ |
255 |
draw_text_transformed(xx + 60, yy + 290, "STORAGE", 1, 1, 0); |
256 |
} |
257 |
if (jp) |
258 |
{ |
259 |
var memfont = draw_get_font(); |
260 |
draw_set_font(fnt_ja_kakugo); |
261 |
draw_text_transformed(xx + 60, yy + 360 + 14, stringsetloc(Page "Page ", "obj_fusionmenu_slash_Draw_0_gml_161_0" ), 1, 1, 0); |
262 |
draw_text_transformed(xx + 60, yy + 380 + 14, string((floor(menuScrollCurrent[1]) / 12) + 1) + "/" + string(floor(global.flag[64 storage_size] / 12)), 1, 1, 0); |
263 |
draw_set_font(memfont); |
264 |
} |
265 |
else |
266 |
{ |
267 |
draw_text_transformed(xx + 60, yy + 360, stringsetloc(Page "Page ", "obj_fusionmenu_slash_Draw_0_gml_161_0" ), 1, 1, 0); |
268 |
draw_text_transformed(xx + 60, yy + 380, string((floor(menuScrollCurrent[1]) / 12) + 1) + "/" + string(floor(global.flag[64 storage_size] / 12)), 1, 1, 0); |
269 |
} |
270 |
} |
271 |
if (type == 5 && init == 1) |
272 |
{ |
273 |
draw_set_font(fnt_mainbig); |
274 |
draw_set_color(c_ltgray); |
275 |
draw_text_transformed(480, 280, stringsetloc(Page "Page ", "obj_fusionmenu_slash_Draw_0_gml_171_0" ) + string((floor(menuScrollCurrent[0]) / 6) + 1) + " / " + string(ceil(menuMaximumID[0] / 6)), 1, 1, 0); |
276 |
tickerTimer++; |
277 |
scr_84_set_draw_font("dotumche"); |
278 |
draw_text_transformed(440, 375, stringsetloc(Left Wait for input Right: \nChange Pages."Left / Right: \nChange Pages.", "obj_fusionmenu_slash_Draw_0_gml_181_0" ), 1, 1, 0); |
279 |
if (subtype == 1) |
280 |
draw_text_transformed(440, 410, stringsetloc(The song you play\nwill be the town\nBGM."The song you play\nwill be the town\nBGM.", "obj_fusionmenu_slash_Draw_0_gml_182_0" ), 1, 1, 0); |
281 |
else |
282 |
draw_text_transformed(440, 410, stringsetloc(Play songs\nfreely."Play songs\nfreely.", "obj_fusionmenu_slash_Draw_0_gml_183_0" ), 1, 1, 0); |
283 |
var tempSongName = chosenSongName + " "; |
284 |
var songNameLength = string_length(tempSongName); |
285 |
var tickerSongName; |
286 |
if (songNameLength >= 24) |
287 |
{ |
288 |
var tickerCount = max(0, floor((tickerTimer - 60) / 3)) % songNameLength; |
289 |
var tickerSongNamePrep = tempSongName + chosenSongName; |
290 |
tickerSongName = string_copy(tickerSongNamePrep, 1 + tickerCount, 20); |
291 |
} |
292 |
else |
293 |
{ |
294 |
tickerSongName = tempSongName; |
295 |
} |
296 |
draw_set_color(c_lime); |
297 |
draw_text_transformed(440, 320, stringsetloc(Now Playing"Now Playing", "obj_fusionmenu_slash_Draw_0_gml_194_0" ), 1, 1, 0); |
298 |
draw_text_transformed(440, 345, tickerSongName, 1, 1, 0); |
299 |
} |