-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path[proc,script3527].cs2
52 lines (52 loc) · 2.65 KB
/
[proc,script3527].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
// 3527
[proc,script3527](int $int0, component $component1, component $component2, component $component3, component $component4)(int)
if_setonvartransmit("script3526($int0, $component1, $component2, $component3, $component4){var261}", $component1);
if_setoninvtransmit("script3526($int0, $component1, $component2, $component3, $component4){inv_247}", $component1);
cc_deleteall($component2);
def_int $int5 = 0;
def_int $int6 = 3;
def_int $int7 = calc(if_getwidth($component2) / 2);
$int5 = ~script3528(5, $int6, 0, $int7, $component1, $component2, $component3, $component4, $int5, $int0);
$int5 = ~script3528(6, $int6, $int7, $int7, $component1, $component2, $component3, $component4, $int5, $int0);
$int6 = calc($int6 + 32 + 3);
$int5 = ~script3528(4, $int6, 0, $int7, $component1, $component2, $component3, $component4, $int5, $int0);
$int5 = ~script3528(7, $int6, $int7, $int7, $component1, $component2, $component3, $component4, $int5, $int0);
$int6 = calc($int6 + 32);
$int6, $int5 = ~pest_rewards_divider(5, $component2, $int6, $int5);
$int5 = ~script3528(1, $int6, 0, $int7, $component1, $component2, $component3, $component4, $int5, $int0);
$int5 = ~script3528(0, $int6, $int7, $int7, $component1, $component2, $component3, $component4, $int5, $int0);
$int6 = calc($int6 + 32 + 3);
$int5 = ~script3528(2, $int6, 0, $int7, $component1, $component2, $component3, $component4, $int5, $int0);
$int5 = ~script3528(3, $int6, $int7, $int7, $component1, $component2, $component3, $component4, $int5, $int0);
$int6 = calc($int6 + 32 + 5);
def_string $text0 = "";
cc_deleteall($component3);
$int5 = 0;
if ($int0 ! -1) {
$text0 = enum(int, string, enum_2646, $int0);
~pest_rewards_confirmdraw(false, $text0, $component4);
while ($int5 < $int0) {
cc_create($component3, ^iftype_rectangle, $int5);
cc_sethide(true);
$int5 = calc($int5 + 1);
}
cc_create($component3, ^iftype_rectangle, $int5);
cc_sethide(false);
cc_setsize(0, 0, ^setsize_minus, ^setsize_minus);
cc_setposition(0, 0, ^setpos_abs_centre, ^setpos_abs_centre);
cc_setop(1, "Confirm");
cc_setonmouserepeat("pest_rewards_confirmdraw(true, $text0, $component4)");
cc_setonmouseleave("pest_rewards_confirmdraw(false, $text0, $component4)");
cc_setonop("script3525(event_opindex, $component1, $component2, $component3, $component4)");
} else {
$int5 = ~v2_stone_button_in_filled($component4);
cc_create($component4, ^iftype_text, $int5);
cc_setsize(0, 0, ^setsize_minus, ^setsize_minus);
cc_setposition(0, 0, ^setpos_abs_centre, ^setpos_abs_centre);
cc_setcolour(0x7f7f7f);
cc_settextalign(^settextalign_centre, ^settextalign_centre, 0);
cc_settextfont(p12_full);
cc_settextshadow(false);
cc_settext("Confirm");
}
return($int6);