-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path[proc,1v1arena_review_draw].cs2
65 lines (65 loc) · 2.26 KB
/
[proc,1v1arena_review_draw].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
// 2709
[proc,1v1arena_review_draw](component $component0)
def_component $component1 = null;
def_obj $obj2 = null;
def_int $size3 = 0;
def_int $size4 = inv_size(worn);
while ($size3 < $size4) {
$component1 = enum(int, component, enum_1379, $size3);
if ($component1 ! null) {
cc_deleteall($component1);
cc_create($component1, ^iftype_graphic, 0);
cc_setposition(0, 0, ^setpos_abs_centre, ^setpos_abs_centre);
cc_setsize(36, 36, ^setsize_abs, ^setsize_abs);
cc_setgraphic("miscgraphics,0");
cc_create($component1, ^iftype_graphic, 1);
$obj2 = inv_getobj(inv_207, $size3);
if ($obj2 ! null) {
cc_setsize(36, 32, ^setsize_abs, ^setsize_abs);
cc_setposition(2, 0, ^setpos_abs_centre, ^setpos_abs_centre);
cc_setgraphicshadow(0x333333);
if (enum(obj, boolean, enum_679, $obj2) = true) {
cc_setoutline(2);
} else {
cc_setoutline(1);
}
cc_setobject($obj2, inv_getnum(inv_207, $size3));
if_setopbase("<col=ff9040><oc_name($obj2)></col>", $component1);
if_setop(10, "Examine", $component1);
if_setonop("cc_settrans_temporarily(event_com, cc_getid, 100, 0)", $component1);
} else {
cc_setsize(32, 32, ^setsize_abs, ^setsize_abs);
cc_setposition(0, 0, ^setpos_abs_centre, ^setpos_abs_centre);
cc_setgraphic(enum(int, graphic, enum_904, $size3));
if_clearops($component1);
if_setonop(null, $component1);
}
}
$size3 = calc($size3 + 1);
}
cc_deleteall($component0);
def_int $int5 = calc((if_getwidth($component0) - 4 - 4 * 36) / 3 + 36);
def_int $int6 = calc((if_getheight($component0) - 4 - 7 * 32) / 6 + 32);
def_int $size7 = 0;
def_int $size8 = inv_size(inv);
while ($size7 < $size8) {
$obj2 = inv_getobj(inv_207, $size3);
cc_create($component0, ^iftype_graphic, $size7);
if ($obj2 ! null) {
cc_sethide(false);
cc_setposition(calc(2 + $int5 * ($size7 % 4)), calc(2 + $int6 * ($size7 / 4)), ^setpos_abs_left, ^setpos_abs_top);
cc_setsize(36, 32, ^setsize_abs, ^setsize_abs);
cc_setgraphicshadow(0x333333);
if (enum(obj, boolean, enum_679, $obj2) = true) {
cc_setoutline(2);
} else {
cc_setoutline(1);
}
cc_setobject($obj2, inv_getnum(inv_207, $size3));
cc_setopbase("<col=ff9040><oc_name($obj2)></col>");
cc_setop(10, "Examine");
} else {
cc_sethide(true);
}
$size7, $size3 = calc($size7 + 1), calc($size3 + 1);
}