-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path[proc,soul_wars_rewards_drawconfirm].cs2
39 lines (39 loc) · 1.51 KB
/
[proc,soul_wars_rewards_drawconfirm].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
// 847
[proc,soul_wars_rewards_drawconfirm](int $int0, component $component1, component $component2, component $component3, enum $enum4, int $int5, component $component6, component $component7)
def_string $text0 = "";
cc_deleteall($component2);
def_int $int8 = 0;
if ($int0 ! -1) {
if ($enum4 = enum_3537) {
$text0 = ~script4124($enum4, $int0);
} else {
$text0 = oc_name(enum(int, namedobj, $enum4, $int0));
}
~soul_wars_rewards_confirmtext(false, $text0, $component3);
while ($int8 < $int0) {
cc_create($component2, ^iftype_rectangle, $int8);
cc_sethide(true);
$int8 = calc($int8 + 1);
}
cc_create($component2, ^iftype_rectangle, $int8);
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_setopbase("<col=ff9040><$text0></col>");
if (~on_mobile = false) {
cc_setonmouserepeat("script848(true, $text0, $component3)");
cc_setonmouseleave("script848(false, $text0, $component3)");
}
cc_setonop("soul_wars_rewards_confirmop(event_opindex, $component1, $component2, $component3, $int5, $component6, $component7)");
} else {
$int8 = ~v2_stone_button_in_filled($component3);
cc_create($component3, ^iftype_text, $int8);
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("Select an option");
}