-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path[proc,welcome_screen_messages].cs2
27 lines (27 loc) · 1.18 KB
/
[proc,welcome_screen_messages].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
// 2214
[proc,welcome_screen_messages](component $component0, component $component1, component $component2, int $int3)
if ($int3 = 0) {
if (%var1781 = 1) {
if_settext("You have<br><col=00ff00>1</col> unread<br>message in<br>your inbox.", $component1);
} else if (%var1781 > 0) {
if_settext("You have<br><col=00ff00><~tostring_spacer(%var1781, ",")></col> unread<br>messages in<br>your inbox.", $component1);
} else {
if_settext("You have<br>0 unread<br>messages in<br>your inbox.", $component1);
}
} else if (%var1781 = 1) {
if_settext("You have <col=00ff00>1 unread message</col><br>in your message centre.", $component1);
} else if (%var1781 > 0) {
if_settext("You have <col=00ff00><~tostring_spacer(%var1781, ",")> unread messages</col><br>in your message centre.", $component1);
} else {
if_settext("You have no unread messages<br>in your message centre.", $component1);
}
if (~on_mobile = false) {
if_setonmouserepeat("comp_sethide(false, $component2)", $component0);
if_setonmouseleave("comp_sethide(true, $component2)", $component0);
}
if (clienttype ! ^clienttype_ios) {
if_setop(1, "View Inbox", $component0);
} else {
if_setop(1, "", $component0);
}
if_sethide(true, $component2);