-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path[clientscript,pvpa_1v1_info_transmitdata].cs2
119 lines (119 loc) · 4.53 KB
/
[clientscript,pvpa_1v1_info_transmitdata].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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
// 6355
[clientscript,pvpa_1v1_info_transmitdata](int $int0, int $int1, int $int2, int $int3, coord $coord4, string $string0, string $string1)
def_component $component5 = ~pvpa_1v1_info_getlayer($int0, $int1);
if ($component5 = null) {
return;
}
if_setsize(50, 25, ^setsize_abs, ^setsize_abs, $component5);
cc_deleteall($component5);
def_int $int6 = 0;
cc_create($component5, ^iftype_graphic, $int6);
$int6 = calc($int6 + 1);
cc_setsize(2, 2, ^setsize_minus, ^setsize_minus);
cc_setposition(0, 0, ^setpos_abs_centre, ^setpos_abs_centre);
cc_setgraphic(tradebacking_dark);
cc_settiling(true);
.cc_create($component5, ^iftype_rectangle, $int6);
$int6 = calc($int6 + 1);
.cc_setsize(2, 2, ^setsize_minus, ^setsize_minus);
.cc_setposition(0, 0, ^setpos_abs_centre, ^setpos_abs_centre);
def_int $trans7 = 255;
def_int $trans8 = 240;
def_int $trans9 = 220;
if ($int3 = 1) {
.cc_setcolour(^red);
$trans7, $trans8, $trans9 = 235, 210, 190;
} else {
.cc_setcolour(^white);
}
.cc_settrans($trans7);
.cc_setfill(true);
def_int $comsubid10 = .cc_getid;
if_setonmouserepeat("cc_settrans(event_com, $comsubid10, $trans8, null)", $component5);
if_setonmouseleave("cc_settrans(event_com, $comsubid10, $trans7, null)", $component5);
if_setop(1, "Details", $component5);
if_setop(10, "Teleport", $component5);
if ($int3 = 1) {
cc_create($component5, ^iftype_rectangle, $int6);
$int6 = calc($int6 + 1);
cc_setposition(0, 0, ^setpos_abs_centre, ^setpos_abs_centre);
cc_setsize(0, 0, ^setsize_minus, ^setsize_minus);
cc_setfill(false);
cc_setcolour(0xffffd0);
cc_create($component5, ^iftype_rectangle, $int6);
$int6 = calc($int6 + 1);
cc_setposition(0, 0, ^setpos_abs_centre, ^setpos_abs_centre);
cc_setsize(2, 2, ^setsize_minus, ^setsize_minus);
cc_setfill(false);
cc_setcolour(0xb0b080);
} else {
$int6 = ~thinstonebox($component5, $int6);
}
cc_create($component5, ^iftype_text, $int6);
$int6 = calc($int6 + 1);
cc_setsize(0, 0, ^setsize_minus, ^setsize_minus);
cc_setposition(0, 0, ^setpos_abs_centre, ^setpos_abs_centre);
cc_setcolour(0xff981f);
cc_settextfont(p12_full);
cc_settextalign(^settextalign_centre, ^settextalign_centre, 0);
cc_settextshadow(true);
def_int $flags11 = 0;
def_string $string2 = "-";
if (string_length($string0) > 0) {
$string2, $flags11 = substring($string0, 0, 1), setbit($flags11, 0);
}
def_string $string3 = "-";
if (string_length($string1) > 0) {
$string3, $flags11 = substring($string1, 0, 1), setbit($flags11, 1);
}
def_int $int12 = 0;
def_int $int13 = 0;
def_int $int14 = 0;
def_int $int15 = 0;
def_int $int16 = 0;
def_int $int17 = 0;
def_string $string4 = $string0;
def_string $string5 = $string1;
switch_int ($int2) {
case 3 :
cc_settext("<col=ffffff><$string2></col> <col=8f8f8f>v</col> <$string3>");
case 4 :
cc_settext("<$string2> <col=8f8f8f>v</col> <col=ffffff><$string3></col>");
case 2 :
cc_settext("<$string2> <col=8f8f8f>v</col> <$string3>");
if ($flags11 = 3 & $coord4 ! null) {
$int12, $int13 = coordx($coord4), coordz($coord4);
$int14, $int15 = calc($int12 / 100), calc($int12 % 100);
$int16, $int17 = calc($int13 / 100), calc($int13 % 100);
$int15, $int17 = ~max(1, $int15), ~max(1, $int17);
.cc_create($component5, ^iftype_rectangle, $int6);
$int6 = calc($int6 + 1);
.cc_setposition(0, 2, ^setpos_abs_centre, ^setpos_abs_top);
.cc_setsize(4, 4, ^setsize_minus, ^setsize_abs);
.cc_setfill(true);
.cc_setcolour(^black);
.cc_create($component5, ^iftype_rectangle, $int6);
$int6 = calc($int6 + 1);
.cc_setposition(2, 2, ^setpos_abs_left, ^setpos_abs_top);
.cc_setsize(scale(~min($int15, $int14), $int15, calc(if_getwidth($component5) - 4)), 4, ^setsize_abs, ^setsize_abs);
.cc_setfill(true);
.cc_setcolour(^red);
.cc_create($component5, ^iftype_rectangle, $int6);
$int6 = calc($int6 + 1);
.cc_setposition(0, 2, ^setpos_abs_centre, ^setpos_abs_bottom);
.cc_setsize(4, 4, ^setsize_minus, ^setsize_abs);
.cc_setfill(true);
.cc_setcolour(^black);
.cc_create($component5, ^iftype_rectangle, $int6);
$int6 = calc($int6 + 1);
.cc_setposition(2, 2, ^setpos_abs_left, ^setpos_abs_bottom);
.cc_setsize(scale(~min($int17, $int16), $int17, calc(if_getwidth($component5) - 4)), 4, ^setsize_abs, ^setsize_abs);
.cc_setfill(true);
.cc_setcolour(^red);
$string4 = "<$string0> (<tostring($int14)>/<tostring($int15)>)";
$string5 = "<$string1> (<tostring($int16)>/<tostring($int17)>)";
}
case default :
cc_settext("<$string2> <col=8f8f8f>v</col> <$string3>");
}
if_setonop("pvpa_1v1_info_expanddata(event_op, event_com, $comsubid10, $trans7, $trans8, $trans9, $string4, $string5, $int2)", $component5);