This repository was archived by the owner on Feb 4, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy path[clientscript,league_relic_expanded_view].cs2
185 lines (185 loc) · 8.59 KB
/
[clientscript,league_relic_expanded_view].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
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
// 3193
[clientscript,league_relic_expanded_view](component $component0, component $component1, component $component2, component $component3, component $component4, component $component5, component $component6, component $component7, component $component8, component $component9, component $component10, component $component11, component $component12, component $component13, component $component14, component $component15, component $component16, component $component17, int $int18, struct $struct19, struct $struct20)
def_struct $struct21 = enum(int, struct, enum_2670, %varbit10032);
if ($struct21 = null) {
return;
}
def_int $colour22 = struct_param($struct21, param_1027);
def_string $string0 = ~script3739($colour22, "u");
if_setcolour($colour22, $component5);
if_setcolour($colour22, $component6);
if_setcolour($colour22, $component7);
if_setcolour($colour22, $component15);
if_setcolour($colour22, $component16);
if_setcolour($colour22, $component12);
def_int $comsubid23 = -1;
def_string $op1 = "";
def_string $string2 = "";
def_namedobj $namedobj24 = struct_param($struct19, param_2049);
if ($namedobj24 ! null) {
$string2 = "Upon choosing this relic you will receive the <col=ffffff><oc_name($namedobj24)></col>.<br><br>";
}
$string2 = "<$string2><struct_param($struct19, param_880)><br><br>";
if ($namedobj24 ! null) {
$string2 = "<$string2><col=ffffff>The <oc_name($namedobj24)> can be retrieved from the Sage if lost.</col>";
}
def_string $string3 = struct_param($struct20, param_1020);
def_int $int25 = struct_param($struct19, param_885);
def_int $width26 = if_getwidth(interface_655:37);
if_sethide(true, $component3);
if_sethide(true, $component0);
if_sethide(true, $component1);
if_sethide(false, $component2);
if_sethide(true, $component17);
if_sethide(true, interface_655:28);
if_setgraphic(struct_param($struct19, param_884), $component4);
if_settext("<$string0><struct_param($struct19, param_879)></u>", $component5);
if_settext("Relic Effect:", $component6);
def_int $int27 = calc(paraheight($string2, $width26, p12_full) * 15);
def_int $height28 = calc(paraheight($string3, if_getwidth(interface_655:56), p12_full) * 15);
if_settext($string2, $component7);
if_setsize(0, $int27, ^setsize_minus, ^setsize_abs, $component7);
def_int $int29 = calc($int27 + 12 + if_getheight($component6));
def_string $text4 = "Passive Effects";
def_int $int30 = calc(if_getheight($component2) - 41);
if ($int29 > calc($int30 - 53)) {
if_setsize(148, 96, ^setsize_minus, ^setsize_minus, interface_655:34);
if_setposition(8, 33, ^setpos_abs_left, ^setpos_abs_top, interface_655:34);
if_setsize(148, 53, ^setsize_minus, ^setsize_abs, interface_655:41);
if_setposition(8, 8, ^setpos_abs_left, ^setpos_abs_bottom, interface_655:41);
} else {
if_setsize(148, calc($int29 + 6), ^setsize_minus, ^setsize_abs, interface_655:34);
if_setposition(8, 33, ^setpos_abs_left, ^setpos_abs_top, interface_655:34);
if_setsize(148, calc($int30 - $int29 - 8), ^setsize_minus, ^setsize_abs, interface_655:41);
if_setposition(8, calc($int29 + 41), ^setpos_abs_left, ^setpos_abs_top, interface_655:41);
}
cc_deleteall(interface_655:40);
if ($int29 > if_getheight(interface_655:37)) {
if_setscrollsize(0, $int29, interface_655:37);
} else {
if_setscrollsize(0, 0, interface_655:37);
}
if_setscrollpos(0, 0, interface_655:37);
~scrollbar_vertical(interface_655:40, interface_655:37, "scrollbar_dragger_v2,3", "scrollbar_dragger_v2,0", "scrollbar_dragger_v2,1", "scrollbar_dragger_v2,2", "scrollbar_v2,0", "scrollbar_v2,1");
if_sethide(false, interface_655:40);
if ($struct20 ! null) {
if ($height28 > if_getheight(interface_655:56)) {
if_settext("<~text_device("Click", "Tap")> to expand...", $component16);
if_setop(1, "Expand", interface_655:57);
if_setonop("script734($text4, $string3, $colour22)", interface_655:57);
if_sethide(false, interface_655:57);
if_setsize(148, 53, ^setsize_minus, ^setsize_abs, interface_655:41);
} else {
if_settext($string3, $component16);
if_setop(1, "", interface_655:57);
if_setonop(null, interface_655:57);
if_sethide(true, interface_655:57);
if_setsize(148, calc(33 + $height28), ^setsize_minus, ^setsize_abs, interface_655:41);
}
if_settext("Passive Effect:", $component15);
if_sethide(false, $component16);
if_sethide(false, $component15);
} else {
if_settext("", $component16);
if_settext("", $component15);
if_sethide(true, $component16);
if_sethide(true, $component15);
}
$int30 = calc(if_getheight(interface_655:34) + if_getheight(interface_655:41) + 2);
if ($int30 > 192) {
if_setsize(if_getwidth(interface_655:1), min(calc($int30 + 41 + 94), if_getheight(interface_655:1)), ^setsize_abs, ^setsize_abs, interface_655:1);
} else {
if_setsize(if_getwidth(interface_655:1), 320, ^setsize_abs, ^setsize_abs, interface_655:1);
}
if ($int18 = 2 | $int18 = 5) {
$comsubid23 = ~v2_stone_button($component8);
$op1 = "Select";
if_setopbase("<col=ff981f><struct_param($struct19, param_879)></col>", $component8);
} else {
$comsubid23 = ~v2_stone_button_in($component8);
if ($int18 = 1) {
$op1 = "Unlocked";
} else {
$op1 = "Locked";
}
if_setopbase("", $component8);
}
cc_create($component8, ^iftype_text, $comsubid23);
cc_setsize(0, 0, ^setsize_minus, ^setsize_minus);
cc_setposition(0, 0, ^setpos_abs_centre, ^setpos_abs_centre);
cc_settext($op1);
cc_settextfont(p12_full);
cc_settextshadow(true);
cc_settextalign(^settextalign_centre, ^settextalign_centre, 0);
if_setop(1, $op1, $component8);
if ($int18 = 2 | $int18 = 5) {
cc_setcolour(0x53d93c);
if (~on_mobile = false) {
if_setonmouseleave("script7747($component8, false, $op1, 0x53d93c)", $component8);
if_setonmouserepeat("script7747($component8, true, $op1, 0xaaaaaa)", $component8);
}
if_setonop("script7750($component10, $component8, false, $op1, 0x53d93c)", $component8);
} else {
cc_setcolour(0xaaaaaa);
if_setonmouseleave(null, $component8);
if_setonmouserepeat(null, $component8);
if_setonop("league_relic_not_available($int18)", $component8);
}
$comsubid23 = ~v2_stone_button($component9);
cc_create($component9, ^iftype_text, $comsubid23);
cc_setsize(0, 0, ^setsize_minus, ^setsize_minus);
cc_setposition(0, 0, ^setpos_abs_centre, ^setpos_abs_centre);
$op1 = "Back";
cc_settext($op1);
cc_settextfont(p12_full);
cc_settextshadow(true);
cc_setcolour(^white);
cc_settextalign(^settextalign_centre, ^settextalign_centre, 0);
if_setop(1, $op1, $component9);
if (~on_mobile = false) {
if_setonmouseleave("script7747($component9, false, $op1, ^white)", $component9);
if_setonmouserepeat("script7747($component9, true, $op1, 0xaaaaaa)", $component9);
}
if_setonop("league_relic_back($component0, $component1, $component2, $component3, $component17)", $component9);
def_int $comsubid31 = ~steelborder($component11, struct_param($struct19, param_879), 1);
if (cc_find($component11, $comsubid31) = ^true) {
cc_setcolour($colour22);
}
if (~script7691($int25) = 1) {
if_settext("Are you sure that you wish to unlock the <col=ffffff><struct_param($struct19, param_879)></col> Relic?<br><br>You <col=ffffff>cannot</col> go back on this decision at any later point.", $component12);
} else {
if_settext("Are you sure that you wish to unlock the <col=ffffff><struct_param($struct19, param_879)></col> Relic?<br><br>You can only unlock <col=ffffff>one</col> Relic from each tier, and you <col=ffffff>cannot</col> go back on this decision at any later point.", $component12);
}
$comsubid23 = ~v2_stone_button($component13);
cc_create($component13, ^iftype_text, $comsubid23);
cc_setsize(0, 0, ^setsize_minus, ^setsize_minus);
cc_setposition(0, 0, ^setpos_abs_centre, ^setpos_abs_centre);
$op1 = "Confirm";
cc_settext($op1);
cc_settextfont(p12_full);
cc_settextshadow(true);
cc_setcolour(^white);
cc_settextalign(^settextalign_centre, ^settextalign_centre, 0);
if_setop(1, $op1, $component13);
if_setopbase("<col=ff981f>Selection</col>", $component13);
if (~on_mobile = false) {
if_setonmouseleave("script7747($component13, false, $op1, ^white)", $component13);
if_setonmouserepeat("script7747($component13, true, $op1, 0xaaaaaa)", $component13);
}
if_setonop("button_select_sound", $component13);
$comsubid23 = ~v2_stone_button($component14);
cc_create($component14, ^iftype_text, $comsubid23);
cc_setsize(0, 0, ^setsize_minus, ^setsize_minus);
cc_setposition(0, 0, ^setpos_abs_centre, ^setpos_abs_centre);
$op1 = "Cancel";
cc_settext($op1);
cc_settextfont(p12_full);
cc_settextshadow(true);
cc_setcolour(^white);
cc_settextalign(^settextalign_centre, ^settextalign_centre, 0);
if_setop(1, $op1, $component14);
if (~on_mobile = false) {
if_setonmouseleave("script7747($component14, false, $op1, ^white)", $component14);
if_setonmouserepeat("script7747($component14, true, $op1, 0xaaaaaa)", $component14);
}
if_setonop("script7749($component10)", $component14);