-
Notifications
You must be signed in to change notification settings - Fork 11
/
[proc,script842].cs2
33 lines (33 loc) · 1.75 KB
/
[proc,script842].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
// 842
[proc,script842](int $int0, component $component1, component $component2, component $component3, component $component4, int $y5, component $component6, component $component7)
cc_deleteall($component1);
def_int $int8 = 0;
def_int $height9 = 10;
def_int $int10 = 2;
def_int $width11 = if_getwidth($component1);
def_int $int12 = calc((if_getwidth($component1) - 2) / 2);
def_int $count13 = 0;
def_int $count14 = enum_getoutputcount(enum_3553);
while ($count13 < $count14) {
$int8 = ~soul_wars_rewards_drawitem($count13, enum_3553, enum_3540, $height9, $int10, $int12, 2, $component1, $component2, $component3, $int8, $int0, $component6, $component7);
$count13 = calc($count13 + 1);
$int10 = calc($int10 + $int12);
if (calc($int10 + $int12) > $width11 & $count13 < $count14) {
$int10 = 2;
$height9 = calc($height9 + 32 + 10);
}
}
~scrollbar_vertical($component4, $component1, "scrollbar_dragger_v2,3", "scrollbar_dragger_v2,0", "scrollbar_dragger_v2,1", "scrollbar_dragger_v2,2", "scrollbar_v2,0", "scrollbar_v2,1");
$height9 = calc($height9 + 32 + 10);
if ($height9 >= if_getheight($component1)) {
if_setscrollsize(0, $height9, $component1);
} else {
if_setscrollsize(0, 0, $component1);
}
if_setscrollpos(0, $y5, $component1);
~scrollbar_vertical_rebuild($component4, $component1);
~soul_wars_rewards_drawconfirm($int0, $component1, $component2, $component3, enum_3553, 2, $component6, $component7);
if_setonvartransmit("script676(-1, $component1, $component2, $component3, $component4, $component6, $component7){var2876}", $component1);
if_setonvartransmit(null, $component6);
if_setonvartransmit(null, $component7);
if_setonvartransmit("soul_wars_rewards_drawconfirm($int0, $component1, $component2, $component3, enum_3553, 2, $component6, $component7){var2971}", $component2);