-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path[proc,tob_hud_fade].cs2
38 lines (38 loc) · 1.22 KB
/
[proc,tob_hud_fade].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
// 2309
[proc,tob_hud_fade](int $int0, int $int1, int $int2, string $string0, int $int3)
if (if_hassub(enum(component, component, ~toplevel_getcomponents, interface_161:3)) = false) {
return;
}
if (cc_find(interface_28:1, 0) = ^true) {
if ($int3 = 1) {
~tob_hud_setportal;
} else {
cc_sethide(true);
}
} else {
cc_create(interface_28:1, ^iftype_model, 0);
cc_setsize(0, 0, ^setsize_minus, ^setsize_minus);
cc_setposition(0, 0, ^setpos_abs_centre, ^setpos_abs_centre);
if ($int3 = 1) {
~tob_hud_setportal;
} else {
cc_sethide(true);
}
}
if (cc_find(interface_28:1, 1) = ^true & .cc_find(interface_28:1, 2) = ^true) {
~script2310(cc_getcolour, $int0, cc_gettrans, $int1, $int2, $string0);
} else {
cc_create(interface_28:1, ^iftype_rectangle, 1);
cc_setsize(0, 0, ^setsize_minus, ^setsize_minus);
cc_setposition(0, 0, ^setpos_abs_centre, ^setpos_abs_centre);
cc_setfill(true);
cc_setcolour(^black);
cc_settrans(255);
.cc_create(interface_28:1, ^iftype_text, 2);
.cc_setsize(0, 50, ^setsize_minus, ^setsize_abs);
.cc_setcolour(0xc80032);
.cc_settextalign(^settextalign_centre, ^settextalign_centre, 0);
.cc_settextshadow(true);
.cc_settextfont(quill_oblique_large);
~script2310(0, $int0, 255, $int1, $int2, $string0);
}