This repository was archived by the owner on Feb 4, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy path[proc,script223].cs2
73 lines (73 loc) · 2.61 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
63
64
65
66
67
68
69
70
71
72
73
// 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;
if (%varbit8119 = 1) {
if (~league_world = 1) {
$string2 = "<~script7776><chat_playername>";
} else if (~speedrunning_world = 1) {
$string2 = "<img=52><chat_playername>";
} else {
$string2 = "<enum(int, string, enum_1894, %varbit1777)><chat_playername>";
}
switch_int (%varcint945) {
case 1 :
$string2 = append($string2, " (channel)");
case 2 :
$string2 = append($string2, " (clan)");
case 3 :
$string2 = append($string2, " (guest clan)");
case 4 :
if (~is_group_iron = 1) {
$string2 = append($string2, " (group)");
} else {
%varcint945 = 0;
}
}
$string2 = append($string2, ": <$string0><$string1></col>");
if (~script1353(%varcstring335) = 1) {
if ($length2 < 79) {
$string2 = append($string2, "<$string0>*</col>");
}
} else if ($length2 < 80) {
$string2 = append($string2, "<$string0>*</col>");
}
$width3 = parawidth($string2, ^max_32bit_int, p12_full);
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 = "<~script7776> You must set a name before you can chat.";
} else if (~speedrunning_world = 1) {
$string2 = "<img=52> 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_op, 1024)", interface_162:55);
}
if_settext($string2, interface_162:55);
if_setsize(3, 16, ^setsize_minus, ^setsize_abs, interface_162:55);