-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path[proc,ge_collect_drawslot].cs2
60 lines (60 loc) · 2.29 KB
/
[proc,ge_collect_drawslot].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
// 791
[proc,ge_collect_drawslot](component $component0, int $int1, component $component2, int $int3, inv $inv4, int $comsubid5, int $comsubid6, int $comsubid7, int $comsubid8, int $comsubid9, int $comsubid10, int $comsubid11)
if (cc_find($component0, $comsubid7) = ^true) {
~ge_collect_drawitem(0, $inv4, $component0, $comsubid5);
}
if (cc_find($component0, $comsubid8) = ^true) {
~ge_collect_drawitem(1, $inv4, $component0, $comsubid6);
}
def_obj $obj12 = null;
def_int $int13 = 0;
def_int $int14 = 0;
def_string $string0 = "";
def_string $string1 = ",";
if (stockmarket_isofferempty($int1) = true) {
if (cc_find($component0, $comsubid10) = ^true) {
cc_sethide(true);
}
if (cc_find($component0, $comsubid11) = ^true) {
cc_sethide(true);
}
if (cc_find($component0, $comsubid9) = ^true) {
cc_sethide(true);
cc_setsize(0, cc_getheight, ^setsize_abs, ^setsize_abs);
}
if_setonmouserepeat(null, $component0);
} else {
$obj12, $int13 = stockmarket_getofferitem($int1), stockmarket_getoffercount($int1);
$int14 = stockmarket_getoffercompletedcount($int1);
if (stockmarket_getoffertype($int1) = 1) {
if (cc_find($component0, $comsubid10) = ^true) {
cc_sethide(false);
cc_setgraphic("ge_smallicons,7");
}
if (stockmarket_isofferfinished($int1) = true) {
$string0 = "Sold: <oc_name($obj12)><br><~tostring_spacer($int14, $string1)> / <~tostring_spacer($int13, $string1)>";
} else {
$string0 = "Selling: <oc_name($obj12)><br><~tostring_spacer($int14, $string1)> / <~tostring_spacer($int13, $string1)>";
}
} else {
if (cc_find($component0, $comsubid10) = ^true) {
cc_sethide(false);
cc_setgraphic("ge_smallicons,6");
}
if (stockmarket_isofferfinished($int1) = true) {
$string0 = "Bought: <oc_name($obj12)><br><~tostring_spacer($int14, $string1)> / <~tostring_spacer($int13, $string1)>";
} else {
$string0 = "Buying: <oc_name($obj12)><br><~tostring_spacer($int14, $string1)> / <~tostring_spacer($int13, $string1)>";
}
}
if_setonmouserepeat("tooltip_mouserepeat($component0, -1, $component2, $string0, 25, 512)", $component0);
if (cc_find($component0, $comsubid11) = ^true) {
cc_sethide(false);
cc_setobject($obj12, $int13);
}
if (cc_find($component0, $comsubid9) = ^true) {
cc_sethide(false);
~script812($int1, $int13, $int14, 0, $int3);
}
}
~deltooltip_action($component2);