-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path[proc,script203].cs2
33 lines (33 loc) · 1.4 KB
/
[proc,script203].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
// 203
[proc,script203](string $string0, string $string1, int $int0, component $component1, component $component2, int $width3, int $int4, int $int5, int $int6, int $setposv7, int $int8, int $colour9, boolean $boolean10)(int)
def_int $int11 = calc($width3 - $int4);
def_int $int12 = calc(parawidth($string0, ^max_32bit_int, p12_full) + 3);
def_int $width13 = calc($int11 - $int12);
def_int $int14 = calc(paraheight($string1, $width13, p12_full) * $int5);
if ($setposv7 = ^setpos_abs_top & $int8 = 103) {
$int6 = calc($int6 - $int14);
}
if (cc_find($component2, calc($int0 * 4)) = ^true & .cc_find($component2, calc($int0 * 4 + 1)) = ^true) {
if_setsize($int11, $int14, ^setsize_abs, ^setsize_abs, $component1);
if_setposition($int4, $int6, ^setpos_abs_left, $setposv7, $component1);
cc_sethide(false);
cc_setsize($int11, $int14, ^setsize_abs, ^setsize_abs);
cc_setposition($int4, $int6, ^setpos_abs_left, $setposv7);
cc_settext($string0);
cc_setcolour($colour9);
cc_settextshadow($boolean10);
.cc_sethide(false);
.cc_setsize($width13, $int14, ^setsize_abs, ^setsize_abs);
.cc_setposition(calc($int4 + $int12), $int6, ^setpos_abs_left, $setposv7);
.cc_settext($string1);
.cc_setcolour($colour9);
.cc_settextshadow($boolean10);
}
if (cc_find($component2, calc($int0 * 4 + 2)) = ^true) {
cc_settext("");
cc_sethide(true);
}
if (cc_find($component2, calc($int0 * 4 + 3)) = ^true) {
cc_sethide(true);
}
return($int14);