-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path[proc,shop_main_update].cs2
60 lines (60 loc) · 1.64 KB
/
[proc,shop_main_update].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
// 1076
[proc,shop_main_update](component $component0, int $size1, inv $inv2, obj $obj3, int $int4)
def_obj $obj5 = null;
def_int $int6 = -1;
def_int $size7 = 0;
while ($size7 < $size1) {
if (cc_find($component0, calc($size7 + 1)) = ^true) {
$obj5 = inv_getobj($inv2, $size7);
if ($obj5 ! null) {
cc_sethide(false);
cc_setobject($obj5, inv_getnum($inv2, $size7));
if (~on_mobile = true & %varbit6348 > 0) {
cc_setop(1, ~script2228);
cc_setop(6, "Value");
} else {
cc_setop(1, "Value");
cc_setop(6, "");
}
if ($obj5 = $obj3) {
if ($int4 > 1 & $int4 ! 5 & $int4 ! 10) {
cc_setop(9, "Buy <tostring($int4)>");
} else {
cc_setop(9, "");
}
if (.cc_find(interface_300:16, 0) = ^true) {
.cc_setsize(34, 34, ^setsize_abs, ^setsize_abs);
.cc_setposition(cc_getx, cc_gety, ^setpos_abs_left, ^setpos_abs_top);
.cc_setgraphic("prayerglow");
.cc_settrans(180);
}
} else {
cc_setop(9, "");
}
cc_setopbase("<col=ff9040><oc_name($obj5)></col>");
$int6 = cc_gety;
} else {
cc_sethide(true);
cc_setobject_nonum(obj_6512, 1);
cc_setopbase("");
cc_settrans(0);
cc_setontimer(null);
}
}
$size7 = calc($size7 + 1);
}
if ($int6 ! -1) {
$int6 = calc($int6 + 32);
} else {
$int6 = 0;
}
if ($int6 > if_getheight($component0)) {
if_setscrollsize(0, $int6, $component0);
~scrollbar_resize(interface_300:17, $component0, if_getscrolly($component0));
if_sethide(false, interface_300:17);
} else {
if_setscrollpos(0, 0, interface_300:16);
if_setscrollsize(0, 0, interface_300:16);
~scrollbar_resize(interface_300:17, $component0, 0);
if_sethide(true, interface_300:17);
}