-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path[proc,clan_banned_populatedisplay].cs2
81 lines (81 loc) · 2.68 KB
/
[proc,clan_banned_populatedisplay].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
72
73
74
75
76
77
78
79
80
81
// 4275
[proc,clan_banned_populatedisplay](int $int0, component $component1, component $component2, component $component3, int $int4, int $int5, int $int6)(int)
def_string $string0 = "";
def_int $int7 = -1;
def_int $int8 = 0;
def_int $int9 = 0;
def_int $int10 = 0;
def_int $int11 = 0;
def_int $int12 = 0;
def_int $int13 = 0;
if (~clan_members_searching = 1) {
$int13 = string_length(~bankmain_filterstring);
}
def_int $index14 = -1;
def_boolean $boolean15 = ~on_mobile;
def_int $int16 = 0;
while ($int16 < 500) {
if (cc_find($component1, $int16) = ^true & .cc_find($component1, calc($int16 + 500)) = ^true) {
if ($int16 < $int0) {
$string0 = activeclansettings_getbanneddisplayname($int16);
$int7 = ~clan_members_filtername($string0);
if ($int7 ! -1) {
cc_sethide(false);
.cc_sethide(false);
$int9, $int10 = calc($int8 / 3), calc($int8 % 3);
$int11 = calc($int6 * $int9);
if ($int10 = 0) {
cc_setposition(0, $int11, ^setpos_abs_left, ^setpos_abs_top);
.cc_setposition(0, $int11, ^setpos_abs_left, ^setpos_abs_top);
} else if ($int10 = 1) {
cc_setposition(0, $int11, ^setpos_abs_centre, ^setpos_abs_top);
.cc_setposition(0, $int11, ^setpos_abs_centre, ^setpos_abs_top);
} else {
cc_setposition(0, $int11, ^setpos_abs_right, ^setpos_abs_top);
.cc_setposition(0, $int11, ^setpos_abs_right, ^setpos_abs_top);
}
cc_setopbase("<col=ff9040><$string0></col>");
$int12 = string_length($string0);
if ($int7 < $int12) {
$index14 = ~min($int12, calc($int7 + $int13));
.cc_settext(append(append(substring($string0, 0, $int7), "<col=ffffff><substring($string0, $int7, $index14)></col>"), substring($string0, $index14, $int12)));
} else {
.cc_settext($string0);
}
if (calc($int9 % 2) = 0) {
cc_settrans(255);
} else {
cc_settrans(245);
}
if ($boolean15 = false) {
cc_setonmouserepeat("clan_members_hover(true, event_com, event_comsubid, cc_gettrans)");
}
cc_setonmouseleave("clan_members_hover(false, event_com, event_comsubid, cc_gettrans)");
cc_setonop("clan_banned_op(event_opindex, event_com, event_comsubid, cc_gettrans, $string0, $component3, $int4, $int5)");
cc_setontimer(null);
$int8 = calc($int8 + 1);
} else {
cc_sethide(true);
.cc_sethide(true);
cc_setontimer(null);
}
} else {
cc_sethide(true);
.cc_sethide(true);
cc_setontimer(null);
}
}
$int16 = calc($int16 + 1);
}
if ($int8 > 0) {
if (cc_find($component1, calc(500 * 2)) = ^true) {
cc_sethide(true);
cc_settext("");
}
return(calc($int11 + $int6));
}
if (cc_find($component1, calc(500 * 2)) = ^true) {
cc_sethide(false);
cc_settext("No entries match the current filter.");
}
return(0);