-
Notifications
You must be signed in to change notification settings - Fork 0
/
[clientscript,xpdrops_setup_display_open].cs2
141 lines (141 loc) · 8.03 KB
/
[clientscript,xpdrops_setup_display_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
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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
// 1030
[clientscript,xpdrops_setup_display_open](component $component0, component $component1, component $layer2, component $component3, component $component4, component $component5, component $component6, component $component7, component $component8, component $component9, component $component10, component $component11, component $component12, component $component13, component $component14, component $component15, component $component16, component $component17, component $component18, component $component19, component $component20, component $component21, component $component22, component $component23, component $component24)
sound_synth(interface_select1, 1, 0);
if_sethide(true, $component6);
~deltooltip_action($component6);
~xpdrops_setup_display_hoverdisable($component0);
if_sethide(false, $component3);
def_int $int25 = if_getx($component0);
def_int $int26 = if_gety($component0);
def_component $layer27 = if_getlayer($component0);
while ($layer27 ! $layer2) {
$int25, $int26 = calc($int25 + if_getx($layer27) - if_getscrollx($layer27)), calc($int26 + if_gety($layer27) - if_getscrolly($layer27));
$layer27 = if_getlayer($layer27);
}
$int26 = calc($int26 + if_getheight($component0) - 1);
if_setposition($int25, $int26, ^setpos_abs_left, ^setpos_abs_top, $component4);
def_int $int28 = 15;
if (~on_mobile = true) {
$int28 = scale(8, 5, $int28);
}
.cc_create($component1, ^iftype_rectangle, 0);
.cc_setsize(0, calc($int28 + 2), ^setsize_minus, ^setsize_abs);
.cc_setfill(true);
.cc_setcolour(^white);
.cc_settrans(200);
.cc_sethide(true);
def_int $int29 = 0;
if ($component1 = $component8) {
if_sethide(false, $component8);
if_sethide(true, $component10);
if_sethide(true, $component12);
if_sethide(true, $component14);
if_sethide(true, $component16);
if_sethide(true, $component18);
if_sethide(true, $component20);
if_sethide(true, $component22);
if_sethide(true, $component24);
$int29 = ~script1031($component1, enum_1164, $component3, $component6, $component7, $component8, $component9, $component10, $component11, $component12, $component13, $component14, $component15, $component16, $component17, $component18, $component19, $component20, $component21, $component22, $component23, $component24);
} else if ($component1 = $component10) {
if_sethide(true, $component8);
if_sethide(false, $component10);
if_sethide(true, $component12);
if_sethide(true, $component14);
if_sethide(true, $component16);
if_sethide(true, $component18);
if_sethide(true, $component20);
if_sethide(true, $component22);
if_sethide(true, $component24);
$int29 = ~script1031($component1, enum_1165, $component3, $component6, $component7, $component8, $component9, $component10, $component11, $component12, $component13, $component14, $component15, $component16, $component17, $component18, $component19, $component20, $component21, $component22, $component23, $component24);
} else if ($component1 = $component12) {
if_sethide(true, $component8);
if_sethide(true, $component10);
if_sethide(false, $component12);
if_sethide(true, $component14);
if_sethide(true, $component16);
if_sethide(true, $component18);
if_sethide(true, $component20);
if_sethide(true, $component22);
if_sethide(true, $component24);
$int29 = ~script1031($component1, enum_1166, $component3, $component6, $component7, $component8, $component9, $component10, $component11, $component12, $component13, $component14, $component15, $component16, $component17, $component18, $component19, $component20, $component21, $component22, $component23, $component24);
} else if ($component1 = $component14) {
if_sethide(true, $component8);
if_sethide(true, $component10);
if_sethide(true, $component12);
if_sethide(false, $component14);
if_sethide(true, $component16);
if_sethide(true, $component18);
if_sethide(true, $component20);
if_sethide(true, $component22);
if_sethide(true, $component24);
$int29 = ~script1032($component1, $component3, $component6, $component7, $component8, $component9, $component10, $component11, $component12, $component13, $component14, $component15, $component16, $component17, $component18, $component19, $component20, $component21, $component22, $component23, $component24);
} else if ($component1 = $component16) {
if_sethide(true, $component8);
if_sethide(true, $component10);
if_sethide(true, $component12);
if_sethide(true, $component14);
if_sethide(false, $component16);
if_sethide(true, $component18);
if_sethide(true, $component20);
if_sethide(true, $component22);
if_sethide(true, $component24);
$int29 = ~script1032($component1, $component3, $component6, $component7, $component8, $component9, $component10, $component11, $component12, $component13, $component14, $component15, $component16, $component17, $component18, $component19, $component20, $component21, $component22, $component23, $component24);
} else if ($component1 = $component18) {
if_sethide(true, $component8);
if_sethide(true, $component10);
if_sethide(true, $component12);
if_sethide(true, $component14);
if_sethide(true, $component16);
if_sethide(false, $component18);
if_sethide(true, $component20);
if_sethide(true, $component22);
if_sethide(true, $component24);
$int29 = ~script1031($component1, enum_1168, $component3, $component6, $component7, $component8, $component9, $component10, $component11, $component12, $component13, $component14, $component15, $component16, $component17, $component18, $component19, $component20, $component21, $component22, $component23, $component24);
} else if ($component1 = $component20) {
if_sethide(true, $component8);
if_sethide(true, $component10);
if_sethide(true, $component12);
if_sethide(true, $component14);
if_sethide(true, $component16);
if_sethide(true, $component18);
if_sethide(false, $component20);
if_sethide(true, $component22);
if_sethide(true, $component24);
$int29 = ~script1031($component1, enum_1170, $component3, $component6, $component7, $component8, $component9, $component10, $component11, $component12, $component13, $component14, $component15, $component16, $component17, $component18, $component19, $component20, $component21, $component22, $component23, $component24);
} else if ($component1 = $component22) {
if_sethide(true, $component8);
if_sethide(true, $component10);
if_sethide(true, $component12);
if_sethide(true, $component14);
if_sethide(true, $component16);
if_sethide(true, $component18);
if_sethide(true, $component20);
if_sethide(false, $component22);
if_sethide(true, $component24);
$int29 = ~script1031($component1, enum_1140, $component3, $component6, $component7, $component8, $component9, $component10, $component11, $component12, $component13, $component14, $component15, $component16, $component17, $component18, $component19, $component20, $component21, $component22, $component23, $component24);
} else if ($component1 = $component24) {
if_sethide(true, $component8);
if_sethide(true, $component10);
if_sethide(true, $component12);
if_sethide(true, $component14);
if_sethide(true, $component16);
if_sethide(true, $component18);
if_sethide(true, $component20);
if_sethide(true, $component22);
if_sethide(false, $component24);
$int29 = ~script1031($component1, enum_1625, $component3, $component6, $component7, $component8, $component9, $component10, $component11, $component12, $component13, $component14, $component15, $component16, $component17, $component18, $component19, $component20, $component21, $component22, $component23, $component24);
}
def_int $int30 = calc($int29 * $int28 + 2);
def_int $height31 = calc($int30 + 4);
def_int $height32 = calc(if_getheight($layer2) - $int26);
if ($height31 > $height32) {
if_setsize(if_getwidth($component0), $height32, ^setsize_abs, ^setsize_abs, $component4);
if_setscrollpos(0, 0, $component1);
if_setscrollsize(0, $int30, $component1);
} else {
if_setsize(if_getwidth($component0), $height31, ^setsize_abs, ^setsize_abs, $component4);
if_setscrollpos(0, 0, $component1);
if_setscrollsize(0, 0, $component1);
}
cc_deleteall($component5);
~scrollbar_vertical($component5, $component1, "scrollbar_dragger_v2,3", "scrollbar_dragger_v2,0", "scrollbar_dragger_v2,1", "scrollbar_dragger_v2,2", "scrollbar_v2,0", "scrollbar_v2,1");