-
Notifications
You must be signed in to change notification settings - Fork 11
/
[proc,scrollbar_vertical_doscroll].cs2
48 lines (48 loc) · 1.84 KB
/
[proc,scrollbar_vertical_doscroll].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
// 37
[proc,scrollbar_vertical_doscroll](component $component0, component $component1, int $int2, boolean $boolean3)
def_int $int4 = ~max(calc(if_getscrollheight($component1) - if_getheight($component1)), 1);
$int2 = ~max(~min($int2, $int4), 0);
if_setscrollpos(0, $int2, $component1);
switch_component ($component1) {
case interface_162:56 :
%varcint7 = if_getscrolly($component1);
case interface_399:5 :
%varcint10 = if_getscrolly($component1);
case interface_239:3 :
%varcint75 = if_getscrolly($component1);
case interface_429:11 :
%varcint9 = if_getscrolly($component1);
case interface_12:12 :
%varcint51 = if_getscrolly($component1);
case interface_381:7 :
%varcint0 = if_getscrolly($component1);
case interface_69:15 :
%varcint69 = if_getscrolly($component1);
case interface_675:4, interface_458:3 :
%varcint58 = if_getscrolly($component1);
case poll_results:11, interface_400:10, interface_690:10, interface_706:12, interface_700:20, interface_695:11 :
%varcint63 = if_getscrolly($component1);
case interface_706:8 :
%varcint49 = if_getscrolly($component1);
case interface_92:4 :
%varcint203 = if_getscrolly($component1);
case interface_179:5 :
%varcint77 = if_getscrolly($component1);
case interface_75:2 :
%varcint80 = if_getscrolly($component1);
case interface_129:13 :
%varcint138 = if_getscrolly($component1);
case interface_499:14, interface_507:11, interface_500:10, interface_700:5, interface_699:11, interface_695:6 :
%varcint179 = if_getscrolly($component1);
case interface_595:19 :
%varcint182 = if_getscrolly($component1);
case interface_631:11 :
%varcint376 = if_getscrolly($component1);
case interface_52:20 :
%varcint378 = if_getscrolly($component1);
case interface_716:10 :
%varcint529 = if_getscrolly($component1);
}
if ($boolean3 = true) {
~scrollbar_vertical_setdragger($component0, $component1);
}