-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path[clientscript,bondif_redeem_package_init].cs2
50 lines (50 loc) · 2.25 KB
/
[clientscript,bondif_redeem_package_init].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
// 2278
[clientscript,bondif_redeem_package_init](int $int0, int $num1, graphic $graphic2, int $int3, int $height4, string $string0, string $text1, string $string2)
if (if_hassub(enum(component, component, ~toplevel_getcomponents, interface_161:20)) = false) {
return;
}
def_component $component5 = enum(int, component, enum_1913, $int0);
if ($component5 = null) {
return;
}
if (string_length($string0) <= 0) {
if_sethide(true, $component5);
return;
}
%varcint179 = calc(%varcint179 + 1);
if_sethide(false, $component5);
cc_deleteall($component5);
if_clearops($component5);
def_int $int6 = 0;
if (string_length($string2) > 0) {
if_setop(2, ~script1299($string0, "<br>", " "), $component5);
if_setonop("bondif_redeem_package_op_disabled(removetags($string2))", $component5);
if_setonvartransmit(null, $component5);
if_setonmouserepeat(null, $component5);
if_setonmouseleave(null, $component5);
$int6 = ~v2_stone_button_in_filled($component5);
$int6 = ~bondif_redeem_package_details($component5, $int6, $string0, $num1, $graphic2, $int3, $height4, $text1);
cc_create($component5, ^iftype_graphic, $int6);
$int6 = calc($int6 + 1);
cc_setsize(2, 2, ^setsize_minus, ^setsize_minus);
cc_setposition(0, 0, ^setpos_abs_centre, ^setpos_abs_centre);
cc_setgraphic("tradebacking_dark");
cc_settiling(true);
cc_settrans(75);
cc_create($component5, ^iftype_text, $int6);
$int6 = calc($int6 + 1);
cc_setsize(0, 0, ^setsize_minus, ^setsize_minus);
cc_setposition(0, 0, ^setpos_abs_centre, ^setpos_abs_centre);
cc_setcolour(0xff981f);
cc_settextfont(b12_full);
cc_settextshadow(true);
cc_settextalign(^settextalign_centre, ^settextalign_centre, 0);
cc_settext($string2);
} else {
if_setop(1, ~script1299($string0, "<br>", " "), $component5);
~bondif_redeem_package_draw($int0, $component5, $string0, $num1, $graphic2, $int3, $height4, $text1);
if_setonvartransmit("bondif_redeem_package_draw($int0, $component5, $string0, $num1, $graphic2, $int3, $height4, $text1){var1204}", $component5);
if_setonop("bondif_redeem_package_op_permitted(event_opindex, $int0, $component5, $string0, $num1, $graphic2, $int3, $height4, $text1)", $component5);
}
if_setposition(0, %varcint179, ^setpos_abs_centre, ^setpos_abs_top, $component5);
%varcint179 = calc(%varcint179 + if_getheight($component5));