-
Notifications
You must be signed in to change notification settings - Fork 11
/
[clientscript,raids_sidepanel_initlines].cs2
71 lines (71 loc) · 2.64 KB
/
[clientscript,raids_sidepanel_initlines].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
62
63
64
65
66
67
68
69
70
71
// 1547
[clientscript,raids_sidepanel_initlines](int $int0)
if (if_hassub(enum(component, component, ~toplevel_getcomponents, interface_161:81)) = false) {
return;
}
cc_deleteall(interface_500:10);
def_int $int1 = 0;
def_int $int2 = 0;
def_int $y3 = 0;
def_int $int4 = 0;
while ($int4 < $int0) {
$int2, $y3 = 0, calc($int4 * 13);
cc_create(interface_500:10, ^iftype_rectangle, calc($int4 * 7));
cc_setsize(0, 13, ^setsize_minus, ^setsize_abs);
cc_setposition(0, $y3, ^setpos_abs_centre, ^setpos_abs_top);
cc_setcolour(^white);
cc_setfill(true);
$int1 = if_getwidth(interface_500:7);
cc_create(interface_500:10, ^iftype_text, calc($int4 * 7 + 1));
cc_setsize($int1, 13, ^setsize_abs, ^setsize_abs);
cc_setposition($int2, $y3, ^setpos_abs_left, ^setpos_abs_top);
cc_setcolour(0xff981f);
cc_settextfont(p11_full);
cc_settextalign(^settextalign_centre, ^settextalign_centre, 0);
cc_settextshadow(true);
$int2 = calc($int2 + $int1);
$int1 = if_getwidth(interface_500:8);
cc_create(interface_500:10, ^iftype_text, calc($int4 * 7 + 2));
cc_setsize($int1, 13, ^setsize_abs, ^setsize_abs);
cc_setposition($int2, $y3, ^setpos_abs_left, ^setpos_abs_top);
cc_setcolour(0xff981f);
cc_settextfont(p11_full);
cc_settextalign(^settextalign_centre, ^settextalign_centre, 0);
cc_settextshadow(true);
$int2 = calc($int2 + $int1);
cc_create(interface_500:10, ^iftype_text, calc($int4 * 7 + 3));
cc_setsize($int2, 13, ^setsize_minus, ^setsize_abs);
cc_setposition(0, $y3, ^setpos_abs_right, ^setpos_abs_top);
cc_setcolour(0xff981f);
cc_settextfont(p11_full);
cc_settextalign(^settextalign_centre, ^settextalign_centre, 0);
cc_settextshadow(true);
cc_create(interface_500:10, ^iftype_text, calc($int4 * 7 + 4));
cc_sethide(true);
cc_setcolour(0xff981f);
cc_settextfont(p11_full);
cc_settextalign(^settextalign_centre, ^settextalign_centre, 0);
cc_settextshadow(true);
cc_create(interface_500:10, ^iftype_text, calc($int4 * 7 + 5));
cc_sethide(true);
cc_setcolour(0xff981f);
cc_settextfont(p11_full);
cc_settextalign(^settextalign_centre, ^settextalign_centre, 0);
cc_settextshadow(true);
cc_create(interface_500:10, ^iftype_text, calc($int4 * 7 + 6));
cc_sethide(true);
cc_setcolour(0xff981f);
cc_settextfont(p11_full);
cc_settextalign(^settextalign_centre, ^settextalign_centre, 0);
cc_settextshadow(true);
$int4 = calc($int4 + 1);
}
def_int $height5 = calc($int4 * 13);
if ($height5 > if_getheight(interface_500:10)) {
if_setscrollsize(0, $height5, interface_500:10);
~scrollbar_resize(interface_500:11, interface_500:10, %varcint179);
} else {
if_setscrollsize(0, 0, interface_500:10);
~scrollbar_resize(interface_500:11, interface_500:10, 0);
%varcint179 = 0;
}