-
Notifications
You must be signed in to change notification settings - Fork 0
/
[clientscript,bank_depositbox_init].cs2
27 lines (27 loc) · 1.48 KB
/
[clientscript,bank_depositbox_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
// 144
[clientscript,bank_depositbox_init](component $component0, component $component1, component $component2, int $int3, component $component4, component $component5, component $component6, component $component7, component $component8, component $component9)
~bank_depositbox_layout($component0, $component2, $int3);
cc_deleteall($component1);
def_int $size10 = 0;
def_int $size11 = inv_size(inv);
while ($size10 < $size11) {
cc_create($component1, ^iftype_graphic, $size10);
cc_setsize(36, 32, ^setsize_abs, ^setsize_abs);
cc_setgraphicshadow(0x333333);
cc_setoutline(1);
cc_setdragdeadzone(5);
cc_setdragdeadtime(5);
cc_sethide(false);
$size10 = calc($size10 + 1);
}
~bank_depositbox_update($component1, $component8, $component9);
if_setoninvtransmit("bank_depositbox_update($component1, $component8, $component9){inv}", $component1);
if_setonvartransmit("bank_depositbox_update($component1, $component8, $component9){var261, var262, var263, var1793, var1794, var1141}", $component1);
if_setonmouseover("settrans($component5, 75)", $component4);
if_setonmouseleave("settrans($component5, 0)", $component4);
if_setonmouseover("settrans($component7, 75)", $component6);
if_setonmouseleave("settrans($component7, 0)", $component6);
def_graphic $graphic12 = "miscgraphics,0";
def_graphic $graphic13 = "miscgraphics,9";
if_setonop("bankmain_depositall(event_com, $graphic13, $graphic12, event_op)", $component4);
if_setonop("bankmain_depositall(event_com, $graphic13, $graphic12, event_op)", $component6);