-
Notifications
You must be signed in to change notification settings - Fork 11
/
[proc,bankmain_tabicon].cs2
86 lines (86 loc) · 4.84 KB
/
[proc,bankmain_tabicon].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
// 506
[proc,bankmain_tabicon](component $component0, component $component1, component $component2, component $component3, component $component4, component $component5, component $component6, component $component7, component $component8, component $component9, component $component10, component $component11, int $int12, int $int13, int $int14, int $int15, int $int16, int $int17, int $y18, int $flags19, component $component20, component $component21, component $component22, component $component23, component $component24)(int, int)
def_obj $obj25 = null;
def_string $text0 = "";
def_int $int26 = 0;
if (.cc_find($component8, $int12) = ^true) {
if ($int12 = 0) {
cc_create($component8, ^iftype_graphic, calc($int12 + 9 + 1));
cc_setsize(36, 32, ^setsize_abs, ^setsize_abs);
cc_setposition(calc($int12 * 40 + $int16 + $int17), $y18, ^setpos_abs_left, ^setpos_abs_top);
cc_setgraphic("banktab_icons,0");
cc_settrans(20);
cc_setop(1, "View all items");
cc_setop(7, "Remove placeholders");
cc_setonop("bankmain_switchtab($component0, $component1, $component2, $component3, $component4, $component5, $component6, $component7, $component8, $component9, $component10, $component11, event_opindex, $int12, $component20, $component21, $component22, $component23, $component24)");
~bankmain_tabicon_highlight($int12);
} else if ($int13 > 0) {
if (%varbit4170 = 1) {
$text0 = tostring($int12);
cc_create($component8, ^iftype_text, calc($int12 + 9 + 1));
cc_setsize(41, 40, ^setsize_abs, ^setsize_abs);
cc_setposition(calc($int12 * 40 + $int16), 0, ^setpos_abs_left, ^setpos_abs_top);
cc_settextalign(^settextalign_centre, ^settextalign_centre, 0);
cc_settextfont(quill_oblique_large);
cc_settextshadow(true);
cc_setcolour(0xe4d8a2);
cc_settext($text0);
cc_setondragcomplete("bankmain_dragtab_text(event_com, event_comsubid, event_drop, event_dropsubid, $flags19)");
~script507($component0, $component1, $component2, $component3, $component4, $component5, $component6, $component7, $component8, $component9, $component10, $component11, $int12, $component20, $component21, $component22, $component23, $component24);
~bankmain_tabicon_highlight($int12);
} else if (%varbit4170 = 2) {
$text0 = enum(int, string, enum_207, $int12);
cc_create($component8, ^iftype_text, calc($int12 + 9 + 1));
cc_setsize(41, 35, ^setsize_abs, ^setsize_abs);
cc_setposition(calc($int12 * 40 + $int16), 0, ^setpos_abs_left, ^setpos_abs_top);
cc_settextalign(^settextalign_centre, ^settextalign_centre, 0);
cc_settextfont(barbassault_font);
cc_settextshadow(true);
cc_setcolour(0xe4d8a2);
cc_settext($text0);
cc_setondragcomplete("bankmain_dragtab_text(event_com, event_comsubid, event_drop, event_dropsubid, $flags19)");
~script507($component0, $component1, $component2, $component3, $component4, $component5, $component6, $component7, $component8, $component9, $component10, $component11, $int12, $component20, $component21, $component22, $component23, $component24);
~bankmain_tabicon_highlight($int12);
} else {
$obj25 = inv_getobj(bank, $int14);
cc_create($component8, ^iftype_graphic, calc($int12 + 9 + 1));
cc_setsize(36, 32, ^setsize_abs, ^setsize_abs);
cc_setposition(calc($int12 * 40 + $int16 + $int17 + 1), $y18, ^setpos_abs_left, ^setpos_abs_top);
cc_setgraphicshadow(0x333333);
cc_setoutline(1);
if ($obj25 ! null) {
cc_setobject_nonum($obj25, inv_getnum(bank, $int14));
if (oc_unplaceholder($obj25) ! $obj25) {
cc_settrans(120);
cc_setondragcomplete("bankmain_dragtab_graphic(event_com, event_comsubid, event_drop, event_dropsubid, $flags19, 120)");
} else {
cc_settrans(0);
cc_setondragcomplete("bankmain_dragtab_graphic(event_com, event_comsubid, event_drop, event_dropsubid, $flags19, 0)");
}
} else {
cc_setobject_nonum(obj_6512, 1);
cc_settrans(0);
cc_setondragcomplete("bankmain_dragtab_graphic(event_com, event_comsubid, event_drop, event_dropsubid, $flags19, 0)");
}
~script507($component0, $component1, $component2, $component3, $component4, $component5, $component6, $component7, $component8, $component9, $component10, $component11, $int12, $component20, $component21, $component22, $component23, $component24);
~bankmain_tabicon_highlight($int12);
}
} else if ($int15 = 0) {
cc_create($component8, ^iftype_graphic, calc($int12 + 9 + 1));
cc_setsize(36, 32, ^setsize_abs, ^setsize_abs);
cc_setposition(calc($int12 * 40 + $int16 + $int17), $y18, ^setpos_abs_left, ^setpos_abs_top);
cc_setgraphic("banktab_icons,1");
cc_settrans(20);
cc_setop(1, "New tab");
cc_setonop("opsound(event_opindex, 1)");
cc_setdragdeadzone(512);
cc_setdragdeadtime(^max_32bit_int);
.cc_setgraphic("banktabs,3");
$int15 = 1;
} else {
cc_create($component8, ^iftype_graphic, calc($int12 + 9 + 1));
cc_sethide(true);
.cc_sethide(true);
}
}
return(calc($int14 + $int13), $int15);