-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path[proc,league_reward_draw_item].cs2
78 lines (78 loc) · 4.46 KB
/
[proc,league_reward_draw_item].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
// 544
[proc,league_reward_draw_item](component $component0, int $int1, int $y2, int $int3, struct $struct4, int $int5, int $int6, int $int7, component $component8, component $component9, component $component10, component $component11, component $component12, component $component13, component $component14, component $component15, component $component16, component $component17, component $component18, component $component19, struct $struct20)(int)
.cc_create($component0, ^iftype_rectangle, $int7);
.cc_setsize($int3, 32, ^setsize_abs, ^setsize_abs);
.cc_setposition($int1, $y2, ^setpos_abs_left, ^setpos_abs_top);
.cc_setcolour(^black);
.cc_setfill(true);
.cc_settrans(255);
.cc_setop(1, "Select <col=ff891f><struct_param($struct4, param_363)>");
$int7 = calc($int7 + 1);
def_namedobj $namedobj21 = struct_param($struct4, param_150);
if ($namedobj21 = null) {
return($int7);
}
cc_create($component0, ^iftype_graphic, $int7);
cc_setsize(36, 32, ^setsize_abs, ^setsize_abs);
cc_setposition(calc($int1 + (40 - 36) / 2), $y2, ^setpos_abs_left, ^setpos_abs_top);
cc_setobject_nonum($namedobj21, 1);
cc_setgraphicshadow(0x333333);
cc_setoutline(1);
def_int $width22 = calc($int3 - 40);
$int1 = calc($int1 + 40);
$int7 = calc($int7 + 1);
cc_create($component0, ^iftype_text, $int7);
cc_setsize($width22, 32, ^setsize_abs, ^setsize_abs);
cc_setposition($int1, $y2, ^setpos_abs_left, ^setpos_abs_top);
cc_settextalign(^settextalign_left, ^settextalign_top, 0);
cc_settextfont(p12_full);
cc_settextshadow(true);
def_int $int23 = struct_param($struct4, param_151);
def_string $mes0 = "";
def_string $string1 = ",";
if (~script3292($struct20) = 0) {
cc_setcolour(0x9f9f9f);
cc_settextalign(^settextalign_left, ^settextalign_top, 15);
$mes0 = "You can't purchase that reward until the current League has ended.";
cc_settext("<struct_param($struct4, param_363)><br> <col=9f9f9f><~tostring_spacer($int23, $string1)> points</col>");
.cc_setonop("league_reward_shop_refuse($mes0, $component8, $component9, $component10, $component11, $component12, $component13, $component14, $component15, $component16, $component17, $component18, $component19, $struct20)");
} else if (oc_members($namedobj21) = ^true & map_members = ^false) {
cc_setcolour(0x9f9f9f);
cc_settextalign(^settextalign_left, ^settextalign_top, 15);
$mes0 = "You must be on a members' world to purchase that reward.";
cc_settext("<struct_param($struct4, param_363)><br> <col=9f9f9f><~tostring_spacer($int23, $string1)> points</col>");
.cc_setonop("league_reward_shop_refuse($mes0, $component8, $component9, $component10, $component11, $component12, $component13, $component14, $component15, $component16, $component17, $component18, $component19, $struct20)");
} else if (%var2613 < $int23) {
cc_setcolour(0x9f9f9f);
cc_settextalign(^settextalign_left, ^settextalign_top, 15);
if ($int23 = 1) {
$mes0 = "You need <~tostring_spacer($int23, $string1)> point to purchase that reward.";
cc_settext("<struct_param($struct4, param_363)><br> <col=9f9f9f><~tostring_spacer($int23, $string1)> points</col>");
} else {
$mes0 = "You need <~tostring_spacer($int23, $string1)> points to purchase that reward.";
cc_settext("<struct_param($struct4, param_363)><br> <col=9f9f9f><~tostring_spacer($int23, $string1)> points</col>");
}
.cc_setonop("league_reward_shop_refuse($mes0, $component8, $component9, $component10, $component11, $component12, $component13, $component14, $component15, $component16, $component17, $component18, $component19, $struct20)");
} else {
if ($int6 = $int5 & ~script3292($struct20) = 1) {
cc_setcolour(^white);
if ($int23 = 1) {
cc_settext("<struct_param($struct4, param_363)><br> <~tostring_spacer($int23, $string1)> point</col>");
} else {
cc_settext("<struct_param($struct4, param_363)><br> <~tostring_spacer($int23, $string1)> points</col>");
}
.cc_setonmouserepeat(null);
.cc_setonmouseleave(null);
} else {
cc_setcolour(0x0dc10d);
if ($int23 = 1) {
cc_settext("<struct_param($struct4, param_363)><br> <col=ff891f><~tostring_spacer($int23, $string1)> point</col>");
} else {
cc_settext("<struct_param($struct4, param_363)><br> <col=ff891f><~tostring_spacer($int23, $string1)> points</col>");
}
}
cc_settextalign(^settextalign_left, ^settextalign_top, 15);
.cc_setonop("league_reward_shop_select($int5, $component8, $component9, $component10, $component11, $component12, $component13, $component14, $component15, $component16, $component17, $component18, $component19, $struct20)");
}
$int7 = calc($int7 + 1);
return($int7);