-
Notifications
You must be signed in to change notification settings - Fork 11
/
[proc,1v1arena_hud_buildplayer].cs2
64 lines (64 loc) · 2.44 KB
/
[proc,1v1arena_hud_buildplayer].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
// 2719
[proc,1v1arena_hud_buildplayer](int $int0, int $int1, string $string0, int $int2, int $int3, int $int4, int $int5, int $int6, int $int7)(string, int, int, int, int, int, int)
def_component $component8 = enum(int, component, enum_1378, $int0);
if ($component8 = null) {
return($string0, $int2, $int3, $int4, $int5, $int6, $int7);
}
cc_deleteall($component8);
def_int $int9 = 0;
def_string $string1 = "";
$string1, $string0 = ~script632($string0);
if (string_length($string1) > 0) {
if_sethide(false, $component8);
$int9 = ~options_button_off($component8, 0);
cc_create($component8, ^iftype_rectangle, $int9);
$int9 = calc($int9 + 1);
cc_setsize(6, 6, ^setsize_minus, ^setsize_minus);
cc_setposition(0, 0, ^setpos_abs_centre, ^setpos_abs_centre);
cc_setfill(true);
cc_setcolour(^white);
cc_settrans(255);
if_setondragcomplete("cc_settrans_temporarily(event_com, cc_getid, 200, 255)", $component8);
cc_create($component8, ^iftype_text, $int9);
$int9 = calc($int9 + 1);
cc_setsize(0, 0, ^setsize_minus, ^setsize_minus);
cc_setposition(0, 0, ^setpos_abs_centre, ^setpos_abs_centre);
if ($int1 = 6) {
cc_setcolour(^red);
if_setonmouseleave("cc_colour_swapper(event_com, cc_getid, ^red)", $component8);
} else {
cc_setcolour(0xff981f);
if_setonmouseleave("cc_colour_swapper(event_com, cc_getid, 0xff981f)", $component8);
}
if_setonmouseover("cc_colour_swapper(event_com, cc_getid, ^white)", $component8);
if_setonop("opsound(event_opindex, 2)", $component8);
cc_settextshadow(true);
cc_settextfont(p11_full);
cc_settextalign(^settextalign_centre, ^settextalign_centre, 0);
cc_settext($string1);
switch_int ($int1) {
case 1 :
~script2720(interface_618:8, $int3, $component8);
$int3 = calc($int3 + 1);
case 2 :
~script2720(interface_618:9, $int4, $component8);
$int4 = calc($int4 + 1);
case 3 :
~script2720(interface_618:10, $int5, $component8);
$int5 = calc($int5 + 1);
case 4 :
~script2720(interface_618:11, $int6, $component8);
$int6 = calc($int6 + 1);
case 5 :
~script2720(interface_618:12, $int7, $component8);
$int7 = calc($int7 + 1);
case default :
if_setposition(calc(if_getwidth($component8) * ($int2 % 4)), calc(if_getheight($component8) * (4 - $int2 / 4)), ^setpos_abs_left, ^setpos_abs_bottom, $component8);
}
$int2 = calc($int2 + 1);
} else {
if_sethide(true, $component8);
if_setondragcomplete(null, $component8);
if_setonop(null, $component8);
}
return($string0, $int2, $int3, $int4, $int5, $int6, $int7);