|
1
|
if (view_current == 0)
|
|
2
|
{
|
|
3
|
var cx = camerax();
|
|
4
|
var cy = cameray();
|
|
5
|
actstring = stringsetloc(Action"Action", "obj_b3bs_console_slash_Draw_0_gml_4_0" );
|
|
6
|
quistring = stringsetsubloc("Hold ~1 : Quit", scr_get_input_namescr_get_input_name
function 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_b3bs_console_slash_Draw_0_gml_5_0");
|
|
7
|
quistring2 = stringsetloc(Quit"Quit", "obj_b3bs_console_slash_Draw_0_gml_6_0" );
|
|
8
|
swistring = stringsetloc(Switch Characters"Switch Characters", "obj_b3bs_console_slash_Draw_0_gml_7_0" );
|
|
9
|
holdstring = stringsetloc(Hold"Hold", "obj_b3bs_console_slash_Draw_0_gml_8_0" );
|
|
10
|
if (con == 2)
|
|
11
|
engaged = true;
|
|
12
|
else
|
|
13
|
engaged = false;
|
|
14
|
if (instructionLerp > 0 || engaged)
|
|
15
|
{
|
|
16
|
if (instructionLerp < 1 && engaged)
|
|
17
|
instructionLerp += 0.1;
|
|
18
|
else if (!engaged)
|
|
19
|
instructionLerp -= 0.1;
|
|
20
|
var _easedLerp = scr_ease_outscr_ease_out
function scr_ease_out(arg0, arg1)
{
if (arg1 < -3 || arg1 > 7)
return arg0;
switch (arg1)
{
case -3:
return ease_out_bounce(arg0, 0, 1, 1);
case -2:
return ease_out_elastic(arg0, 0, 1, 1);
case -1:
return ease_out_back(arg0, 0, 1, 1);
case 0:
return arg0;
case 1:
return sin(arg0 * 1.5707963267948966);
case 2:
return -arg0 * (arg0 - 2);
case 6:
return -power(2, -10 * arg0) + 1;
case 7:
arg0--;
return sqrt(1 - (arg0 * arg0));
default:
arg0--;
if (arg1 == 4)
{
return -1 * (power(arg0, arg1) - 1);
break;
}
return power(arg0, arg1) + 1;
}
} (instructionLerp, 3);
|
|
21
|
scr_84_set_draw_fontscr_84_set_draw_font
function scr_84_set_draw_font(arg0)
{
global.chemg_font = arg0;
draw_set_font(scr_84_get_font(arg0));
} ("mainbig");
|
|
22
|
draw_set_color(c_white);
|
|
23
|
draw_set_halign(fa_right);
|
|
24
|
var space = 28;
|
|
25
|
var yloc = 380;
|
|
26
|
if (!canswitch)
|
|
27
|
yloc = 408;
|
|
28
|
var reddening = canceltimer / (canceltime * 1.2);
|
|
29
|
reddening = clamp(reddening, 0, 1);
|
|
30
|
var redcol = merge_color(c_white, c_red, reddening);
|
|
31
|
var controllerText = global.is_console || obj_gamecontroller.gamepad_active;
|
|
32
|
if (controllerText)
|
|
33
|
{
|
|
34
|
var zSpr = scr_getbuttonspritescr_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[4], false);
|
|
35
|
var butoffset = 4;
|
|
36
|
scr_84_draw_text_outlinescr_84_draw_text_outline
function scr_84_draw_text_outline(arg0, arg1, arg2)
{
var xx = arg0;
var yy = arg1;
var str = arg2;
var __txtcolor__ = draw_get_color();
draw_set_colour(c_black);
draw_text(xx - 1, yy - 1, str);
draw_text(xx + 1, yy - 1, str);
draw_text(xx - 1, yy + 1, str);
draw_text(xx + 1, yy + 1, str);
draw_set_colour(__txtcolor__);
draw_text(xx, yy, str);
} ((cx + 720) - (_easedLerp * 100), cy + yloc + (space * 0), " : " + actstring);
|
|
37
|
var butxpos = (cx + 720) - (_easedLerp * 100) - string_width(" : " + actstring) - sprite_get_width(zSpr) - 12;
|
|
38
|
draw_sprite_ext(zSpr, 0, butxpos, cy + yloc + (space * 0) + butoffset, 2, 2, 0, c_white, 1);
|
|
39
|
draw_set_color(redcol);
|
|
40
|
scr_84_draw_text_outlinescr_84_draw_text_outline
function scr_84_draw_text_outline(arg0, arg1, arg2)
{
var xx = arg0;
var yy = arg1;
var str = arg2;
var __txtcolor__ = draw_get_color();
draw_set_colour(c_black);
draw_text(xx - 1, yy - 1, str);
draw_text(xx + 1, yy - 1, str);
draw_text(xx - 1, yy + 1, str);
draw_text(xx + 1, yy + 1, str);
draw_set_colour(__txtcolor__);
draw_text(xx, yy, str);
} ((cx + 720) - (_easedLerp * 100), cy + yloc + (space * 1), " : " + quistring2);
|
|
41
|
var xSpr = scr_getbuttonspritescr_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[5], false);
|
|
42
|
butxpos = (cx + 720) - (_easedLerp * 100) - string_width(" : " + quistring2) - sprite_get_width(xSpr) - 12;
|
|
43
|
if (global.lang == "ja")
|
|
44
|
butxpos = (cx + 720) - (_easedLerp * 100) - 246;
|
|
45
|
draw_sprite_ext(xSpr, 0, butxpos, cy + yloc + (space * 1) + butoffset, 2, 2, 0, redcol, 1);
|
|
46
|
var holdtextpos = butxpos - 4;
|
|
47
|
if (global.lang == "ja")
|
|
48
|
holdtextpos = butxpos + 40 + 83;
|
|
49
|
draw_set_halign(fa_right);
|
|
50
|
scr_84_draw_text_outlinescr_84_draw_text_outline
function scr_84_draw_text_outline(arg0, arg1, arg2)
{
var xx = arg0;
var yy = arg1;
var str = arg2;
var __txtcolor__ = draw_get_color();
draw_set_colour(c_black);
draw_text(xx - 1, yy - 1, str);
draw_text(xx + 1, yy - 1, str);
draw_text(xx - 1, yy + 1, str);
draw_text(xx + 1, yy + 1, str);
draw_set_colour(__txtcolor__);
draw_text(xx, yy, str);
} (holdtextpos, cy + yloc + (space * 1), holdstring);
|
|
51
|
var stringwid = string_width(holdstring);
|
|
52
|
if (global.lang == "ja")
|
|
53
|
stringwid -= 88;
|
|
54
|
draw_sprite_ext(spr_quiz_hud_timer, 28 - ((canceltimer / canceltime) * 29), butxpos - 32 - stringwid - 8, cy + yloc + (space * 1) + 4, 2, 2, 0, redcol, canceltimer / 8);
|
|
55
|
draw_set_color(c_white);
|
|
56
|
if (canswitch)
|
|
57
|
{
|
|
58
|
var cSpr = scr_getbuttonspritescr_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[6], false);
|
|
59
|
butxpos = (cx + 720) - (_easedLerp * 100) - string_width(" : " + swistring) - sprite_get_width(cSpr) - 12;
|
|
60
|
scr_84_draw_text_outlinescr_84_draw_text_outline
function scr_84_draw_text_outline(arg0, arg1, arg2)
{
var xx = arg0;
var yy = arg1;
var str = arg2;
var __txtcolor__ = draw_get_color();
draw_set_colour(c_black);
draw_text(xx - 1, yy - 1, str);
draw_text(xx + 1, yy - 1, str);
draw_text(xx - 1, yy + 1, str);
draw_text(xx + 1, yy + 1, str);
draw_set_colour(__txtcolor__);
draw_text(xx, yy, str);
} ((cx + 720) - (_easedLerp * 100), cy + yloc + (space * 2), " : " + swistring);
|
|
61
|
draw_sprite_ext(cSpr, 0, butxpos, cy + yloc + (space * 2) + butoffset, 2, 2, 0, c_white, 1);
|
|
62
|
}
|
|
63
|
}
|
|
64
|
else
|
|
65
|
{
|
|
66
|
scr_84_draw_text_outlinescr_84_draw_text_outline
function scr_84_draw_text_outline(arg0, arg1, arg2)
{
var xx = arg0;
var yy = arg1;
var str = arg2;
var __txtcolor__ = draw_get_color();
draw_set_colour(c_black);
draw_text(xx - 1, yy - 1, str);
draw_text(xx + 1, yy - 1, str);
draw_text(xx - 1, yy + 1, str);
draw_text(xx + 1, yy + 1, str);
draw_set_colour(__txtcolor__);
draw_text(xx, yy, str);
} ((cx + 720) - (_easedLerp * 100), cy + yloc + (space * 0), scr_get_input_namescr_get_input_name
function 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) + " : " + actstring);
|
|
67
|
draw_set_color(redcol);
|
|
68
|
scr_84_draw_text_outlinescr_84_draw_text_outline
function scr_84_draw_text_outline(arg0, arg1, arg2)
{
var xx = arg0;
var yy = arg1;
var str = arg2;
var __txtcolor__ = draw_get_color();
draw_set_colour(c_black);
draw_text(xx - 1, yy - 1, str);
draw_text(xx + 1, yy - 1, str);
draw_text(xx - 1, yy + 1, str);
draw_text(xx + 1, yy + 1, str);
draw_set_colour(__txtcolor__);
draw_text(xx, yy, str);
} ((cx + 720) - (_easedLerp * 100), cy + yloc + (space * 1), quistring);
|
|
69
|
draw_sprite_ext(spr_quiz_hud_timer, 28 - ((canceltimer / canceltime) * 29), (cx + 720) - (_easedLerp * 100) - round(string_width(quistring)) - 28 - 8, cy + yloc + (space * 1) + 3, 2, 2, 0, redcol, canceltimer / 8);
|
|
70
|
draw_set_color(c_white);
|
|
71
|
if (canswitch)
|
|
72
|
scr_84_draw_text_outlinescr_84_draw_text_outline
function scr_84_draw_text_outline(arg0, arg1, arg2)
{
var xx = arg0;
var yy = arg1;
var str = arg2;
var __txtcolor__ = draw_get_color();
draw_set_colour(c_black);
draw_text(xx - 1, yy - 1, str);
draw_text(xx + 1, yy - 1, str);
draw_text(xx - 1, yy + 1, str);
draw_text(xx + 1, yy + 1, str);
draw_set_colour(__txtcolor__);
draw_text(xx, yy, str);
} ((cx + 720) - (_easedLerp * 100), cy + yloc + (space * 2), scr_get_input_namescr_get_input_name
function 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;
} (6) + " : " + swistring);
|
|
73
|
}
|
|
74
|
draw_set_halign(fa_left);
|
|
75
|
}
|
|
76
|
if (scr_debugscr_debug
function scr_debug()
{
if (global.debug == 1)
return 1;
} ())
|
|
77
|
{
|
|
78
|
}
|
|
79
|
}
|