コード例 #1
0
        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();
        }
コード例 #2
0
        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();
        }