-
Notifications
You must be signed in to change notification settings - Fork 11
/
[proc,script2344].cs2
108 lines (108 loc) · 3.69 KB
/
[proc,script2344].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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
// 2344
[proc,script2344](component $component0, int $comsubid1, component $component2, string $string0, string $string1, fontmetrics $fontmetrics3)
def_fontmetrics $fontmetrics4 = p12_full;
def_int $int5 = 12;
def_int $int6 = 4;
if ($fontmetrics3 = p11_full) {
$fontmetrics4, $int5, $int6 = p11_full, 10, 2;
} else if ($fontmetrics3 = b12_full) {
$fontmetrics4 = b12_full;
}
def_string $string2 = "";
def_string $string3 = "";
def_string $string4 = "";
def_string $string5 = "";
def_int $int7 = 0;
def_int $int8 = 0;
def_int $int9 = 0;
def_int $int10 = 0;
def_int $int11 = 0;
$string4, $string0 = ~script632($string0);
$string5, $string1 = ~script632($string1);
def_int $int12 = string_length($string4);
def_int $int13 = string_length($string5);
while ($int12 > 0 | $int13 > 0) {
if ($int12 > 0) {
$int7 = parawidth($string4, ^max_32bit_int, $fontmetrics3);
} else {
$int7 = 0;
}
if ($int13 > 0) {
$int8 = parawidth($string5, ^max_32bit_int, $fontmetrics3);
} else {
$int8 = 0;
}
$int9 = calc($int7 + $int6 + $int8);
if ($int10 < $int9) {
$int10 = $int9;
}
if ($int11 > 0) {
$string2, $string3 = append($string2, append("<br>", $string4)), append($string3, append("<br>", $string5));
} else {
$string2, $string3 = append($string2, $string4), append($string3, $string5);
}
$int11 = calc($int11 + 1);
if (string_length($string0) > 0 | string_length($string1) > 0) {
$string4, $string0 = ~script632($string0);
$string5, $string1 = ~script632($string1);
$int12 = string_length($string4);
$int13 = string_length($string5);
} else {
$int12, $int13 = 0, 0;
}
}
$int9, $int5 = calc($int10 + 4), calc($int11 * $int5 + ($int6 - 1) + 4);
if_setsize($int9, $int5, ^setsize_abs, ^setsize_abs, $component2);
def_int $int14 = if_getx($component0);
def_int $int15 = if_gety($component0);
def_int $int16 = 0;
if ($comsubid1 ! -1 & cc_find($component0, $comsubid1) = ^true) {
$int14, $int15, $int16 = calc($int14 + cc_getx - if_getscrollx($component0)), calc($int15 + cc_gety - if_getscrolly($component0)), cc_getheight;
} else {
$int16 = if_getheight($component0);
}
def_component $layer17 = if_getlayer($component0);
while ($layer17 ! null) {
$int14, $int15 = calc($int14 + if_getx($layer17) - if_getscrollx($layer17)), calc($int15 + if_gety($layer17) - if_getscrolly($layer17));
$layer17 = if_getlayer($layer17);
}
def_int $x18 = calc($int14 + 5);
def_int $y19 = calc($int15 + $int16 + 5);
def_int $x20 = 0;
def_component $layer21 = if_getlayer($component2);
if ($layer21 ! null) {
$x20 = calc(if_getwidth($layer21) - $int9);
if ($x18 > $x20) {
$x18 = $x20;
}
if ($y19 > calc(if_getheight($layer21) - $int5)) {
$y19 = calc($int15 - $int5 - 5);
}
}
if_setposition($x18, $y19, ^setpos_abs_left, ^setpos_abs_top, $component2);
cc_deleteall($component2);
cc_create($component2, ^iftype_rectangle, 0);
cc_setsize(0, 0, ^setsize_minus, ^setsize_minus);
cc_setposition(0, 0, ^setpos_abs_centre, ^setpos_abs_centre);
cc_setfill(true);
cc_setcolour(0xffffa0);
cc_create($component2, ^iftype_rectangle, 1);
cc_setsize(0, 0, ^setsize_minus, ^setsize_minus);
cc_setposition(0, 0, ^setpos_abs_centre, ^setpos_abs_centre);
cc_setfill(false);
cc_setcolour(^black);
cc_create($component2, ^iftype_text, 2);
cc_setsize(4, 1, ^setsize_minus, ^setsize_minus);
cc_setposition(0, 0, ^setpos_abs_centre, ^setpos_abs_bottom);
cc_settext($string2);
cc_settextalign(^settextalign_left, ^settextalign_top, 0);
cc_settextfont($fontmetrics4);
cc_setcolour(^black);
cc_create($component2, ^iftype_text, 3);
cc_setsize(4, 1, ^setsize_minus, ^setsize_minus);
cc_setposition(0, 0, ^setpos_abs_centre, ^setpos_abs_bottom);
cc_settext($string3);
cc_settextalign(^settextalign_right, ^settextalign_top, 0);
cc_settextfont($fontmetrics4);
cc_setcolour(^black);
%varcint2 = 1;