Пример #1
0
        public void QueuePrivateMessage(string fromPlayer, string toPlayer, string privateMessage)
        {
            var pe = new PrivateEntry
            {
                FromPlayer = fromPlayer,
                ToPlayer   = toPlayer,
                Message    = privateMessage
            };

            NewPrivateMessages.Enqueue(pe);
        }
Пример #2
0
        public void QueuePrivateMessage(string fromPlayer, string toPlayer, string privateMessage)
        {
            var pe = new PrivateEntry
            {
                FromPlayer = fromPlayer,
                ToPlayer   = toPlayer,
                Message    = privateMessage
            };

            NewPrivateMessages.Enqueue(pe);
            if (!Screen.Display)
            {
                System.ChatButtonHighlighted = true;
                if (pe.FromPlayer != SettingsSystem.CurrentSettings.PlayerName)
                {
                    ScreenMessages.PostScreenMessage($"{pe.FromPlayer} -> @{pe.ToPlayer}: {pe.Message}", 5f,
                                                     ScreenMessageStyle.UPPER_LEFT);
                }
            }
        }