public void OpenChat(ChatMessageClickEvent e, Node any, [JoinAll] ActiveLobbyChat activeChannel, [JoinAll] SingleNode <SelfUserComponent> self) { OpenPersonalChannelEvent eventInstance = new OpenPersonalChannelEvent { UserUid = e.Link }; base.NewEvent(eventInstance).Attach(self).Attach(activeChannel).Schedule(); }
public void SendLobbyMessage(SendMessageEvent e, Node any, [JoinAll] ActiveLobbyChat activeChannel, [JoinAll] SingleNode <SelfUserComponent> self) { Event event2; if (ChatCommands.IsCommand(e.Message, out event2)) { base.NewEvent(event2).Attach(activeChannel).Attach(self).Schedule(); } else { base.ScheduleEvent(new SendChatMessageEvent(e.Message), activeChannel); } }
public void OpenChat(OpenPersonalChatFromContextMenuEvent e, SingleNode <UserUidComponent> friend, [JoinAll] SingleNode <SelfUserComponent> self, [JoinAll] ActiveLobbyChat activeChannel, [JoinAll] SingleNode <ChatDialogComponent> dialog) { if (!dialog.component.IsOpen() && !dialog.component.IsHidden()) { dialog.component.Maximaze(); } OpenPersonalChannelEvent eventInstance = new OpenPersonalChannelEvent { UserUid = friend.component.Uid.Replace("Deserter ", string.Empty) }; base.NewEvent(eventInstance).Attach(self).Attach(activeChannel).Schedule(); }