-
Notifications
You must be signed in to change notification settings - Fork 11
/
[clientscript,tob_partydetails_addapplicant].cs2
31 lines (31 loc) · 1.6 KB
/
[clientscript,tob_partydetails_addapplicant].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
// 2321
[clientscript,tob_partydetails_addapplicant](string $string0)
if (if_hassub(enum(component, component, ~toplevel_getcomponents, interface_161:20)) = false) {
return;
}
def_int $int0 = ~max(0, calc(%varcint178 - 5));
def_int $int1 = calc($int0 * 20);
cc_create(interface_50:42, ^iftype_rectangle, $int1);
cc_setsize(0, 13, ^setsize_minus, ^setsize_abs);
cc_setposition(0, -13, ^setpos_abs_centre, ^setpos_abs_top);
cc_setfill(true);
cc_setcolour(^black);
def_string $string1 = "";
def_string $string2 = "";
$string1, $string2 = ~script632($string0);
def_int $colour2 = 0xff981f;
if (compare(lowercase($string1), lowercase(removetags(chat_playername))) = 0) {
$colour2 = ^white;
}
def_int $int3 = 0;
$string0, $int3 = ~script2322(1, -1, interface_50:32, $string0, $int1, $int3, $colour2);
$string0, $int3 = ~script2322(2, 3, interface_50:33, $string0, $int1, $int3, $colour2);
$string0, $int3 = ~script2322(4, 5, interface_50:34, $string0, $int1, $int3, $colour2);
$string0, $int3 = ~script2322(6, 7, interface_50:35, $string0, $int1, $int3, $colour2);
$string0, $int3 = ~script2322(8, 9, interface_50:36, $string0, $int1, $int3, $colour2);
$string0, $int3 = ~script2322(10, 11, interface_50:37, $string0, $int1, $int3, $colour2);
$string0, $int3 = ~script2322(12, 13, interface_50:38, $string0, $int1, $int3, $colour2);
$string0, $int3 = ~script2322(14, 15, interface_50:39, $string0, $int1, $int3, $colour2);
$string0, $int3 = ~script2322(16, 17, interface_50:40, $string0, $int1, $int3, $colour2);
$string0, $int3 = ~script2322(18, 19, interface_50:41, $string0, $int1, $int3, $colour2);
%varcint178 = calc(%varcint178 + 1);