-
Notifications
You must be signed in to change notification settings - Fork 11
/
[clientscript,slayer_rewards_unlock_confirm].cs2
57 lines (57 loc) · 3.06 KB
/
[clientscript,slayer_rewards_unlock_confirm].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
// 414
[clientscript,slayer_rewards_unlock_confirm](boolean $boolean0, int $int1, string $string0, component $component2, component $component3, component $component4, component $component5, component $component6, int $int7)
sound_synth(interface_select1, 1, 0);
if_sethide(true, $component2);
if_sethide(false, $component3);
cc_deleteall($component5);
if_setposition(33, 165, ^setpos_abs_left, ^setpos_abs_top, $component6);
if_sethide(false, $component5);
def_string $string1 = "Extend everything";
def_string $op2 = "Confirm";
def_string $text3 = "";
if ($int1 = calc(51 + 9)) {
$text3 = "<u=ff981f><$string1></u><br><br>All task extensions will be unlocked. You can re-lock them individually later, but will not receive a refund.<br><br><col=ff0000>Pay <tostring($int7)> points?</col>";
} else if ($int1 = 35 & $boolean0 = false) {
$string1 = enum(int, string, enum_834, $int1);
if (%varbit5362 = 1) {
$op2 = "Enable";
$text3 = "<u=ff981f><$string1></u><br><br><$string0><br><br><col=00ff00>Really enable it? It will </col><col=ffffff>not cost you any points</col><col=00ff00> as you have unlocked this previously.</col>";
} else {
$op2 = "Disable";
$text3 = "<u=ff981f><$string1></u><br><br><$string0><br><br><col=00ff00>Really disable it? This feature can be toggled at your leisure for </col><col=ffffff>no future cost</col><col=00ff00>.</col>";
}
} else if ($int1 = 43 & $boolean0 = false) {
$string1 = enum(int, string, enum_834, $int1);
if (%varbit6251 = 1) {
$op2 = "Enable";
$text3 = "<u=ff981f><$string1></u><br><br><$string0><br><br><col=00ff00>Really enable it? It will </col><col=ffffff>not cost you any points</col><col=00ff00> as you have unlocked this previously.</col>";
} else {
$op2 = "Disable";
$text3 = "<u=ff981f><$string1></u><br><br><$string0><br><br><col=00ff00>Really disable it? This feature can be toggled at your leisure for </col><col=ffffff>no future cost</col><col=00ff00>.</col>";
}
} else if ($boolean0 = true) {
$string1 = enum(int, string, enum_834, $int1);
$op2 = "Unlock";
$text3 = "<u=ff981f><$string1></u><br><br><$string0><br><br><col=ff0000>Pay <~tostring_spacer(enum(int, int, enum_836, $int1), ",")> points?</col>";
} else {
$string1 = enum(int, string, enum_834, $int1);
$op2 = "Disable";
$text3 = "<u=ff981f><$string1></u><br><br>Really disable it?<br><br><col=ff0000>You will not get your points back.</col>";
}
if_settext($text3, $component4);
def_int $int8 = 0;
while ($int8 < $int1) {
cc_create($component5, ^iftype_rectangle, $int8);
cc_sethide(true);
$int8 = calc($int8 + 1);
}
cc_create($component5, ^iftype_rectangle, $int1);
cc_setsize(0, 0, ^setsize_minus, ^setsize_minus);
cc_setposition(0, 0, ^setpos_abs_centre, ^setpos_abs_centre);
cc_setfill(true);
cc_settrans(255);
cc_setop(1, $op2);
cc_setopbase("<col=ff9040><$string1>");
cc_setonop("slayer_rewards_confirm_back(true, event_opindex, $component2, $component3, $component4, $component5, $component6)");
if_setop(1, "Back", $component6);
if_setonop("slayer_rewards_confirm_back(false, event_opindex, $component2, $component3, $component4, $component5, $component6)", $component6);