-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path[proc,displayname_draw].cs2
30 lines (30 loc) · 1.22 KB
/
[proc,displayname_draw].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
// 634
[proc,displayname_draw](component $component0, component $component1, component $component2)
if (%varbit5605 = 1) {
~displayname_statusstatic($component0);
~displayname_button_init($component1, "Look up name");
~displayname_disablebutton($component2, "---");
} else if (%varbit5605 = 2) {
if_setontimer("displayname_statusflash($component0)", $component0);
~displayname_disablebutton($component1, "Look up name");
~displayname_disablebutton($component2, "---");
} else if (%varbit5605 = 4) {
~displayname_statusstatic($component0);
~displayname_button_init($component1, "Another name");
if (%varbit5606 = 1 & %varbit5607 = 0) {
if (string_length(%varcstring229) <= 0) {
%varcstring229 = "-";
}
~displayname_button_init($component2, "<col=00ff00><%varcstring229></col>");
} else {
~displayname_disablebutton($component2, "---");
}
} else if (%varbit5605 = 5) {
if_setontimer("displayname_statusflash($component0)", $component0);
~displayname_disablebutton($component1, "Another name");
~displayname_disablebutton($component2, "---");
} else {
if_setontimer("displayname_statusflash($component0)", $component0);
~displayname_disablebutton($component1, "Look up name");
~displayname_disablebutton($component2, "---");
}