-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path[clientscript,script1587].cs2
26 lines (26 loc) · 1.52 KB
/
[clientscript,script1587].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
// 1587
[clientscript,script1587](component $component0, int $int1)
def_int $int2 = 0;
def_int $int3 = 0;
if (cc_find($component0, $int1) = ^true & .cc_find(interface_549:13, $int1) = ^true) {
if (string_indexof_string(.cc_gettext, "(Awakened)", 0) ! -1) {
sound_synth(pillory_wrong, 1, 0);
mes("The Awakened version of a boss shares its streak with the standard version.");
return;
}
sound_synth(interface_select1, 1, 0);
if_settext("Reset streak:<br><.cc_gettext>", interface_549:24);
if_setsize(calc(parawidth(if_gettext(interface_549:24), 75, p11_full) + 10), 50, ^setsize_abs, ^setsize_abs, interface_549:19);
if (paraheight(if_gettext(interface_549:24), if_getwidth(interface_549:24), p11_full) > 4) {
if_setsize(if_getwidth(interface_549:19), 80, ^setsize_abs, ^setsize_abs, interface_549:19);
} else if (paraheight(if_gettext(interface_549:24), if_getwidth(interface_549:24), p11_full) > 3) {
if_setsize(if_getwidth(interface_549:19), 70, ^setsize_abs, ^setsize_abs, interface_549:19);
} else if (paraheight(if_gettext(interface_549:24), if_getwidth(interface_549:24), p11_full) > 2) {
if_setsize(if_getwidth(interface_549:19), 60, ^setsize_abs, ^setsize_abs, interface_549:19);
}
$int2 = if_getscrolly(interface_549:5);
$int3 = calc(if_getscrolly(interface_549:5) + if_getheight(interface_549:5) - if_getheight(interface_549:19));
if_sethide(false, interface_549:17);
if_sethide(false, interface_549:19);
if_setposition(12, ~minmax($int2, $int3, calc(18 * $int1 + 5)), ^setpos_abs_right, ^setpos_abs_top, interface_549:19);
}