-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path[proc,br_reward_shop_draw].cs2
153 lines (153 loc) · 11.6 KB
/
[proc,br_reward_shop_draw].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
// 3087
[proc,br_reward_shop_draw](int $int0, component $component1, component $component2, component $component3, component $component4)(int)
if_setonvartransmit("br_reward_shop_draw($int0, $component1, $component2, $component3, $component4){var261, var262, var1141}", $component1);
if_setoninvtransmit("br_reward_shop_draw($int0, $component1, $component2, $component3, $component4){inv_422}", $component1);
cc_deleteall($component2);
def_int $int5 = 0;
def_int $int6 = 3;
def_int $int7 = calc(if_getwidth($component2) / 2);
$int5 = ~br_reward_shop_itemdraw(0, $int6, 0, $int7, $component1, $component2, $component3, $component4, $int5, $int0);
$int5 = ~br_reward_shop_itemdraw(1, $int6, $int7, $int7, $component1, $component2, $component3, $component4, $int5, $int0);
$int6 = calc($int6 + 32 + 3);
$int5 = ~br_reward_shop_itemdraw(2, $int6, 0, $int7, $component1, $component2, $component3, $component4, $int5, $int0);
$int6 = calc($int6 + 32);
$int6, $int5 = ~pest_rewards_divider(5, $component2, $int6, $int5);
$int5 = ~br_reward_shop_itemdraw(16, $int6, 0, $int7, $component1, $component2, $component3, $component4, $int5, $int0);
$int5 = ~br_reward_shop_itemdraw(9, $int6, $int7, $int7, $component1, $component2, $component3, $component4, $int5, $int0);
$int6 = calc($int6 + 32 + 3);
$int5 = ~br_reward_shop_itemdraw(3, $int6, 0, $int7, $component1, $component2, $component3, $component4, $int5, $int0);
$int5 = ~br_reward_shop_itemdraw(17, $int6, $int7, $int7, $component1, $component2, $component3, $component4, $int5, $int0);
$int6 = calc($int6 + 32);
$int6, $int5 = ~pest_rewards_divider(5, $component2, $int6, $int5);
$int5 = ~br_reward_shop_itemdraw(23, $int6, 0, $int7, $component1, $component2, $component3, $component4, $int5, $int0);
$int5 = ~br_reward_shop_itemdraw(24, $int6, $int7, $int7, $component1, $component2, $component3, $component4, $int5, $int0);
$int6 = calc($int6 + 32 + 3);
$int5 = ~br_reward_shop_itemdraw(26, $int6, 0, $int7, $component1, $component2, $component3, $component4, $int5, $int0);
$int5 = ~br_reward_shop_itemdraw(27, $int6, $int7, $int7, $component1, $component2, $component3, $component4, $int5, $int0);
$int6 = calc($int6 + 32 + 3);
$int5 = ~br_reward_shop_itemdraw(28, $int6, 0, $int7, $component1, $component2, $component3, $component4, $int5, $int0);
$int5 = ~br_reward_shop_itemdraw(30, $int6, $int7, $int7, $component1, $component2, $component3, $component4, $int5, $int0);
$int6 = calc($int6 + 32 + 3);
$int5 = ~br_reward_shop_itemdraw(25, $int6, 0, $int7, $component1, $component2, $component3, $component4, $int5, $int0);
$int5 = ~br_reward_shop_itemdraw(29, $int6, $int7, $int7, $component1, $component2, $component3, $component4, $int5, $int0);
$int6 = calc($int6 + 32 + 3);
$int5 = ~br_reward_shop_itemdraw(31, $int6, 0, $int7, $component1, $component2, $component3, $component4, $int5, $int0);
$int5 = ~br_reward_shop_itemdraw(35, $int6, $int7, $int7, $component1, $component2, $component3, $component4, $int5, $int0);
$int6 = calc($int6 + 32 + 3);
$int5 = ~br_reward_shop_itemdraw(34, $int6, 0, $int7, $component1, $component2, $component3, $component4, $int5, $int0);
$int5 = ~br_reward_shop_itemdraw(32, $int6, $int7, $int7, $component1, $component2, $component3, $component4, $int5, $int0);
$int6 = calc($int6 + 32 + 3);
$int5 = ~br_reward_shop_itemdraw(33, $int6, 0, $int7, $component1, $component2, $component3, $component4, $int5, $int0);
$int5 = ~br_reward_shop_itemdraw(36, $int6, $int7, $int7, $component1, $component2, $component3, $component4, $int5, $int0);
$int6 = calc($int6 + 32 + 3);
$int5 = ~br_reward_shop_itemdraw(37, $int6, 0, $int7, $component1, $component2, $component3, $component4, $int5, $int0);
$int6 = calc($int6 + 32);
$int6, $int5 = ~pest_rewards_divider(5, $component2, $int6, $int5);
$int5 = ~br_reward_shop_itemdraw(38, $int6, 0, $int7, $component1, $component2, $component3, $component4, $int5, $int0);
$int5 = ~br_reward_shop_itemdraw(39, $int6, $int7, $int7, $component1, $component2, $component3, $component4, $int5, $int0);
$int6 = calc($int6 + 32 + 3);
$int5 = ~br_reward_shop_itemdraw(18, $int6, 0, $int7, $component1, $component2, $component3, $component4, $int5, $int0);
$int5 = ~br_reward_shop_itemdraw(19, $int6, $int7, $int7, $component1, $component2, $component3, $component4, $int5, $int0);
$int6 = calc($int6 + 32 + 3);
$int5 = ~br_reward_shop_itemdraw(20, $int6, 0, $int7, $component1, $component2, $component3, $component4, $int5, $int0);
$int5 = ~br_reward_shop_itemdraw(60, $int6, $int7, $int7, $component1, $component2, $component3, $component4, $int5, $int0);
$int6 = calc($int6 + 32 + 3);
$int5 = ~br_reward_shop_itemdraw(49, $int6, 0, $int7, $component1, $component2, $component3, $component4, $int5, $int0);
$int5 = ~br_reward_shop_itemdraw(21, $int6, $int7, $int7, $component1, $component2, $component3, $component4, $int5, $int0);
$int6 = calc($int6 + 32 + 3);
$int5 = ~br_reward_shop_itemdraw(50, $int6, 0, $int7, $component1, $component2, $component3, $component4, $int5, $int0);
$int5 = ~br_reward_shop_itemdraw(51, $int6, $int7, $int7, $component1, $component2, $component3, $component4, $int5, $int0);
$int6 = calc($int6 + 32 + 3);
$int5 = ~br_reward_shop_itemdraw(52, $int6, 0, $int7, $component1, $component2, $component3, $component4, $int5, $int0);
$int5 = ~br_reward_shop_itemdraw(53, $int6, $int7, $int7, $component1, $component2, $component3, $component4, $int5, $int0);
$int6 = calc($int6 + 32 + 3);
$int5 = ~br_reward_shop_itemdraw(54, $int6, 0, $int7, $component1, $component2, $component3, $component4, $int5, $int0);
$int5 = ~br_reward_shop_itemdraw(55, $int6, $int7, $int7, $component1, $component2, $component3, $component4, $int5, $int0);
$int6 = calc($int6 + 32 + 3);
$int5 = ~br_reward_shop_itemdraw(56, $int6, 0, $int7, $component1, $component2, $component3, $component4, $int5, $int0);
$int5 = ~br_reward_shop_itemdraw(57, $int6, $int7, $int7, $component1, $component2, $component3, $component4, $int5, $int0);
$int6 = calc($int6 + 32 + 3);
$int5 = ~br_reward_shop_itemdraw(58, $int6, 0, $int7, $component1, $component2, $component3, $component4, $int5, $int0);
$int5 = ~br_reward_shop_itemdraw(59, $int6, $int7, $int7, $component1, $component2, $component3, $component4, $int5, $int0);
$int6 = calc($int6 + 32 + 3);
$int5 = ~br_reward_shop_itemdraw(61, $int6, 0, $int7, $component1, $component2, $component3, $component4, $int5, $int0);
$int5 = ~br_reward_shop_itemdraw(62, $int6, $int7, $int7, $component1, $component2, $component3, $component4, $int5, $int0);
$int6 = calc($int6 + 32 + 3);
$int5 = ~br_reward_shop_itemdraw(64, $int6, 0, $int7, $component1, $component2, $component3, $component4, $int5, $int0);
$int5 = ~br_reward_shop_itemdraw(22, $int6, $int7, $int7, $component1, $component2, $component3, $component4, $int5, $int0);
$int6 = calc($int6 + 32 + 3);
$int5 = ~br_reward_shop_itemdraw(65, $int6, 0, $int7, $component1, $component2, $component3, $component4, $int5, $int0);
$int5 = ~br_reward_shop_itemdraw(63, $int6, $int7, $int7, $component1, $component2, $component3, $component4, $int5, $int0);
$int6 = calc($int6 + 32);
$int6, $int5 = ~pest_rewards_divider(5, $component2, $int6, $int5);
$int5 = ~br_reward_shop_itemdraw(10, $int6, 0, $int7, $component1, $component2, $component3, $component4, $int5, $int0);
$int5 = ~br_reward_shop_itemdraw(13, $int6, $int7, $int7, $component1, $component2, $component3, $component4, $int5, $int0);
$int6 = calc($int6 + 32 + 3);
$int5 = ~br_reward_shop_itemdraw(11, $int6, 0, $int7, $component1, $component2, $component3, $component4, $int5, $int0);
$int5 = ~br_reward_shop_itemdraw(14, $int6, $int7, $int7, $component1, $component2, $component3, $component4, $int5, $int0);
$int6 = calc($int6 + 32 + 3);
$int5 = ~br_reward_shop_itemdraw(12, $int6, 0, $int7, $component1, $component2, $component3, $component4, $int5, $int0);
$int5 = ~br_reward_shop_itemdraw(15, $int6, $int7, $int7, $component1, $component2, $component3, $component4, $int5, $int0);
$int6 = calc($int6 + 32);
$int6, $int5 = ~pest_rewards_divider(5, $component2, $int6, $int5);
$int5 = ~br_reward_shop_itemdraw(4, $int6, 0, $int7, $component1, $component2, $component3, $component4, $int5, $int0);
$int5 = ~br_reward_shop_itemdraw(5, $int6, $int7, $int7, $component1, $component2, $component3, $component4, $int5, $int0);
$int6 = calc($int6 + 32 + 3);
$int5 = ~br_reward_shop_itemdraw(6, $int6, 0, $int7, $component1, $component2, $component3, $component4, $int5, $int0);
$int5 = ~br_reward_shop_itemdraw(7, $int6, $int7, $int7, $component1, $component2, $component3, $component4, $int5, $int0);
$int6 = calc($int6 + 32 + 3);
$int5 = ~br_reward_shop_itemdraw(8, $int6, 0, $int7, $component1, $component2, $component3, $component4, $int5, $int0);
$int6 = calc($int6 + 32 + 5);
$int6, $int5 = ~pest_rewards_divider(5, $component2, $int6, $int5);
$int5 = ~br_reward_shop_itemdraw(40, $int6, 0, $int7, $component1, $component2, $component3, $component4, $int5, $int0);
$int5 = ~br_reward_shop_itemdraw(41, $int6, $int7, $int7, $component1, $component2, $component3, $component4, $int5, $int0);
$int6 = calc($int6 + 32 + 3);
$int5 = ~br_reward_shop_itemdraw(42, $int6, 0, $int7, $component1, $component2, $component3, $component4, $int5, $int0);
$int5 = ~br_reward_shop_itemdraw(43, $int6, $int7, $int7, $component1, $component2, $component3, $component4, $int5, $int0);
$int6 = calc($int6 + 32 + 3);
$int5 = ~br_reward_shop_itemdraw(44, $int6, 0, $int7, $component1, $component2, $component3, $component4, $int5, $int0);
$int5 = ~br_reward_shop_itemdraw(45, $int6, $int7, $int7, $component1, $component2, $component3, $component4, $int5, $int0);
$int6 = calc($int6 + 32 + 3);
$int5 = ~br_reward_shop_itemdraw(46, $int6, 0, $int7, $component1, $component2, $component3, $component4, $int5, $int0);
$int5 = ~br_reward_shop_itemdraw(47, $int6, $int7, $int7, $component1, $component2, $component3, $component4, $int5, $int0);
$int6 = calc($int6 + 32 + 3);
$int5 = ~br_reward_shop_itemdraw(48, $int6, 0, $int7, $component1, $component2, $component3, $component4, $int5, $int0);
$int6 = calc($int6 + 32 + 5);
$int6, $int5 = ~pest_rewards_divider(5, $component2, $int6, $int5);
$int5 = ~br_reward_shop_itemdraw(66, $int6, 0, $int7, $component1, $component2, $component3, $component4, $int5, $int0);
$int5 = ~br_reward_shop_itemdraw(67, $int6, $int7, $int7, $component1, $component2, $component3, $component4, $int5, $int0);
$int6 = calc($int6 + 32 + 3);
$int5 = ~br_reward_shop_itemdraw(68, $int6, 0, $int7, $component1, $component2, $component3, $component4, $int5, $int0);
$int5 = ~br_reward_shop_itemdraw(69, $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_2634, $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("br_reward_shop_confirmop(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);