-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path[clientscript,poll_conclude].cs2
28 lines (28 loc) · 1.27 KB
/
[clientscript,poll_conclude].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
// 618
[clientscript,poll_conclude](component $component0, component $component1, component $component2, boolean $boolean3)
if (if_hassub(enum(component, component, ~toplevel_getcomponents, toplevel_osrs_stretch:16)) = false) {
return;
}
if ($component0 = interface_400:10) {
if_setposition(calc((if_getwidth(interface_400:10) - if_getwidth(interface_400:11)) / 2), %varcint49, ^setpos_abs_left, ^setpos_abs_top, interface_400:11);
%varcint49 = calc(%varcint49 + if_getheight(interface_400:11));
}
if (%varcint49 > if_getheight($component0)) {
if_setscrollsize(0, %varcint49, $component0);
} else {
if_setscrollsize(0, 0, $component0);
}
cc_deleteall($component1);
if ($boolean3 = true) {
if_setscrollpos(0, 0, $component0);
%varcint63 = 0;
~scrollbar_vertical($component1, $component0, "scrollbar_dragger_v2,3", "scrollbar_dragger_v2,0", "scrollbar_dragger_v2,1", "scrollbar_dragger_v2,2", "scrollbar_v2,0", "scrollbar_v2,1");
} else {
if (%varcint63 < 0) {
%varcint63 = 0;
}
~scrollbar_vertical($component1, $component0, "scrollbar_dragger_v2,3", "scrollbar_dragger_v2,0", "scrollbar_dragger_v2,1", "scrollbar_dragger_v2,2", "scrollbar_v2,0", "scrollbar_v2,1");
~scrollbar_resize($component1, $component0, %varcint63);
}
if_sethide(false, $component0);
if_sethide(true, $component2);