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[proc,slayer_rewards_etcetera_draw].cs2
56 lines (56 loc) · 2.21 KB
/
[proc,slayer_rewards_etcetera_draw].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
// 1092
[proc,slayer_rewards_etcetera_draw](component $component0, component $component1, component $component2, component $component3, component $component4, component $component5)
def_int $int6 = 0;
def_int $int7 = 0;
def_int $int8 = 0;
def_int $int9 = enum(int, int, enum_273, $int8);
def_int $int10 = 0;
if (~league_relic_active(slayer_master_1129) = 1) {
$int10 = 1;
}
while ($int9 ! -1 & $int9 <= 56) {
if (($int9 < 32 & testbit(%var1076, $int9) = ^false | $int9 >= 32 & testbit(%var1344, calc($int9 % 32)) = ^false) & ~script3689(%varbit10032, $int9) = 0) {
$int6, $int7 = calc($int6 + 1), calc($int7 + enum(int, int, enum_836, $int9));
}
$int8 = calc($int8 + 1);
$int9 = enum(int, int, enum_273, $int8);
}
if ($int10 = 1) {
$int7 = 0;
}
cc_deleteall($component0);
def_int $int11 = ~options_button_off($component0, 0);
cc_create($component0, ^iftype_text, $int11);
$int11 = calc($int11 + 1);
cc_setposition(0, 0, ^setpos_abs_centre, ^setpos_abs_centre);
cc_setsize(0, 0, ^setsize_minus, ^setsize_minus);
cc_settextfont(p11_full);
cc_settextshadow(true);
cc_settextalign(^settextalign_centre, ^settextalign_centre, 0);
def_string $string0 = "Nothing more to extend";
def_string $string1 = "";
if ($int6 > 0 & $int7 > 0) {
if ($int6 > 1) {
$int7 = interpolate(0, 95, 0, 100, $int7);
if ($int7 < 2) {
$int7 = 2;
}
$string0 = "Extend remaining <tostring($int6)> tasks: <~tostring_spacer($int7, ",")> points";
} else {
$string0 = "Extend remaining task: <~tostring_spacer($int7, ",")> points";
}
cc_setcolour(0xff981f);
cc_settext($string0);
if_setonmouserepeat("options_button_on(event_com, 0)", $component0);
if_setonmouseleave("options_button_off(event_com, 0)", $component0);
if_setop(1, "Extend", $component0);
if_setonop("slayer_rewards_unlock_confirm(null, calc(56 + 9), $string1, $component1, $component2, $component3, $component4, $component5, $int7)", $component0);
} else {
cc_setcolour(0x7f4c0f);
cc_settext($string0);
if_setonmouserepeat(null, $component0);
if_setonmouseleave(null, $component0);
if_clearops($component0);
if_setonop(null, $component0);
}
if_setsize(calc(parawidth($string0, if_getwidth(if_getlayer($component0)), p11_full) + 20), if_getheight($component0), ^setsize_abs, ^setsize_abs, $component0);