-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path[proc,script3362].cs2
69 lines (69 loc) · 2.76 KB
/
[proc,script3362].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
// 3362
[proc,script3362](boolean $boolean0, enum $enum1)(int)
def_int $width2 = if_getwidth(interface_162:50);
def_int $int3 = 0;
def_int $int4 = calc($width2 / 3 + 95);
def_int $int5 = calc($width2 / 2 - $int4 / 2);
def_int $int6 = 0;
def_obj $obj7 = %var2674;
if (($enum1 = null | enum(obj, boolean, $enum1, %var2674) = true) & ($boolean0 = false | ~deadman_restricted_item($obj7) = 0)) {
cc_create(interface_162:50, ^iftype_rectangle, $int6);
$int6 = calc($int6 + 1);
cc_setonkey("meslayer_mode14_select($obj7, event_key)");
cc_setsize($int4, 32, ^setsize_abs, ^setsize_abs);
cc_setposition($int5, 0, ^setpos_abs_left, ^setpos_abs_top);
cc_setcolour(^white);
cc_setfill(true);
cc_settrans(255);
cc_setonmouseover("cc_settrans(event_com, event_comsubid, 200, null)");
cc_setonmouseleave("cc_settrans(event_com, event_comsubid, 255, null)");
cc_setopbase("<col=ff9040><oc_name($obj7)></col>");
cc_setop(1, "Select");
cc_setonop("meslayer_mode14_select($obj7, ^key_return)");
cc_create(interface_162:50, ^iftype_text, $int6);
$int6 = calc($int6 + 1);
cc_setsize(95, 32, ^setsize_abs, ^setsize_abs);
cc_setposition($int5, 0, ^setpos_abs_left, ^setpos_abs_top);
$int5 = calc($int5 + 100);
$int4 = calc($int4 - 100);
cc_settextfont(p12_full);
cc_settextshadow(false);
cc_settextalign(^settextalign_left, ^settextalign_centre, 0);
cc_setcolour(^black);
cc_settext("Previous search:");
cc_create(interface_162:50, ^iftype_text, $int6);
$int6 = calc($int6 + 1);
cc_setsize(calc($int4 - 40), 32, ^setsize_abs, ^setsize_abs);
cc_setposition(calc($int5 + 40), 0, ^setpos_abs_left, ^setpos_abs_top);
cc_settextfont(p12_full);
cc_settextshadow(false);
cc_settextalign(^settextalign_left, ^settextalign_centre, 0);
cc_setcolour(^black);
cc_settext(oc_name($obj7));
cc_create(interface_162:50, ^iftype_graphic, $int6);
$int6 = calc($int6 + 1);
cc_setsize(36, 32, ^setsize_abs, ^setsize_abs);
cc_setposition($int5, 0, ^setpos_abs_left, ^setpos_abs_top);
cc_setoutline(1);
cc_setgraphicshadow(0x555555);
if (oc_stackable($obj7) = true) {
cc_setobject_nonum($obj7, 100);
} else {
cc_setobject_nonum($obj7, 1);
}
cc_create(interface_162:50, ^iftype_text, $int6);
$int6 = calc($int6 + 1);
cc_setposition(0, 0, ^setpos_abs_left, ^setpos_abs_bottom);
cc_setsize($width2, calc(if_getheight(interface_162:50) / 2), ^setsize_abs, ^setsize_abs);
cc_settextfont(p12_full);
cc_settextshadow(false);
cc_settextalign(^settextalign_centre, ^settextalign_top, 0);
cc_setcolour(^black);
cc_settext("Start typing the name of an item to search for it. You can press enter to select the last item you searched for.");
if_setscrollpos(0, 0, interface_162:50);
if_setscrollsize(0, 0, interface_162:50);
~scrollbar_resize(interface_162:51, interface_162:50, 0);
~script3397(5);
return(1);
}
return(0);