-
Notifications
You must be signed in to change notification settings - Fork 11
/
[proc,slayer_rewards_unlock_draw].cs2
107 lines (107 loc) · 4.56 KB
/
[proc,slayer_rewards_unlock_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
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
// 1090
[proc,slayer_rewards_unlock_draw](enum $enum0, component $component1, component $component2, component $component3, component $component4, component $component5, component $component6, component $component7)
cc_deleteall($component1);
def_int $width8 = if_getwidth($component1);
def_int $int9 = calc(($width8 - 4) / 2);
def_int $int10 = calc($width8 - ($int9 + 1));
def_int $width11 = calc($int9 - 10);
def_int $int12 = 0;
def_int $height13 = 0;
def_int $int14 = 0;
def_string $string0 = "";
def_int $int15 = 0;
def_int $int16 = -1;
def_int $int17 = 0;
def_int $int18 = 0;
def_string $text1 = "";
def_string $string2 = "";
def_int $int19 = 0;
def_int $int20 = enum(int, int, $enum0, $int19);
while ($int20 ! -1 & $int20 <= 51) {
$text1 = enum(int, string, enum_834, $int20);
$string2 = ~slayer_rewards_unlock_desc($int20);
$string0 = "<$string2> <col=ff0000>(<tostring(enum(int, int, enum_836, $int20))> points)</col>";
$int15 = calc(paraheight($string0, $width11, p11_full) * 10 + 2);
if (calc($int19 % 2) = 1) {
$int16 = enum(int, int, $enum0, calc($int19 - 1));
$int14 = $int10;
} else {
$int16 = enum(int, int, $enum0, calc($int19 + 1));
$int14 = 0;
}
if ($int16 ! -1) {
$int17 = calc(paraheight("<~slayer_rewards_unlock_desc($int16)> <col=ff0000>(<tostring(enum(int, int, enum_836, $int16))> points)</col>", $width11, p11_full) * 10 + 2);
if ($int17 > $int15) {
$int15 = $int17;
}
}
$int18 = calc($int15 + 10 + 32);
.cc_create($component1, ^iftype_rectangle, $int12);
$int12 = calc($int12 + 1);
.cc_setposition($int14, $height13, ^setpos_abs_left, ^setpos_abs_top);
.cc_setsize($int9, $int18, ^setsize_abs, ^setsize_abs);
.cc_setcolour(^white);
.cc_setfill(true);
.cc_settrans(245);
.cc_setonmouseover("cc_settrans(event_com, .cc_getid, 230, null)");
.cc_setonmouseleave("cc_settrans(event_com, .cc_getid, 245, null)");
.cc_setopbase("<col=ff9040><$text1>");
cc_create($component1, ^iftype_rectangle, $int12);
$int12 = calc($int12 + 1);
cc_setposition($int14, $height13, ^setpos_abs_left, ^setpos_abs_top);
cc_setsize($int9, $int18, ^setsize_abs, ^setsize_abs);
cc_setfill(false);
cc_setcolour(0x0e0e0c);
cc_create($component1, ^iftype_rectangle, $int12);
$int12 = calc($int12 + 1);
cc_setposition(calc($int14 + 1), calc($height13 + 1), ^setpos_abs_left, ^setpos_abs_top);
cc_setsize(calc($int9 - 2), calc($int18 - 2), ^setsize_abs, ^setsize_abs);
cc_setfill(false);
cc_setcolour(0x474745);
cc_create($component1, ^iftype_graphic, $int12);
$int12 = calc($int12 + 1);
cc_setposition(calc($int14 + 5), calc($height13 + 5), ^setpos_abs_left, ^setpos_abs_top);
cc_setsize(36, 32, ^setsize_abs, ^setsize_abs);
cc_setgraphicshadow(0x333333);
cc_setoutline(1);
cc_setobject_nonum(enum(int, obj, enum_837, $int20), 1);
cc_create($component1, ^iftype_graphic, $int12);
$int12 = calc($int12 + 1);
cc_setsize(16, 16, ^setsize_abs, ^setsize_abs);
cc_settiling(true);
cc_setposition(calc($int14 + 5 + 36), calc($height13 + 14), ^setpos_abs_left, ^setpos_abs_top);
~script413($int20, $string2, $component3, $component4, $component5, $component6, $component7);
.cc_setonvartransmit("script412(event_com, .cc_getid, cc_getid, $int20, $string2, $component3, $component4, $component5, $component6, $component7){var1076, var1344, var695}");
cc_create($component1, ^iftype_text, $int12);
$int12 = calc($int12 + 1);
cc_setposition(calc($int14 + 21 + 36), calc($height13 + 6), ^setpos_abs_left, ^setpos_abs_top);
cc_setsize(calc($int9 - (26 + 36)), 32, ^setsize_abs, ^setsize_abs);
cc_setcolour(0xff981f);
cc_settextfont(p12_full);
cc_settextshadow(true);
cc_settextalign(^settextalign_centre, ^settextalign_centre, 0);
cc_settext($text1);
cc_create($component1, ^iftype_text, $int12);
$int12 = calc($int12 + 1);
cc_setposition(calc($int14 + 5), calc($height13 + 5 + 32), ^setpos_abs_left, ^setpos_abs_top);
cc_setsize($width11, $int15, ^setsize_abs, ^setsize_abs);
cc_setcolour(0xff981f);
cc_settextfont(p11_full);
cc_settextshadow(true);
cc_settextalign(^settextalign_left, ^settextalign_centre, 0);
cc_settext($string0);
$int19 = calc($int19 + 1);
$int20 = enum(int, int, $enum0, $int19);
if ($int20 = -1) {
$height13 = calc($height13 + $int18);
} else if (calc($int19 % 2) = 0) {
$height13 = calc($height13 + $int18 + 3);
}
}
if_setscrollpos(0, 0, $component1);
if ($height13 > if_getheight($component1)) {
if_setscrollsize(0, $height13, $component1);
} else {
if_setscrollsize(0, 0, $component1);
}
~scrollbar_vertical($component2, $component1, "scrollbar_dragger_v2,3", "scrollbar_dragger_v2,0", "scrollbar_dragger_v2,1", "scrollbar_dragger_v2,2", "scrollbar_v2,0", "scrollbar_v2,1");