|
1
|
xx = __view_get(e__VW.XView, 0);
|
|
2
|
yy = __view_get(e__VW.YView, 0);
|
|
3
|
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");
|
|
4
|
draw_set_halign(fa_left);
|
|
5
|
var yoff = 60;
|
|
6
|
var mwidth = 580;
|
|
7
|
var mheight = 344;
|
|
8
|
var mx = 30;
|
|
9
|
if (mic_max > 11)
|
|
10
|
yoff = 30;
|
|
11
|
var my = 12 + yoff;
|
|
12
|
var myy = 40;
|
|
13
|
var volx = (camerax() + mx + mwidth) - 140;
|
|
14
|
var volx2 = camerax() + mx + 80;
|
|
15
|
var voly = cameray() + my + 280;
|
|
16
|
var volw = 419;
|
|
17
|
scr_darkbox_blackscr_darkbox_black
function scr_darkbox_black(arg0, arg1, arg2, arg3)
{
draw_set_color(c_black);
ossafe_fill_rectangle(arg0 + 20, arg1 + 20, arg2 - 20, arg3 - 20, false);
scr_darkbox(arg0, arg1, arg2, arg3);
} (camerax() + mx, cameray() + my, camerax() + mx + mwidth, cameray() + my + mheight);
|
|
18
|
mic_reload -= 1;
|
|
19
|
if (mic_reload < 0)
|
|
20
|
{
|
|
21
|
if (instance_number(obj_mike_controller) > 0)
|
|
22
|
{
|
|
23
|
with (obj_mike_controller)
|
|
24
|
other.microphone_volume += ((microphone_volume - other.microphone_volume) * 0.25);
|
|
25
|
}
|
|
26
|
}
|
|
27
|
if (act != 0)
|
|
28
|
{
|
|
29
|
if (selected < array_length(mic_name) || global.right_click_mic != 0)
|
|
30
|
{
|
|
31
|
var _n;
|
|
32
|
if (global.right_click_mic == 0 && selected < array_length(mic_name))
|
|
33
|
{
|
|
34
|
_n = ds_map_find_value(mic_name[selected], "name");
|
|
35
|
_n = string_replace(_n, "Microphone ", "");
|
|
36
|
_n = string_replace(_n, "(", "");
|
|
37
|
_n = string_replace(_n, ")", "");
|
|
38
|
var shortened = false;
|
|
39
|
while (string_width(_n) > 600)
|
|
40
|
{
|
|
41
|
_n = string_copy(_n, 1, string_length(_n) - 1);
|
|
42
|
shortened = true;
|
|
43
|
}
|
|
44
|
if (shortened)
|
|
45
|
_n = _n + "...";
|
|
46
|
}
|
|
47
|
else if (global.right_click_mic == 1)
|
|
48
|
{
|
|
49
|
_n = get_right_click_mic_string();
|
|
50
|
if (global.lang == "ja")
|
|
51
|
_n = string_copy(_n, 0, 8);
|
|
52
|
else
|
|
53
|
_n = string_copy(_n, 0, 17);
|
|
54
|
}
|
|
55
|
else if (global.right_click_mic == 2)
|
|
56
|
{
|
|
57
|
var inputname = 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);
|
|
58
|
_n = inputname;
|
|
59
|
if (obj_gamecontroller.gamepad_active)
|
|
60
|
{
|
|
61
|
var xoffset = 0;
|
|
62
|
if (global.lang == "ja")
|
|
63
|
{
|
|
64
|
inputname = " ";
|
|
65
|
xoffset = -18;
|
|
66
|
}
|
|
67
|
else
|
|
68
|
{
|
|
69
|
inputname = " ";
|
|
70
|
}
|
|
71
|
_n = "";
|
|
72
|
var _sprite = 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);
|
|
73
|
draw_sprite_ext(_sprite, 0, camerax() + mx + 190 + xoffset, (cameray() + mheight + my) - 46, 1, 1, 0, c_gray, 1);
|
|
74
|
}
|
|
75
|
}
|
|
76
|
draw_set_colour(c_gray);
|
|
77
|
draw_set_font(scr_84_get_fontscr_84_get_font
function scr_84_get_font(arg0)
{
if (!variable_global_exists("chemg_last_get_font"))
global.chemg_last_get_font = "";
if (arg0 != global.chemg_last_get_font)
global.chemg_last_get_font = arg0;
return ds_map_find_value(global.font_map, arg0);
} ("main"));
|
|
78
|
var micstr = stringsetloc(* Current Microphone: "* Current Microphone: ", "obj_micmenu_slash_Draw_0_gml_53_0" );
|
|
79
|
draw_text(camerax() + mx + 48, (cameray() + mheight + my) - 48, micstr);
|
|
80
|
draw_set_font(fnt_ja_main);
|
|
81
|
draw_text((camerax() + mx + 48 + string_width(micstr)) - 16, (cameray() + mheight + my) - 48, string(_n));
|
|
82
|
draw_set_font(scr_84_get_fontscr_84_get_font
function scr_84_get_font(arg0)
{
if (!variable_global_exists("chemg_last_get_font"))
global.chemg_last_get_font = "";
if (arg0 != global.chemg_last_get_font)
global.chemg_last_get_font = arg0;
return ds_map_find_value(global.font_map, arg0);
} ("mainbig"));
|
|
83
|
draw_set_colour(c_white);
|
|
84
|
}
|
|
85
|
draw_set_colour(merge_colour(c_aqua, c_black, 0.5));
|
|
86
|
d_line_width(volx2, voly, volx2 + (volw * 0.1), voly, 4);
|
|
87
|
draw_set_colour(merge_colour(c_lime, c_black, 0.5));
|
|
88
|
d_line_width(volx2 + (volw * 0.1), voly, volx2 + (volw * 0.6), voly, 4);
|
|
89
|
draw_set_colour(merge_colour(c_yellow, c_black, 0.5));
|
|
90
|
d_line_width(volx2 + (volw * 0.6), voly, volx2 + (volw * 0.9), voly, 4);
|
|
91
|
draw_set_colour(merge_colour(c_red, c_black, 0.5));
|
|
92
|
d_line_width(volx2 + (volw * 0.9), voly, volx2 + volw, voly, 4);
|
|
93
|
var vol_colour = 16776960;
|
|
94
|
if (microphone_volume > 10)
|
|
95
|
vol_colour = 65280;
|
|
96
|
if (microphone_volume > 60)
|
|
97
|
vol_colour = 65535;
|
|
98
|
if (microphone_volume > 90)
|
|
99
|
vol_colour = 255;
|
|
100
|
draw_set_colour(vol_colour);
|
|
101
|
d_line_width(volx2, voly, volx2 + ((microphone_volume / 100) * volw), voly, 4);
|
|
102
|
draw_set_colour(c_white);
|
|
103
|
}
|
|
104
|
if (act == -1)
|
|
105
|
{
|
|
106
|
for (i = 0; i <= 2; i++)
|
|
107
|
{
|
|
108
|
if (i == current)
|
|
109
|
draw_sprite(spr_heart_centered, 0, camerax() + mx + 32, cameray() + my + myy + 40 + (i * 30));
|
|
110
|
var str = string(option[i]);
|
|
111
|
draw_text(camerax() + mx + 48, cameray() + my + myy + 24 + (i * 30), str);
|
|
112
|
}
|
|
113
|
}
|
|
114
|
if (act == 0)
|
|
115
|
{
|
|
116
|
draw_set_colour(c_gray);
|
|
117
|
draw_set_halign(fa_right);
|
|
118
|
draw_text(volx + 80, cameray() + my + 20, stringsetloc(Volume"Volume", "obj_micmenu_slash_Draw_0_gml_92_0" ));
|
|
119
|
draw_set_halign(fa_left);
|
|
120
|
draw_text(camerax() + mx + 48, cameray() + my + 20, stringsetloc(Microphone"Microphone", "obj_micmenu_slash_Draw_0_gml_94_0" ));
|
|
121
|
var menu_y = 0;
|
|
122
|
for (i = 0; i < menu_max; i++)
|
|
123
|
{
|
|
124
|
var _str = "";
|
|
125
|
menu_y = max(min(current - 5, menu_max - 8), 0);
|
|
126
|
if (i >= menu_y && i < (menu_y + 8))
|
|
127
|
{
|
|
128
|
if (!global.right_click_mic)
|
|
129
|
{
|
|
130
|
if (selected == i && array_length(mic_name) > 0)
|
|
131
|
{
|
|
132
|
draw_set_colour(#FFFF40);
|
|
133
|
if (global.lang == "ja")
|
|
134
|
_str = " ";
|
|
135
|
else
|
|
136
|
_str = " ";
|
|
137
|
draw_sprite(spr_sparestar, 0, camerax() + mx + 46, (cameray() + my + myy + 32 + (i * 30)) - (menu_y * 30));
|
|
138
|
}
|
|
139
|
else
|
|
140
|
{
|
|
141
|
draw_set_colour(c_white);
|
|
142
|
}
|
|
143
|
}
|
|
144
|
else if (i == (menu_max - 3) && global.right_click_mic == 1)
|
|
145
|
{
|
|
146
|
draw_set_colour(#FFFF40);
|
|
147
|
if (global.lang == "ja")
|
|
148
|
_str = " ";
|
|
149
|
else
|
|
150
|
_str = " ";
|
|
151
|
draw_sprite(spr_sparestar, 0, camerax() + mx + 46, (cameray() + my + myy + 32 + (i * 30)) - (menu_y * 30));
|
|
152
|
}
|
|
153
|
else if (i == (menu_max - 2) && global.right_click_mic == 2)
|
|
154
|
{
|
|
155
|
draw_set_colour(#FFFF40);
|
|
156
|
if (global.lang == "ja")
|
|
157
|
_str = " ";
|
|
158
|
else
|
|
159
|
_str = " ";
|
|
160
|
draw_sprite(spr_sparestar, 0, camerax() + mx + 46, (cameray() + my + myy + 32 + (i * 30)) - (menu_y * 30));
|
|
161
|
}
|
|
162
|
else
|
|
163
|
{
|
|
164
|
draw_set_color(c_white);
|
|
165
|
}
|
|
166
|
if (i == (menu_max - 1))
|
|
167
|
{
|
|
168
|
draw_set_font(scr_84_get_fontscr_84_get_font
function scr_84_get_font(arg0)
{
if (!variable_global_exists("chemg_last_get_font"))
global.chemg_last_get_font = "";
if (arg0 != global.chemg_last_get_font)
global.chemg_last_get_font = arg0;
return ds_map_find_value(global.font_map, arg0);
} ("mainbig"));
|
|
169
|
if (i == current)
|
|
170
|
draw_sprite(spr_heart_centered, 0, camerax() + mx + 32, (cameray() + my + myy + 56 + (i * 30)) - (menu_y * 30));
|
|
171
|
draw_text(camerax() + mx + 48, (cameray() + my + myy + 40 + (i * 30)) - (menu_y * 30), string(_str) + stringsetloc(Done"Done", "obj_micmenu_slash_Draw_0_gml_116_0" ));
|
|
172
|
}
|
|
173
|
else if (i == (menu_max - 3) && is_pc)
|
|
174
|
{
|
|
175
|
draw_set_font(fnt_ja_mainbig);
|
|
176
|
if (i == current)
|
|
177
|
draw_sprite(spr_heart_centered, 0, camerax() + mx + 32, (cameray() + my + myy + 40 + (i * 30)) - (menu_y * 30));
|
|
178
|
draw_text(camerax() + mx + 48, (cameray() + my + myy + 24 + (i * 30)) - (menu_y * 30), string(_str) + get_right_click_mic_string());
|
|
179
|
}
|
|
180
|
else if (i == (menu_max - 2) && is_pc)
|
|
181
|
{
|
|
182
|
draw_set_font(fnt_ja_mainbig);
|
|
183
|
if (i == current)
|
|
184
|
draw_sprite(spr_heart_centered, 0, camerax() + mx + 32, (cameray() + my + myy + 40 + (i * 30)) - (menu_y * 30));
|
|
185
|
var inputname = 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);
|
|
186
|
if (obj_gamecontroller.gamepad_active)
|
|
187
|
{
|
|
188
|
if (global.lang == "ja")
|
|
189
|
inputname = " ";
|
|
190
|
else
|
|
191
|
inputname = " ";
|
|
192
|
var _sprite = 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);
|
|
193
|
var xoffset = 0;
|
|
194
|
if (i == (menu_max - 2) && global.right_click_mic == 2)
|
|
195
|
xoffset = 18;
|
|
196
|
draw_sprite_ext(_sprite, 0, camerax() + mx + 46 + xoffset, (cameray() + my + myy + 27 + (i * 30)) - (menu_y * 30), 2, 2, 0, c_white, 1);
|
|
197
|
}
|
|
198
|
draw_text(camerax() + mx + 48, (cameray() + my + myy + 24 + (i * 30)) - (menu_y * 30), string(_str) + get_x_click_mic_string(inputname));
|
|
199
|
}
|
|
200
|
else
|
|
201
|
{
|
|
202
|
draw_set_font(fnt_ja_mainbig);
|
|
203
|
var _n;
|
|
204
|
if (mic_on[i])
|
|
205
|
{
|
|
206
|
_n = ds_map_find_value(mic_name[i], "name");
|
|
207
|
_n = string_replace(_n, "Microphone ", "");
|
|
208
|
_n = string_replace(_n, "(", "");
|
|
209
|
_n = string_replace(_n, ")", "");
|
|
210
|
var shortened = false;
|
|
211
|
while (string_width(_n) > 300)
|
|
212
|
{
|
|
213
|
_n = string_copy(_n, 1, string_length(_n) - 1);
|
|
214
|
shortened = true;
|
|
215
|
}
|
|
216
|
if (shortened)
|
|
217
|
_n = _n + "...";
|
|
218
|
}
|
|
219
|
else
|
|
220
|
{
|
|
221
|
_n = mic_name2[i];
|
|
222
|
}
|
|
223
|
if (i == current)
|
|
224
|
draw_sprite(spr_heart_centered, 0, camerax() + mx + 32, (cameray() + my + myy + 40 + (i * 30)) - (menu_y * 30));
|
|
225
|
draw_text(camerax() + mx + 48, (cameray() + my + myy + 24 + (i * 30)) - (menu_y * 30), string(_str) + string(_n));
|
|
226
|
}
|
|
227
|
if ((!is_pc && i < (menu_max - 1)) || (is_pc && i < (menu_max - 3)))
|
|
228
|
{
|
|
229
|
if (i == current)
|
|
230
|
{
|
|
231
|
if (mic_reload < 0)
|
|
232
|
{
|
|
233
|
draw_set_colour(merge_colour(c_aqua, c_black, 0.5));
|
|
234
|
d_line_width(volx, (cameray() + my + myy + 40 + (i * 30)) - (menu_y * 30), volx + 8, (cameray() + my + myy + 40 + (i * 30)) - (menu_y * 30), 4);
|
|
235
|
draw_set_colour(merge_colour(c_lime, c_black, 0.5));
|
|
236
|
d_line_width(volx + 8, (cameray() + my + myy + 40 + (i * 30)) - (menu_y * 30), volx + 48, (cameray() + my + myy + 40 + (i * 30)) - (menu_y * 30), 4);
|
|
237
|
draw_set_colour(merge_colour(c_yellow, c_black, 0.5));
|
|
238
|
d_line_width(volx + 48, (cameray() + my + myy + 40 + (i * 30)) - (menu_y * 30), volx + 72, (cameray() + my + myy + 40 + (i * 30)) - (menu_y * 30), 4);
|
|
239
|
draw_set_colour(merge_colour(c_red, c_black, 0.5));
|
|
240
|
d_line_width(volx + 72, (cameray() + my + myy + 40 + (i * 30)) - (menu_y * 30), volx + 80, (cameray() + my + myy + 40 + (i * 30)) - (menu_y * 30), 4);
|
|
241
|
var vol_colour = 16776960;
|
|
242
|
if (microphone_volume > 10)
|
|
243
|
vol_colour = 65280;
|
|
244
|
if (microphone_volume > 60)
|
|
245
|
vol_colour = 65535;
|
|
246
|
if (microphone_volume > 90)
|
|
247
|
vol_colour = 255;
|
|
248
|
draw_set_colour(vol_colour);
|
|
249
|
d_line_width(volx, (cameray() + my + myy + 40 + (i * 30)) - (menu_y * 30), volx + ((microphone_volume / 100) * 80), (cameray() + my + myy + 40 + (i * 30)) - (menu_y * 30), 4);
|
|
250
|
}
|
|
251
|
else
|
|
252
|
{
|
|
253
|
draw_set_colour(c_white);
|
|
254
|
draw_set_font(scr_84_get_fontscr_84_get_font
function scr_84_get_font(arg0)
{
if (!variable_global_exists("chemg_last_get_font"))
global.chemg_last_get_font = "";
if (arg0 != global.chemg_last_get_font)
global.chemg_last_get_font = arg0;
return ds_map_find_value(global.font_map, arg0);
} ("main"));
|
|
255
|
draw_set_halign(fa_center);
|
|
256
|
draw_set_halign(fa_center);
|
|
257
|
draw_text(volx + 40, (cameray() + my + myy + 32 + (i * 30)) - (menu_y * 30), stringsetloc(Loading..."Loading...", "obj_micmenu_slash_Draw_0_gml_165_0" ));
|
|
258
|
draw_set_font(scr_84_get_fontscr_84_get_font
function scr_84_get_font(arg0)
{
if (!variable_global_exists("chemg_last_get_font"))
global.chemg_last_get_font = "";
if (arg0 != global.chemg_last_get_font)
global.chemg_last_get_font = arg0;
return ds_map_find_value(global.font_map, arg0);
} ("mainbig"));
|
|
259
|
draw_set_halign(fa_left);
|
|
260
|
draw_set_halign(fa_left);
|
|
261
|
}
|
|
262
|
}
|
|
263
|
else
|
|
264
|
{
|
|
265
|
draw_set_colour(c_dkgray);
|
|
266
|
d_line_width(volx, (cameray() + my + myy + 40 + (i * 30)) - (menu_y * 30), volx + 80, (cameray() + my + myy + 40 + (i * 30)) - (menu_y * 30), 4);
|
|
267
|
}
|
|
268
|
}
|
|
269
|
}
|
|
270
|
}
|
|
271
|
if (menu_max > 8)
|
|
272
|
{
|
|
273
|
draw_set_color(c_dkgray);
|
|
274
|
ossafe_fill_rectangle((camerax() + mx + mwidth) - 29, cameray() + my + 70, (camerax() + mx + mwidth) - 25, cameray() + my + 292, 0);
|
|
275
|
draw_set_color(c_white);
|
|
276
|
var nn = menu_max - 7;
|
|
277
|
var pagey = (menu_y / nn) * 222;
|
|
278
|
var pageh = 222 / max(1, menu_max - 7);
|
|
279
|
ossafe_fill_rectangle((camerax() + mx + mwidth) - 29, cameray() + my + 70 + pagey, (camerax() + mx + mwidth) - 25, cameray() + my + 70 + pageh + pagey, 0);
|
|
280
|
if (menu_y > 0)
|
|
281
|
draw_sprite_ext(spr_morearrow, 0, (camerax() + mx + mwidth) - 33, (cameray() + my + 64) - (sin(cur_jewel / 12) * 3), 1, -1, 0, c_white, 1);
|
|
282
|
if (menu_y < (menu_max - 8))
|
|
283
|
draw_sprite_ext(spr_morearrow, 0, (camerax() + mx + mwidth) - 33, cameray() + my + 298 + (sin(cur_jewel / 12) * 3), 1, 1, 0, c_white, 1);
|
|
284
|
}
|
|
285
|
}
|
|
286
|
if (act == 1)
|
|
287
|
{
|
|
288
|
draw_set_halign(fa_center);
|
|
289
|
draw_set_colour(c_white);
|
|
290
|
draw_text(camerax() + mx + (mwidth / 2), cameray() + my + 30, stringsetloc(Adjust Sensitivity"Adjust Sensitivity", "obj_micmenu_slash_Draw_0_gml_213_0" ));
|
|
291
|
var ly = cameray() + my + (mheight / 2) + 32;
|
|
292
|
var lw = point_distance(camerax() + mx + 96, 0, (camerax() + mx + mwidth) - 96, 0);
|
|
293
|
var lx = camerax() + mx + 96 + (lw * (global.mic_sensitivity / 4));
|
|
294
|
draw_set_colour(c_dkgray);
|
|
295
|
d_triangle(camerax() + mx + 86, ly, (camerax() + mx + mwidth) - 96, ly, (camerax() + mx + mwidth) - 96, ly - 16, 0);
|
|
296
|
var _str = "";
|
|
297
|
if (current == 0)
|
|
298
|
{
|
|
299
|
var col = merge_colour(c_white, c_yellow, clamp(sin(current_time / 200) + 0.5, 0, 1));
|
|
300
|
draw_set_colour(col);
|
|
301
|
draw_sprite_ext(spr_morearrow, 0, camerax() + mx + 88, ly, -1, 1, -90, c_white, 1);
|
|
302
|
draw_sprite_ext(spr_morearrow, 0, (camerax() + mwidth + mx) - 88, ly, 1, 1, 90, c_white, 1);
|
|
303
|
}
|
|
304
|
else
|
|
305
|
{
|
|
306
|
draw_set_colour(c_white);
|
|
307
|
}
|
|
308
|
ossafe_fill_rectangle(lx - 2, ly - 24, lx + 2, ly + 8, 0);
|
|
309
|
}
|
|
310
|
|
|
311
|
enum e__VW
|
|
312
|
{
|
|
313
|
XView,
|
|
314
|
YView,
|
|
315
|
WView,
|
|
316
|
HView,
|
|
317
|
Angle,
|
|
318
|
HBorder,
|
|
319
|
VBorder,
|
|
320
|
HSpeed,
|
|
321
|
VSpeed,
|
|
322
|
Object,
|
|
323
|
Visible,
|
|
324
|
XPort,
|
|
325
|
YPort,
|
|
326
|
WPort,
|
|
327
|
HPort,
|
|
328
|
Camera,
|
|
329
|
SurfaceID
|
|
330
|
}
|