-
Notifications
You must be signed in to change notification settings - Fork 11
/
[clientscript,trade_main_init].cs2
67 lines (67 loc) · 1.95 KB
/
[clientscript,trade_main_init].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
// 755
[clientscript,trade_main_init](component $component0, component $component1, component $component2, component $component3, component $component4)
%varcint12 = 0;
%varcint13 = 0;
%varcint14 = 0;
%varcint15 = 0;
%varcint16 = 0;
%varcint17 = 0;
%varcint18 = 0;
%varcint19 = 0;
%varcint20 = 0;
%varcint21 = 0;
%varcint22 = 0;
%varcint23 = 0;
%varcint24 = 0;
%varcint25 = 0;
%varcint26 = 0;
%varcint27 = 0;
%varcint28 = 0;
%varcint29 = 0;
%varcint30 = 0;
%varcint31 = 0;
%varcint32 = 0;
%varcint33 = 0;
%varcint34 = 0;
%varcint35 = 0;
%varcint36 = 0;
%varcint37 = 0;
%varcint38 = 0;
%varcint39 = 0;
def_int $size5 = inv_size(inv_90);
cc_deleteall($component1);
cc_deleteall($component3);
def_int $size6 = 0;
while ($size6 < $size5) {
cc_create($component1, ^iftype_graphic, $size6);
.cc_create($component3, ^iftype_graphic, $size6);
cc_setsize(36, 32, ^setsize_abs, ^setsize_abs);
.cc_setsize(36, 32, ^setsize_abs, ^setsize_abs);
cc_setgraphicshadow(0x333333);
.cc_setgraphicshadow(0x333333);
cc_setoutline(1);
.cc_setoutline(1);
cc_sethide(true);
.cc_sethide(true);
$size6 = calc($size6 + 1);
}
def_int $comsubid7 = 0;
$size6 = 0;
while ($size6 < $size5) {
$comsubid7 = calc($size5 + $size6);
cc_create($component1, ^iftype_graphic, $comsubid7);
.cc_create($component3, ^iftype_graphic, $comsubid7);
cc_setgraphic("exclamation_mark");
.cc_setgraphic("exclamation_mark");
cc_setsize(10, 32, ^setsize_abs, ^setsize_abs);
.cc_setsize(10, 32, ^setsize_abs, ^setsize_abs);
cc_sethide(false);
.cc_sethide(false);
cc_settrans(255);
.cc_settrans(255);
$size6 = calc($size6 + 1);
}
def_int $int8 = calc((36 - 10) / 2);
~trade_main_drawitems($size5, $int8, $component1, $component2, $component3, $component4);
if_setoninvtransmit("trade_main_drawitems($size5, $int8, $component1, $component2, $component3, $component4){inv_90}", $component0);
if_setonvartransmit("trade_main_drawitems($size5, $int8, $component1, $component2, $component3, $component4){var1042}", $component0);