-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path[proc,script223].cs2
62 lines (62 loc) · 2.44 KB
/
[proc,script223].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
// 223
[proc,script223]
def_string $string0 = "<col=0000ff>";
def_int $colour0 = ^black;
def_int $colour1 = 0x5f5f5f;
if (~toplevel_chatbox_maketransparent = 1) {
$string0, $colour0, $colour1 = "<col=9090ff>", ^white, 0xbfbfbf;
if_settextshadow(true, interface_162:55);
} else {
if_settextshadow(false, interface_162:55);
}
if_setcolour($colour0, interface_162:55);
def_int $length2 = string_length(%varcstring335);
def_string $string1 = escape(%varcstring335);
def_string $string2 = "";
def_int $width3 = 0;
def_boolean $boolean4 = ~on_mobile;
if (%varbit8119 = 1) {
if (~league_world = 1) {
$string2 = "<img=22><chat_playername>";
} else {
$string2 = "<enum(int, string, enum_1894, %varbit1777)><chat_playername>";
}
if ($boolean4 = true) {
$string2 = append($string2, "<img=19>");
}
$string2 = append($string2, ": <$string0><$string1></col>");
if ($length2 < 80) {
$string2 = append($string2, "<$string0>*</col>");
}
$width3 = parawidth($string2, ^max_32bit_int, p12_full);
if ($boolean4 = true) {
if_setsize(~max(60, calc(5 + $width3)), 30, ^setsize_abs, ^setsize_abs, interface_162:36);
if_setposition(0, 0, ^setpos_abs_left, ^setpos_abs_bottom, interface_162:36);
} else {
if_setsize(0, 30, ^setsize_abs, ^setsize_minus, interface_162:36);
if_setposition(0, 0, ^setpos_abs_left, ^setpos_abs_bottom, interface_162:36);
}
if ($width3 > if_getwidth(interface_162:55)) {
if_settextalign(^settextalign_right, ^settextalign_bottom, 0, interface_162:55);
} else {
if_settextalign(^settextalign_left, ^settextalign_bottom, 0, interface_162:55);
}
if_clearops(interface_162:55);
if_setonmouserepeat(null, interface_162:55);
if_setonmouseleave(null, interface_162:55);
if_setonop(null, interface_162:55);
} else {
if (~league_world = 1) {
$string2 = "<img=22> You must set a name before you can chat.";
} else {
$string2 = "<enum(int, string, enum_1894, %varbit1777)> You must set a name before you can chat.";
}
if_settextalign(^settextalign_centre, ^settextalign_bottom, 0, interface_162:55);
if_setop(10, "Configure", interface_162:55);
if_setopbase("<col=ff9040>Display name</col>", interface_162:55);
if_setonmouserepeat("text_colour_swapper(event_com, $colour1)", interface_162:55);
if_setonmouseleave("text_colour_swapper(event_com, $colour0)", interface_162:55);
if_setonop("opsound(event_opindex, 1024)", interface_162:55);
}
if_settext($string2, interface_162:55);
if_setsize(3, 16, ^setsize_minus, ^setsize_abs, interface_162:55);