-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path[proc,script2925].cs2
31 lines (31 loc) · 1.31 KB
/
[proc,script2925].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
// 2925
[proc,script2925](int $int0, component $component1, string $text0, string $string1, namedobj $namedobj2)(int)
cc_deleteall($component1);
cc_create($component1, ^iftype_graphic, 0);
cc_setobject($namedobj2, -1);
cc_setoutline(1);
cc_setgraphicshadow(0x604e32);
cc_setsize(36, 32, ^setsize_abs, ^setsize_abs);
cc_setposition(0, 0, ^setpos_abs_left, ^setpos_abs_top);
def_int $width3 = calc(if_getwidth($component1) - (36 + 7));
cc_create($component1, ^iftype_text, 1);
cc_setsize($width3, 16, ^setsize_abs, ^setsize_abs);
cc_setposition(0, 0, ^setpos_abs_right, ^setpos_abs_top);
cc_settextalign(^settextalign_left, ^settextalign_top, 0);
cc_setcolour(0xf5e9d5);
cc_settextfont(p12_full);
cc_settextshadow(true);
cc_settext($text0);
def_int $int4 = calc(paraheight($string1, $width3, p11_full) * 10 + 2);
cc_create($component1, ^iftype_text, 2);
cc_setsize($width3, 16, ^setsize_abs, ^setsize_minus);
cc_setposition(0, 0, ^setpos_abs_right, ^setpos_abs_bottom);
cc_settextalign(^settextalign_left, ^settextalign_centre, 0);
cc_setcolour(0xf5e9d5);
cc_settextfont(p11_full);
cc_settextshadow(true);
cc_settext($string1);
$int4 = ~max(calc(32 + 4), calc($int4 + 16));
if_setsize(0, $int4, ^setsize_minus, ^setsize_abs, $component1);
if_setposition(0, $int0, ^setpos_abs_centre, ^setpos_abs_top, $component1);
return(calc($int0 + $int4));