-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path[clientscript,poh_costumes_init].cs2
74 lines (74 loc) · 3.29 KB
/
[clientscript,poh_costumes_init].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
// 3532
[clientscript,poh_costumes_init](enum $enum0, boolean $boolean1, boolean $boolean2)
if ($boolean2 = true) {
%varcint58 = 0;
}
def_int $comsubid3 = ~steelborder(interface_675:2, "", 0);
~scrollbar_vertical(interface_675:5, interface_675:4, "scrollbar_dragger_v2,3", "scrollbar_dragger_v2,0", "scrollbar_dragger_v2,1", "scrollbar_dragger_v2,2", "scrollbar_v2,0", "scrollbar_v2,1");
def_int $int4 = calc(4 + 38);
def_int $int5 = 0;
def_int $int6 = 0;
cc_deleteall(interface_675:4);
def_namedobj $namedobj7 = null;
def_string $string0 = "";
def_int $int8 = calc(if_getwidth(interface_675:4) / 2);
def_int $width9 = calc($int8 - 20);
def_graphic $graphic10 = p12_full;
def_int $int11 = 0;
def_int $count12 = enum_getoutputcount($enum0);
def_int $count13 = 0;
while ($count13 < $count12) {
$namedobj7 = enum(int, namedobj, $enum0, $count13);
$string0 = enum(obj, string, enum_3302, $namedobj7);
if ($graphic10 = p12_full & parawidth($string0, 512, p12_full) > $width9) {
$graphic10 = p11_full;
}
cc_create(interface_675:4, ^iftype_graphic, $int6);
$int5, $int6 = calc($int5 + 1), calc($int6 + 1);
cc_settiling(true);
cc_setopbase("<col=ff9040><$string0></col>");
cc_create(interface_675:4, ^iftype_graphic, $int6);
$int5, $int6 = calc($int5 + 1), calc($int6 + 1);
cc_setsize(12, 10, ^setsize_abs, ^setsize_abs);
cc_setgraphic(graphic_2496);
cc_settrans(50);
cc_create(interface_675:4, ^iftype_graphic, $int6);
$int5, $int6 = calc($int5 + 1), calc($int6 + 1);
cc_setgraphic("v2_borders_slim,8");
cc_settrans(0);
cc_settiling(true);
cc_create(interface_675:4, ^iftype_text, $int6);
$int5, $int6 = calc($int5 + 1), calc($int6 + 1);
cc_settextshadow(true);
cc_settextalign(^settextalign_left, ^settextalign_centre, 0);
cc_settext($string0);
while ($int5 < $int4) {
cc_create(interface_675:4, ^iftype_graphic, $int6);
$int5, $int6 = calc($int5 + 1), calc($int6 + 1);
cc_setsize(36, 32, ^setsize_abs, ^setsize_abs);
cc_setgraphicshadow(0x333333);
cc_setoutline(1);
}
if (enum(obj, enum, enum_3077, $namedobj7) ! null | enum(obj, namedobj, enum_3303, $namedobj7) ! null | enum(obj, enum, enum_3304, $namedobj7) ! null) {
$int11 = 1;
}
$int5, $count13 = 0, calc($count13 + 1);
}
~poh_costumes_build($enum0, $count12, $int4, $int6, $boolean1, interface_675:4, interface_675:5, $int8, $graphic10, interface_675:2, $comsubid3);
if_setoninvtransmit("poh_costumes_build($enum0, $count12, $int4, $int6, $boolean1, event_com, interface_675:5, $int8, $graphic10, interface_675:2, $comsubid3){inv_637}", interface_675:4);
~poh_costumes_buttons_search_reset($enum0, interface_675:9, "bankbuttons,2");
if ($boolean1 = true & $int11 = 1) {
if_sethide(false, interface_675:8);
if_setop(1, "Deposit mode", interface_675:8);
~poh_costumes_buttons_toggle_reset(interface_675:8, "bankbuttons,8");
if_setposition(0, 210, ^setpos_abs_centre, ^setpos_abs_bottom, interface_675:7);
} else {
if_sethide(true, interface_675:8);
if_clearops(interface_675:8);
cc_deleteall(interface_675:8);
if_setposition(0, 140, ^setpos_abs_centre, ^setpos_abs_bottom, interface_675:7);
}
if_setop(1, "Deposit inventory", interface_675:10);
~poh_costumes_buttons_1off_reset(interface_675:10, "bankbuttons,0", null);
~poh_costumes_buttons_dynamicsetup(interface_675:7);
if_setonvartransmit("poh_costumes_buttons_dynamicsetup(interface_675:7){var262}", interface_675:4);