-
Notifications
You must be signed in to change notification settings - Fork 11
/
[clientscript,meslayer_onkey].cs2
61 lines (61 loc) · 1.83 KB
/
[clientscript,meslayer_onkey].cs2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
// 112
[clientscript,meslayer_onkey](int $key0, char $keychar1, string $string0)
if (~keypress_permit(-1, 162) = 0) {
return;
}
if ($key0 = ^key_return) {
if (%varcint56 = 1 & string_length(%varcstring359) <= 0) {
if (%varcint5 = 8) {
%varcstring359 = %varcstring361;
~script222($string0);
} else if (%varcint5 = 10) {
%varcstring359 = %varcstring362;
~script222($string0);
} else if (%varcint5 = 20) {
%varcstring359 = ~script4393;
~script222($string0);
}
}
~meslayer_enter;
return;
}
switch_int (%varcint5) {
case 6, 9 :
%varcstring359 = ~add_to_inputstring(%varcstring359, 0, $key0, $keychar1);
case 11 :
if ($key0 = ^key_escape) {
~meslayer_close(1, 1, 1);
return;
}
%varcstring359 = ~add_to_inputstring(%varcstring359, 0, $key0, $keychar1);
case 7, 16 :
%varcstring359 = ~add_to_inputstring(%varcstring359, 1, $key0, $keychar1);
case 19 :
%varcstring359 = ~add_to_inputstring(%varcstring359, 6, $key0, $keychar1);
case 12 :
%varcstring359 = ~add_to_inputstring(%varcstring359, 3, $key0, $keychar1);
~meslayer_mode12_setprompt;
case 18 :
if ($key0 = ^key_escape) {
~meslayer_close(1, 1, 1);
return;
}
%varcstring359 = ~add_to_inputstring(%varcstring359, 3, $key0, $keychar1);
%varcstring359 = ~script1299(%varcstring359, " ", " ");
case 13 :
%varcstring359 = ~add_to_inputstring(%varcstring359, 0, $key0, $keychar1);
~meslayer_mode13_setprompt;
case 14, 17 :
if ($key0 = ^key_escape) {
resume_objdialog(null);
sound_synth(interface_select1, 1, 0);
~meslayer_close(1, 1, 1);
return;
}
%varcstring359 = ~add_to_inputstring(%varcstring359, 4, $key0, $keychar1);
case 20, 21 :
%varcstring359 = ~add_to_inputstring(%varcstring359, 8, $key0, $keychar1);
case default :
%varcstring359 = ~add_to_inputstring(%varcstring359, 2, $key0, $keychar1);
}
~script222($string0);