-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path[proc,telenexus_show_cost].cs2
138 lines (138 loc) · 5.56 KB
/
[proc,telenexus_show_cost].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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
// 2655
[proc,telenexus_show_cost](component $component0, struct $struct1, int $int2, component $component3, int $count4)
cc_deleteall($component0);
if_sethide(false, $component0);
def_namedobj $namedobj5 = struct_param($struct1, param_664);
def_int $num6 = struct_param($struct1, param_668);
def_namedobj $namedobj7 = struct_param($struct1, param_665);
def_int $num8 = struct_param($struct1, param_669);
def_namedobj $namedobj9 = struct_param($struct1, param_666);
def_int $num10 = struct_param($struct1, param_670);
def_namedobj $namedobj11 = struct_param($struct1, param_667);
def_int $num12 = struct_param($struct1, param_671);
def_stat $stat13 = struct_param($struct1, param_672);
def_int $int14 = struct_param($struct1, param_673);
def_int $int15 = 0;
def_int $int16 = 0;
if (cc_find($component3, 0) = ^true) {
cc_setposition(0, $int2, ^setpos_abs_left, ^setpos_abs_top);
cc_sethide(false);
}
cc_create($component0, ^iftype_rectangle, $int15);
$int15 = calc($int15 + 1);
cc_setfill(true);
cc_setcolour(^black);
cc_setsize(0, 0, ^setsize_minus, ^setsize_minus);
cc_setposition(0, 0, ^setpos_abs_left, ^setpos_abs_top);
cc_create($component0, ^iftype_rectangle, $int15);
$int15 = calc($int15 + 1);
cc_setfill(false);
cc_setcolour(0xff981f);
cc_setsize(2, 2, ^setsize_minus, ^setsize_minus);
cc_setposition(1, 1, ^setpos_abs_left, ^setpos_abs_top);
if ($namedobj5 ! null) {
cc_create($component0, ^iftype_graphic, $int15);
$int15 = calc($int15 + 1);
cc_setsize(36, 32, ^setsize_abs, ^setsize_abs);
cc_setposition(10, 30, ^setpos_abs_left, ^setpos_abs_top);
cc_setobject(oc_uncert($namedobj5), $num6);
cc_setop(1, "Examine");
cc_setonop("telenexus_examine_cost($namedobj5)");
.cc_create($component0, ^iftype_graphic, $int15);
$int15 = calc($int15 + 1);
$int16 = calc($int16 + 50);
.cc_setposition(calc(cc_getx + 36 - 15), calc(cc_gety + 32 - 15), ^setpos_abs_left, ^setpos_abs_top);
if (calc(inv_total(inv, $namedobj5) - inv_total(inv_619, $namedobj5)) >= $num6) {
.cc_setsize(17, 17, ^setsize_abs, ^setsize_abs);
.cc_setgraphic(tick);
} else {
.cc_setsize(16, 16, ^setsize_abs, ^setsize_abs);
.cc_setgraphic("clickcross,4");
}
}
if ($namedobj7 ! null) {
cc_create($component0, ^iftype_graphic, $int15);
$int15 = calc($int15 + 1);
cc_setsize(36, 32, ^setsize_abs, ^setsize_abs);
cc_setposition(50, 30, ^setpos_abs_left, ^setpos_abs_top);
cc_setobject(oc_uncert($namedobj7), $num8);
cc_setop(1, "Examine");
cc_setonop("telenexus_examine_cost($namedobj7)");
.cc_create($component0, ^iftype_graphic, $int15);
$int15 = calc($int15 + 1);
$int16 = calc($int16 + 50);
.cc_setposition(calc(cc_getx + 36 - 15), calc(cc_gety + 32 - 15), ^setpos_abs_left, ^setpos_abs_top);
if (calc(inv_total(inv, $namedobj7) - inv_total(inv_619, $namedobj7)) >= $num8) {
.cc_setsize(17, 17, ^setsize_abs, ^setsize_abs);
.cc_setgraphic(tick);
} else {
.cc_setsize(16, 16, ^setsize_abs, ^setsize_abs);
.cc_setgraphic("clickcross,4");
}
}
if ($namedobj9 ! null) {
cc_create($component0, ^iftype_graphic, $int15);
$int15 = calc($int15 + 1);
cc_setsize(36, 32, ^setsize_abs, ^setsize_abs);
cc_setposition(90, 30, ^setpos_abs_left, ^setpos_abs_top);
cc_setobject(oc_uncert($namedobj9), $num10);
cc_setop(1, "Examine");
cc_setonop("telenexus_examine_cost($namedobj9)");
.cc_create($component0, ^iftype_graphic, $int15);
$int15 = calc($int15 + 1);
$int16 = calc($int16 + 50);
.cc_setposition(calc(cc_getx + 36 - 15), calc(cc_gety + 32 - 15), ^setpos_abs_left, ^setpos_abs_top);
if (calc(inv_total(inv, $namedobj9) - inv_total(inv_619, $namedobj9)) >= $num10) {
.cc_setsize(17, 17, ^setsize_abs, ^setsize_abs);
.cc_setgraphic(tick);
} else {
.cc_setsize(16, 16, ^setsize_abs, ^setsize_abs);
.cc_setgraphic("clickcross,4");
}
}
if ($namedobj11 ! null) {
cc_create($component0, ^iftype_graphic, $int15);
$int15 = calc($int15 + 1);
cc_setsize(36, 32, ^setsize_abs, ^setsize_abs);
cc_setposition(130, 30, ^setpos_abs_left, ^setpos_abs_top);
cc_setobject(oc_uncert($namedobj11), $num12);
cc_setop(1, "Examine");
cc_setonop("telenexus_examine_cost($namedobj11)");
.cc_create($component0, ^iftype_graphic, $int15);
$int15 = calc($int15 + 1);
$int16 = calc($int16 + 50);
.cc_setposition(calc(cc_getx + 36 - 15), calc(cc_gety + 32 - 15), ^setpos_abs_left, ^setpos_abs_top);
if (calc(inv_total(inv, $namedobj11) - inv_total(inv_619, $namedobj11)) >= $num12) {
.cc_setsize(17, 17, ^setsize_abs, ^setsize_abs);
.cc_setgraphic(tick);
} else {
.cc_setsize(16, 16, ^setsize_abs, ^setsize_abs);
.cc_setgraphic("clickcross,4");
}
}
cc_create($component0, ^iftype_text, $int15);
$int15 = calc($int15 + 1);
cc_settextfont(p12_full);
cc_settextalign(^settextalign_centre, ^settextalign_top, 0);
cc_settextshadow(true);
cc_settext(struct_param($struct1, param_660));
cc_setcolour(0xff981f);
cc_setsize(10, 10, ^setsize_minus, ^setsize_minus);
cc_setposition(5, 5, ^setpos_abs_left, ^setpos_abs_top);
cc_create($component0, ^iftype_text, $int15);
$int15 = calc($int15 + 1);
def_string $string0 = "";
def_int $int17 = 0;
$int17, $string0 = ~script2664($struct1);
$int16 = ~max(150, $int16);
def_int $int18 = calc(70 + 15 * paraheight($string0, $int16, p12_full));
if_setsize($int16, $int18, ^setsize_abs, ^setsize_abs, $component0);
cc_setsize(10, 75, ^setsize_minus, ^setsize_abs);
cc_setposition(5, 5, ^setpos_abs_left, ^setpos_abs_bottom);
cc_settextfont(p12_full);
cc_settextalign(^settextalign_centre, ^settextalign_bottom, 15);
cc_settextshadow(true);
cc_settext($string0);
$int2 = ~min($int2, calc(if_getheight(if_getlayer($component0)) - $int18));
if_setposition(0, $int2, ^setpos_abs_left, ^setpos_abs_top, $component0);
if_sethide(false, $component0);