-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path[clientscript,rune_pouch_init].cs2
46 lines (46 loc) · 1.75 KB
/
[clientscript,rune_pouch_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
// 453
[clientscript,rune_pouch_init](component $component0, component $component1, component $component2)
cc_deleteall($component1);
def_int $int3 = 7;
cc_create($component1, ^iftype_graphic, 0);
cc_setsize(36, 32, ^setsize_abs, ^setsize_abs);
cc_setposition($int3, 25, ^setpos_abs_left, ^setpos_abs_top);
cc_setgraphicshadow(0x333333);
cc_setoutline(1);
cc_setdragdeadzone(5);
cc_setdragdeadtime(5);
$int3 = calc($int3 + 36 + 20);
cc_create($component1, ^iftype_graphic, 1);
cc_setsize(36, 32, ^setsize_abs, ^setsize_abs);
cc_setposition($int3, 25, ^setpos_abs_left, ^setpos_abs_top);
cc_setgraphicshadow(0x333333);
cc_setoutline(1);
cc_setdragdeadzone(5);
cc_setdragdeadtime(5);
$int3 = calc($int3 + 36 + 20);
cc_create($component1, ^iftype_graphic, 2);
cc_setsize(36, 32, ^setsize_abs, ^setsize_abs);
cc_setposition($int3, 25, ^setpos_abs_left, ^setpos_abs_top);
cc_setgraphicshadow(0x333333);
cc_setoutline(1);
cc_setdragdeadzone(5);
cc_setdragdeadtime(5);
~rune_pouch_drawpouch($component1);
if_setonvartransmit("rune_pouch_drawpouch($component1){var1139, var1140}", $component0);
cc_deleteall($component2);
$int3 = calc((if_getwidth($component2) - (10 + 7 * 36)) / 6 + 36);
def_int $int4 = calc((if_getheight($component2) - (30 + 4 * 32)) / 3 + 32);
def_int $size5 = inv_size(inv);
def_int $size6 = 0;
while ($size6 < $size5) {
cc_create($component2, ^iftype_graphic, $size6);
cc_setsize(36, 32, ^setsize_abs, ^setsize_abs);
cc_setposition(calc(5 + $size6 % 7 * $int3), calc(25 + $size6 / 7 * $int4), ^setpos_abs_left, ^setpos_abs_top);
cc_setgraphicshadow(0x333333);
cc_setoutline(1);
cc_setdragdeadzone(5);
cc_setdragdeadtime(5);
$size6 = calc($size6 + 1);
}
~rune_pouch_drawinventory($component2);
if_setoninvtransmit("rune_pouch_drawinventory($component2){inv}", $component0);