This repository was archived by the owner on Feb 4, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy path[proc,script5785].cs2
78 lines (78 loc) · 2.94 KB
/
[proc,script5785].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
// 5785
[proc,script5785](component $component0, int $int1, int $int2, struct $struct3)(int, int)
if ($struct3 = null) {
return($int1, $int2);
}
def_int $colour4 = ~league_get_league_colour(3);
def_int $int5 = 5;
def_int $int6 = 15;
def_int $int7 = struct_param($struct3, param_1464);
def_int $int8 = ~script5792($int7);
def_int $int9 = struct_param($struct3, param_1468);
def_int $int10 = struct_param($struct3, param_1470);
def_string $string0 = struct_param($struct3, param_1465);
def_int $int11 = calc(paraheight($string0, calc(if_getwidth($component0) - 2 * $int5), b12_full) * $int6);
cc_create($component0, ^iftype_text, $int1);
cc_setposition($int5, $int2, ^setpos_abs_left, ^setpos_abs_top);
cc_setsize(calc(2 * $int5), $int11, ^setsize_minus, ^setsize_abs);
cc_settextalign(^settextalign_left, ^settextalign_top, $int6);
cc_settextshadow(true);
cc_settextfont(b12_full);
if ($int8 < $int9) {
cc_setcolour(0xcfcfcf);
} else {
cc_setcolour($colour4);
}
cc_settext($string0);
$int2 = calc($int2 + $int11);
$int1 = calc($int1 + 1);
def_string $string1 = struct_param($struct3, param_1466);
$int11 = calc(paraheight($string1, calc(if_getwidth($component0) - 2 * $int5), p12_full) * $int6);
cc_create($component0, ^iftype_text, $int1);
cc_setposition($int5, $int2, ^setpos_abs_left, ^setpos_abs_top);
cc_setsize(calc(2 * $int5), $int11, ^setsize_minus, ^setsize_abs);
cc_settextalign(^settextalign_left, ^settextalign_top, $int6);
cc_settextshadow(true);
cc_settextfont(p12_full);
cc_setcolour(0xcfcfcf);
cc_settext($string1);
$int2 = calc($int2 + $int11);
$int1 = calc($int1 + 1);
$int2 = calc($int2 + 3);
$string1 = "<tostring($int9)> Fragments: <col=cfcfcf><struct_param($struct3, param_1467)>";
$int11 = calc(paraheight($string1, calc(if_getwidth($component0) - 2 * $int5), p12_full) * $int6);
cc_create($component0, ^iftype_text, $int1);
cc_setposition($int5, $int2, ^setpos_abs_left, ^setpos_abs_top);
cc_setsize(calc(2 * $int5), $int11, ^setsize_minus, ^setsize_abs);
cc_settextalign(^settextalign_left, ^settextalign_top, $int6);
cc_settextshadow(true);
cc_settextfont(p12_full);
if ($int8 < $int9) {
cc_setcolour(0xcfcfcf);
} else {
cc_setcolour($colour4);
}
cc_settext($string1);
$int2 = calc($int2 + $int11);
$int1 = calc($int1 + 1);
if ($int10 > 0) {
$int2 = calc($int2 + 3);
$string1 = "<tostring($int10)> Fragments: <col=cfcfcf><struct_param($struct3, param_1469)>";
$int11 = calc(paraheight($string1, calc(if_getwidth($component0) - 2 * $int5), p12_full) * $int6);
cc_create($component0, ^iftype_text, $int1);
cc_setposition($int5, $int2, ^setpos_abs_left, ^setpos_abs_top);
cc_setsize(calc(2 * $int5), $int11, ^setsize_minus, ^setsize_abs);
cc_settextalign(^settextalign_left, ^settextalign_top, $int6);
cc_settextshadow(true);
cc_settextfont(p12_full);
if ($int8 < $int10) {
cc_setcolour(0xcfcfcf);
} else {
cc_setcolour($colour4);
}
cc_settext($string1);
$int2 = calc($int2 + $int11);
$int1 = calc($int1 + 1);
}
$int2 = calc($int2 + $int5 * 2);
return($int1, $int2);