-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path[proc,ca_overview_create_personal_stat].cs2
35 lines (35 loc) · 1.25 KB
/
[proc,ca_overview_create_personal_stat].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
// 4809
[proc,ca_overview_create_personal_stat](component $component0, int $int1, int $int2, int $int3, int $int4, int $int5, string $text0, string $text1)(int, int)
cc_create($component0, ^iftype_rectangle, $int1);
cc_setsize($int4, $int5, ^setsize_abs, ^setsize_abs);
cc_setposition($int2, $int3, ^setpos_abs_left, ^setpos_abs_top);
cc_setcolour(^white);
cc_setfill(true);
def_int $trans6 = 0;
if (calc($int1 % 2) = 1) {
$trans6 = 230;
} else {
$trans6 = 245;
}
cc_settrans($trans6);
$int1 = calc($int1 + 1);
cc_create($component0, ^iftype_text, $int1);
cc_setsize($int4, $int5, ^setsize_abs, ^setsize_abs);
cc_setposition(calc($int2 + 5), $int3, ^setpos_abs_left, ^setpos_abs_top);
cc_settext($text0);
cc_settextfont(p12_full);
cc_settextalign(^settextalign_left, ^settextalign_centre, 0);
cc_settextshadow(true);
cc_setcolour(0xff9933);
$int1 = calc($int1 + 1);
cc_create($component0, ^iftype_text, $int1);
cc_setsize(calc($int4 - 5), $int5, ^setsize_abs, ^setsize_abs);
cc_setposition($int2, $int3, ^setpos_abs_left, ^setpos_abs_top);
cc_settext($text1);
cc_settextfont(p12_full);
cc_settextalign(^settextalign_right, ^settextalign_centre, 0);
cc_settextshadow(true);
cc_setcolour(0xdfdfdf);
$int1 = calc($int1 + 1);
$int3 = calc($int3 + $int5);
return($int1, $int3);