-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path[proc,seed_vault_build].cs2
233 lines (233 loc) · 8.07 KB
/
[proc,seed_vault_build].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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
// 2820
[proc,seed_vault_build](component $component0, component $component1, component $component2, component $component3, component $component4, component $component5, component $component6)
%varcint374 = clientclock;
cc_deleteall($component0);
cc_deleteall($component1);
cc_deleteall($component2);
cc_deleteall($component3);
cc_deleteall($component6);
def_int $int7 = enum_getoutputcount(enum_2304);
def_int $intarray0(calc($int7 + 1));
def_int $int8 = 0;
def_obj $obj9 = null;
def_int $int10 = 50;
def_int $int11 = 40;
while ($int8 < 90) {
$obj9 = inv_getobj(inv_626, $int8);
cc_create($component0, ^iftype_graphic, $int8);
cc_setsize(36, 32, ^setsize_abs, ^setsize_abs);
.cc_create($component1, ^iftype_text, $int8);
.cc_setsize($int10, 30, ^setsize_abs, ^setsize_abs);
if ($obj9 ! null & ~seed_vault_filteritem($obj9) = 1) {
cc_setop(10, "Examine");
cc_setopbase("<col=ff9040><oc_name($obj9)></col>");
cc_setgraphicshadow(0x333333);
cc_setoutline(1);
if (oc_unplaceholder($obj9) ! $obj9) {
cc_setobject($obj9, 0);
cc_settrans(120);
cc_setop(8, "Remove-Placeholder");
cc_setop(9, "Remove-All-Placeholders");
} else {
cc_setobject($obj9, inv_total(inv_626, $obj9));
if (%var2195 = ^max_32bit_int) {
cc_setop(1, "Withdraw-All");
} else if (%var2195 > 1) {
cc_setop(1, "Withdraw-<tostring(%var2195)>");
}
cc_setop(2, "Withdraw-1");
cc_setop(3, "Withdraw-5");
cc_setop(4, "Withdraw-10");
cc_setop(5, "Withdraw-X");
cc_setop(6, "Withdraw-All");
if (oc_stackable($obj9) = false & oc_cert($obj9) ! $obj9) {
cc_setop(8, "Withdraw-Notes");
}
}
.cc_setop(10, "Examine");
.cc_setopbase("<col=ff9040><oc_name($obj9)></col>");
.cc_settextfont(p11_full);
.cc_settextshadow(true);
.cc_setcolour(0xff981f);
.cc_settextalign(^settextalign_centre, ^settextalign_top, 0);
.cc_settext(oc_name($obj9));
if (oc_unplaceholder($obj9) ! $obj9) {
.cc_setop(8, "Remove-Placeholder");
.cc_setop(9, "Remove-All-Placeholders");
} else {
if (%var2195 = ^max_32bit_int) {
.cc_setop(1, "Withdraw-All");
} else if (%var2195 > 1) {
.cc_setop(1, "Withdraw-<tostring(%var2195)>");
}
.cc_setop(2, "Withdraw-1");
.cc_setop(3, "Withdraw-5");
.cc_setop(4, "Withdraw-10");
.cc_setop(5, "Withdraw-X");
.cc_setop(6, "Withdraw-All");
if (oc_stackable($obj9) = false & oc_cert($obj9) ! $obj9) {
.cc_setop(8, "Withdraw-Notes");
}
}
if (~seed_vault_searching = 0) {
if (~script2828($int8) ! -1) {
$intarray0(0) = calc($intarray0(0) + 1);
cc_setop(7, "Remove-Favourite");
.cc_setop(7, "Remove-Favourite");
} else {
$intarray0(oc_param(oc_unplaceholder($obj9), param_709)) = calc($intarray0(oc_param(oc_unplaceholder($obj9), param_709)) + 1);
if (~script2831 > 0) {
cc_setop(7, "Favourite");
.cc_setop(7, "Favourite");
} else {
cc_setop(7, "");
.cc_setop(7, "");
}
}
}
} else {
cc_sethide(true);
.cc_sethide(true);
cc_clearops;
.cc_clearops;
}
$int8 = calc($int8 + 1);
}
if (~seed_vault_searching = 0) {
$intarray0(0) = calc($intarray0(0) + 1);
}
def_int $int12 = 0;
def_int $int13 = 0;
def_int $int14 = 5;
def_int $int15 = 15;
def_int $int16 = 20;
if (~on_mobile = true) {
$int15 = 20;
$int16 = 25;
}
def_int $int17 = calc(if_getwidth($component4) / ($int10 + $int15));
def_int $intarray1(calc($int7 + 1));
if (~seed_vault_searching = 1) {
cc_create($component2, ^iftype_text, 0);
cc_setsize(5, 20, ^setsize_minus, ^setsize_abs);
cc_setposition(0, $int14, ^setpos_abs_left, ^setpos_abs_top);
cc_setcolour(0xff981f);
cc_settextfont(b12_full);
cc_settextshadow(true);
cc_settext("Search results: <lowercase(%varcstring359)>");
cc_setposition(5, $int14, ^setpos_abs_left, ^setpos_abs_top);
$int14 = calc(cc_gety + cc_getheight + 2);
.cc_create($component3, ^iftype_graphic, 0);
.cc_setgraphic("tradebacking_dark");
.cc_settiling(true);
.cc_setsize(4, 2, ^setsize_minus, ^setsize_abs);
.cc_setposition(2, $int14, ^setpos_abs_left, ^setpos_abs_top);
$intarray1(0) = calc($int14 + 15);
} else {
while ($int12 <= $int7) {
$int13 = enum(int, int, enum_2304, $int12);
cc_create($component2, ^iftype_text, $int12);
cc_setsize(5, 20, ^setsize_minus, ^setsize_abs);
cc_setposition(0, $int14, ^setpos_abs_left, ^setpos_abs_top);
cc_setcolour(0xff981f);
cc_settextfont(b12_full);
cc_settextshadow(true);
cc_settext(enum(int, string, enum_2305, $int13));
cc_setposition(5, $int14, ^setpos_abs_left, ^setpos_abs_top);
$int14 = calc(cc_gety + cc_getheight + 2);
.cc_create($component3, ^iftype_graphic, $int12);
.cc_setgraphic("tradebacking_dark");
.cc_settiling(true);
.cc_setsize(4, 2, ^setsize_minus, ^setsize_abs);
.cc_setposition(2, $int14, ^setpos_abs_left, ^setpos_abs_top);
$intarray1($int12) = calc($int14 + 15);
$int14 = calc($int14 + (1 + ($intarray0($int12) - 1) / $int17) * ($int16 + 32 + $int11));
$int12 = calc($int12 + 1);
}
}
$int8 = 0;
def_int $intarray2(calc($int7 + 1));
def_int $int18 = 0;
$int14 = 0;
def_int $index19 = -1;
while ($int8 < 90) {
$obj9 = inv_getobj(inv_626, $int8);
if ($obj9 ! null & ~seed_vault_filteritem($obj9) = 1) {
$index19 = oc_param(oc_unplaceholder($obj9), param_709);
if (~seed_vault_searching = 1 & ~seed_vault_filteritem($obj9) = 1) {
$index19 = 0;
} else if (~script2828($int8) ! -1) {
$index19 = 0;
}
$int18 = $intarray2($index19);
$int14 = $intarray1($index19);
if (cc_find($component0, $int8) = ^true & .cc_find($component1, $int8) = ^true) {
cc_setposition(calc($int18 + $int15 / 2 + ($int10 - 36) / 2), $int14, ^setpos_abs_left, ^setpos_abs_top);
.cc_setposition(calc($int18 + $int15 / 2), calc($int14 + 32), ^setpos_abs_left, ^setpos_abs_top);
if (~seed_vault_searching = 0) {
cc_setdragdeadtime(5);
cc_setdragdeadzone(5);
cc_setondrag("seed_vault_drag_obj($component0, $component1, $int8, event_mousex, event_mousey, $component4, $component5, %varcint374)");
.cc_setondrag("seed_vault_drag_text($component0, $component1, $int8, event_mousex, event_mousey, $component4, $component5, %varcint374)");
.cc_setdragdeadtime(5);
.cc_setdragdeadzone(5);
cc_setondragcomplete("seed_vault_drop($component0, $component1, event_comsubid, event_dropsubid, cc_getx, cc_gety)");
.cc_setondragcomplete("seed_vault_drop($component0, $component1, event_comsubid, event_dropsubid, cc_getx, cc_gety)");
} else {
cc_setdragdeadtime(10000);
cc_setdragdeadzone(10000);
.cc_setdragdeadtime(10000);
.cc_setdragdeadzone(10000);
cc_setondrag(null);
.cc_setondrag(null);
cc_setondragcomplete(null);
.cc_setondragcomplete(null);
}
$int18 = calc($int18 + $int15 + $int10);
}
if (calc($int18 + $int15 + $int10) > if_getwidth($component0)) {
$int18 = 0;
$intarray1($index19) = calc($int14 + $int16 + 32 + $int11);
}
$intarray2($index19) = $int18;
}
$int8 = calc($int8 + 1);
}
if (~seed_vault_searching = 0) {
cc_create($component0, ^iftype_graphic, $int8);
cc_setsize(36, 32, ^setsize_abs, ^setsize_abs);
cc_setobject_nonum(kelda_seed_5_6117, 0);
cc_settrans(120);
.cc_create($component1, ^iftype_text, $int8);
.cc_setsize($int10, 30, ^setsize_abs, ^setsize_abs);
if (~script2831 > 7) {
.cc_settext("Add Favourites");
} else if (~script2831 > 0) {
.cc_settext("Add/Remove Favourites");
} else {
.cc_settext("Remove Favourites");
}
.cc_settextfont(p11_full);
.cc_settextshadow(true);
.cc_setcolour(0xff981f);
.cc_settextalign(^settextalign_centre, ^settextalign_top, 0);
$int18 = $intarray2(0);
$int14 = $intarray1(0);
cc_setposition(calc($int18 + $int15 / 2 + ($int10 - 36) / 2), $int14, ^setpos_abs_left, ^setpos_abs_top);
.cc_setposition(calc($int18 + $int15 / 2), calc($int14 + 32), ^setpos_abs_left, ^setpos_abs_top);
} else {
$int7 = 0;
}
~scrollbar_vertical_rebuild($component5, $component4);
def_int $int20 = 0;
def_int $height21 = calc($intarray1($int7) + $int16 + 32 + $int11);
if ($height21 > if_getheight($component4)) {
if (%varcint376 > 0) {
$int20 = %varcint376;
}
if_setscrollsize(0, $height21, $component4);
~scrollbar_resize($component5, $component4, $int20);
} else {
if_setscrollsize(0, 0, $component4);
~scrollbar_resize($component5, $component4, 0);
}