-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path[proc,canoe_location_setup].cs2
36 lines (36 loc) · 1.37 KB
/
[proc,canoe_location_setup].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
// 3100
[proc,canoe_location_setup](component $component0, string $text0, boolean $boolean1, model $model2, model $model3, string $op1, int $x4, int $x5)
def_int $int6 = 0;
def_int $width7 = 0;
if ($boolean1 = false) {
$width7 = calc(if_getwidth($component0) / 2);
} else {
$width7 = if_getwidth($component0);
}
cc_create($component0, ^iftype_rectangle, $int6);
cc_setsize(0, 0, ^setsize_minus, ^setsize_minus);
cc_setposition(0, 0, ^setpos_abs_centre, ^setpos_abs_centre);
cc_setfill(false);
cc_settrans(255);
if (~on_mobile = false) {
cc_setonmouserepeat("canoe_location_hover($boolean1, $model2, $model3, true, $component0)");
cc_setonmouseleave("canoe_location_hover($boolean1, $model2, $model3, false, $component0)");
}
cc_setop(1, $op1);
$int6 = calc($int6 + 1);
cc_create($component0, ^iftype_text, $int6);
cc_setsize($width7, 0, ^setsize_abs, ^setsize_minus);
cc_setposition($x4, 0, ^setpos_abs_left, ^setpos_abs_top);
cc_setcolour(0x999999);
cc_settextshadow(true);
cc_settextfont(q8_full);
cc_settext($text0);
cc_settextalign(^settextalign_centre, ^settextalign_centre, 0);
$int6 = calc($int6 + 1);
if ($boolean1 = false & $model2 ! null & $model3 ! null) {
cc_create($component0, ^iftype_model, $int6);
cc_setsize($width7, 0, ^setsize_abs, ^setsize_minus);
cc_setposition($x5, 0, ^setpos_abs_right, ^setpos_abs_top);
cc_setmodel($model2);
cc_setmodelangle(0, 0, 279, 1852, 0, 3160);
}