-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path[proc,script2833].cs2
77 lines (77 loc) · 2.68 KB
/
[proc,script2833].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
// 2833
[proc,script2833]
def_int $int0 = 5;
def_int $comsubid1 = 0;
def_int $count2 = 0;
def_int $count3 = enum_getoutputcount(enum_2320);
def_struct $struct4 = null;
def_component $component5 = null;
def_string $string0 = "";
def_int $int6 = 0;
def_int $y7 = -1;
def_boolean $boolean8 = null;
def_int $int9 = ~on_ios;
while ($count2 < $count3) {
if (~league_world = 1) {
$struct4 = enum(int, struct, enum_4106, $count2);
} else {
$struct4 = enum(int, struct, enum_2320, $count2);
}
$component5 = enum(int, component, enum_2321, $count2);
$boolean8 = struct_param($struct4, param_925);
if ($struct4 = struct_3770) {
if ($int9 = 0) {
$boolean8 = true;
} else if (%varcint228 = true) {
$boolean8 = true;
}
} else if ($int9 = 0) {
$boolean8 = false;
}
if ($boolean8 = false) {
if_sethide(false, $component5);
$string0 = struct_param($struct4, param_729);
$comsubid1 = ~options_button_off($component5, 0);
if_setsize(84, 30, ^setsize_abs, ^setsize_abs, $component5);
$y7 = calc($int0 + $int6 / 2 * 36 + $int6 / 2 * 2);
if (calc($int6 % 2) = 0) {
if (calc($int6 + 1) = $count3) {
if_setposition(0, $y7, ^setpos_abs_centre, ^setpos_abs_top, $component5);
} else {
if_setposition(3, $y7, ^setpos_abs_left, ^setpos_abs_top, $component5);
}
} else {
if_setposition(3, $y7, ^setpos_abs_right, ^setpos_abs_top, $component5);
}
cc_create($component5, ^iftype_text, $comsubid1);
cc_settext($string0);
cc_setcolour(0xf7f0df);
cc_settextshadow(true);
cc_settextfont(p11_full);
cc_setsize(0, 0, ^setsize_minus, ^setsize_minus);
cc_settextalign(^settextalign_centre, ^settextalign_centre, 0);
cc_setposition(0, 0, ^setpos_abs_centre, ^setpos_abs_centre);
cc_setonmouseover("cc_colour_swapper(event_com, event_comsubid, 0xc0c0c0)");
cc_setonmouseleave("cc_colour_swapper(event_com, event_comsubid, 0xf7f0df)");
$string0 = ~string_findandreplace($string0, "<br>", " ");
if_setop(1, "Open", $component5);
if_setopbase("<col=ff9040><$string0></col>", $component5);
if_setonop("opsound(event_op, 2)", $component5);
$int6 = calc($int6 + 1);
}
$count2 = calc($count2 + 1);
}
if ($int6 <= 0) {
$component5 = enum(int, component, enum_2321, 0);
if_sethide(false, $component5);
if_setsize(0, 40, ^setsize_minus, ^setsize_abs, $component5);
if_setposition(0, 0, ^setpos_abs_left, ^setpos_abs_top, $component5);
cc_create($component5, ^iftype_text, 0);
cc_settext("There are currently no useful links available.");
cc_setcolour(0xf7f0df);
cc_settextshadow(true);
cc_settextfont(p11_full);
cc_setsize(8, 0, ^setsize_minus, ^setsize_minus);
cc_settextalign(^settextalign_centre, ^settextalign_centre, 18);
cc_setposition(0, 0, ^setpos_abs_centre, ^setpos_abs_centre);
}