-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path[proc,toplevel_keypress].cs2
39 lines (39 loc) · 1.26 KB
/
[proc,toplevel_keypress].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
// 2068
[proc,toplevel_keypress](int $key0, enum $enum1, boolean $boolean2)
if (~keypress_permit(-1, -1) = 0) {
return;
}
def_component $component3 = enum(component, component, $enum1, interface_161:20);
def_component $component4 = enum(int, component, enum_1137, 3);
def_component $component5 = enum(component, component, $enum1, interface_161:21);
$component4 = enum(component, component, $enum1, $component4);
if ($key0 = ^key_escape) {
switch_int (%varcint5) {
case 14, 17, 18, 11 :
return;
case default :
if (%varbit4681 = 1) {
if ($component5 ! null & if_hassub($component5) = true) {
return;
}
if ($component3 ! null & if_hassub($component4) = true & if_hassub($component3) = true) {
if_close;
return;
}
$component3 = enum(component, component, $enum1, interface_161:77);
if ($component3 ! null & if_hassub($component4) = true & if_hassub($component3) = true) {
if_close;
return;
}
}
}
}
def_int $int6 = ~keybind_get_slot($key0);
if ($int6 = -1 | $int6 = calc(%varbit3756 - 1)) {
return;
}
def_component $component7 = enum(int, component, enum_1137, $int6);
$component7 = enum(component, component, $enum1, $component7);
if (if_hassub($component7) = true) {
~toplevel_sidebutton_op($enum1, $int6, $boolean2);
}