-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path[proc,league_3_unlocks_confirmation_open].cs2
70 lines (70 loc) · 2.91 KB
/
[proc,league_3_unlocks_confirmation_open].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
// 5827
[proc,league_3_unlocks_confirmation_open](component $component0)
def_int $int1 = ~league_get_league_colour(3);
if_sethide(false, interface_733:40);
def_struct $struct2 = null;
def_graphic $graphic3 = null;
def_int $int4 = 0;
if (%var3343 = 0) {
$struct2 = enum(int, struct, enum_4129, calc(%var3344 - 1));
} else if (%var3343 = 1) {
$struct2 = enum(int, struct, enum_4130, calc(%var3344 - 1));
} else {
$struct2 = enum(int, struct, enum_4131, calc(%var3344 - 1));
}
def_string $string0 = struct_param($struct2, param_1437);
if (%var3343 = 2) {
$graphic3 = "side_icons,2";
$int4 = ~script5832(struct_param($struct2, param_1444));
} else {
$graphic3 = struct_param($struct2, param_1441);
$int4 = struct_param($struct2, param_1442);
}
~league_3_unlocks_buy_button($component0, 1, $int1, $int4);
cc_deleteall(interface_733:43);
def_int $int5 = 0;
$int5 = ~steelbox(interface_733:43, $int5, true);
cc_create(interface_733:43, ^iftype_text, $int5);
cc_setposition(16, 16, ^setpos_abs_left, ^setpos_abs_top);
cc_setsize(32, 40, ^setsize_minus, ^setsize_abs);
cc_settextalign(^settextalign_centre, ^settextalign_top, 20);
cc_settextshadow(true);
cc_settextfont(b12_full);
cc_setcolour($int1);
if (%var3343 = 2) {
cc_settext("<col=cfcfcf>Are you sure you wish to complete:<br><$string0>");
} else {
cc_settext("<col=cfcfcf>Are you sure you wish to unlock:<br><$string0>");
}
$int5 = calc($int5 + 1);
if (%var3343 = 2) {
cc_create(interface_733:43, ^iftype_text, $int5);
cc_setposition(16, 70, ^setpos_abs_left, ^setpos_abs_top);
cc_setsize(32, 40, ^setsize_minus, ^setsize_abs);
cc_settextalign(^settextalign_centre, ^settextalign_top, 20);
cc_settextshadow(true);
cc_settextfont(b12_full);
cc_setcolour(0xcfcfcf);
cc_settext("You will <col=c46820>NOT</col> receive any<br>quest reward XP.");
} else {
~create_graphic(interface_733:43, $int5, $graphic3, 0, -10, ^setpos_abs_centre, ^setpos_abs_centre, 50, 50, ^setsize_abs, ^setsize_abs);
}
cc_settiling(false);
$int5 = calc($int5 + 1);
cc_create(interface_733:43, ^iftype_text, $int5);
cc_setposition(16, 125, ^setpos_abs_left, ^setpos_abs_top);
cc_setsize(32, 40, ^setsize_minus, ^setsize_abs);
cc_settextalign(^settextalign_centre, ^settextalign_top, 20);
cc_settextshadow(true);
cc_settextfont(b12_full);
cc_setcolour(0xcfcfcf);
cc_settext("This process is irreversible.");
$int5 = calc($int5 + 1);
~script5820(interface_733:44, 0, 0, 0, if_getwidth(interface_733:44), if_getheight(interface_733:44), struct_3927);
~script5820(interface_733:47, 0, 0, 0, if_getwidth(interface_733:47), if_getheight(interface_733:47), struct_3924);
if (~on_mobile = false) {
if_setonmouseover("script5821(interface_733:44, 0, struct_3929)", interface_733:44);
if_setonmouseover("script5821(interface_733:47, 0, struct_3926)", interface_733:47);
if_setonmouseleave("script5821(interface_733:44, 0, struct_3927)", interface_733:44);
if_setonmouseleave("script5821(interface_733:47, 0, struct_3924)", interface_733:47);
}