-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path[clientscript,wom_tab_init].cs2
43 lines (43 loc) · 1.76 KB
/
[clientscript,wom_tab_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
// 6
[clientscript,wom_tab_init](component $component0, component $component1, component $component2)
def_int $count3 = 0;
def_component $component4 = null;
def_component $component5 = null;
def_string $string0 = "";
def_int $int6 = 0;
def_int $int7 = 0;
def_int $int8 = 0;
def_int $count9 = enum_getoutputcount(enum_2070);
while ($count3 <= $count9) {
$component4 = ~wom_get_tab($count3);
$component5 = ~wom_get_text($count3);
$string0 = enum(int, string, enum_2071, $count3);
if (map_members = ^false & compare($string0, "Free") ! 0) {
$string0 = "";
}
if ($component4 = null) {
return;
}
if ($component5 = null) {
if_sethide(true, $component4);
}
if (compare($string0, "") = 0) {
if_sethide(true, $component4);
} else {
$int7 = ~max(40, calc(40 + parawidth($string0, 400, p11_full)));
if_setonmouseover("text_colour_swapper($component5, ^white)", $component4);
if_setonmouseleave("text_colour_swapper($component5, 0xff981f)", $component4);
if_setonop("wom_tab_highlight_onclick($count3, $component1, $component2)", $component4);
if_setonvartransmit("wom_tab_highlight($component1, $component2){var279}", $component0);
if_setoninvtransmit("wom_item_update($component1, $component2){inv, worn, bank}", $component1);
if_sethide(false, $component4);
if_setsize($int7, 0, ^setsize_abs, ^setsize_minus, $component4);
if_settext($string0, $component5);
if_setposition($int6, 0, ^setpos_abs_left, ^setpos_abs_centre, $component4);
$int6 = calc($int6 + $int7);
}
$count3 = calc($count3 + 1);
}
~wom_build_item_list($component1, $component2);
if_setscrollpos(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");