-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path[proc,bank_payment_draw].cs2
82 lines (82 loc) · 2.63 KB
/
[proc,bank_payment_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
// 1456
[proc,bank_payment_draw](component $component0, int $int1, boolean $boolean2)
def_int $height3 = if_getheight($component0);
def_int $width4 = if_getwidth($component0);
def_int $int5 = 44;
def_int $int6 = calc(($height3 - 5 * $int5) / 2);
def_int $int7 = calc(($width4 - 7 * $int5) / 2);
if ($int6 < 0 | $int7 < 0) {
return;
}
def_int $int8 = 1;
def_component $component9 = null;
def_coord $coord10 = null;
def_int $int11 = 0;
def_int $int12 = 0;
def_int $x13 = 0;
def_int $y14 = 0;
def_int $comsubid15 = 0;
def_int $int16 = 0;
def_namedobj $namedobj17 = null;
cc_deleteall($component0);
.cc_create($component0, ^iftype_rectangle, 0);
.cc_sethide(true);
def_int $int18 = 0;
while ($int8 <= 14) {
$int16 = 0;
$component9 = enum(int, component, enum_1511, $int8);
if ($component9 = null) {
return;
}
$coord10 = enum(int, coord, enum_1512, $int8);
if ($coord10 = null) {
return;
}
$int11 = coordz($coord10);
$int12 = coordx($coord10);
$x13 = calc($int7 + ($int12 - 1) * $int5);
$y14 = calc($int6 + ($int11 - 1) * $int5);
if_setposition($x13, $y14, ^setpos_abs_left, ^setpos_abs_top, $component9);
if_setsize($int5, $int5, ^setsize_abs, ^setsize_abs, $component9);
$namedobj17 = enum(int, namedobj, enum_982, $int8);
$int18 = inv_total(inv, $namedobj17);
if (inv_total(inv, rune_pouch_12791) > 0 | inv_total(inv, rune_pouch_l_24416) > 0) {
if (%varbit29 = $int8) {
$int18 = calc($int18 + %varbit1624);
} else if (%varbit1622 = $int8) {
$int18 = calc($int18 + %varbit1625);
} else if (%varbit1623 = $int8) {
$int18 = calc($int18 + %varbit1626);
}
}
if ($int18 >= 20 | $boolean2 = false) {
$int16 = 1;
}
cc_deleteall($component9);
if ($int16 = 1) {
if ($int8 = $int1) {
$comsubid15 = ~v2_stone_button_in_filled($component9);
} else {
$comsubid15 = ~v2_stone_button_out_filled($component9);
}
if_setonmouseover("bank_payment_draw($component0, $int8, $boolean2)", $component9);
if_setonmouseleave("bank_payment_draw($component0, -1, $boolean2)", $component9);
} else {
$comsubid15 = ~v2_stone_button_filled($component9);
}
if_setopbase("<col=ff9040><oc_name($namedobj17)></col>", $component9);
if_setop(1, "Choose", $component9);
if_setonop("script1457($int8, $component0, $component9, $comsubid15, $boolean2)", $component9);
cc_create($component9, ^iftype_graphic, $comsubid15);
cc_setobject($namedobj17, $int18);
cc_setsize(36, 32, ^setsize_abs, ^setsize_abs);
cc_setposition(2, 0, ^setpos_abs_centre, ^setpos_abs_centre);
cc_setgraphicshadow(0x333333);
cc_setoutline(1);
if ($int16 = 0) {
cc_settrans(125);
}
.cc_create($component0, ^iftype_rectangle, $int8);
.cc_sethide(true);
$int8 = calc($int8 + 1);
}