Ejemplo n.º 1
0
 public void ShowSelfUserTooltip(RightMouseButtonClickEvent e, SelfUserLabelNode selfUserButton, [JoinAll] SelfUserInSquadNode selfUser, [JoinAll] ICollection <TeammateNode> teammates, [JoinAll] SingleNode <FriendsComponent> friends)
 {
     if (teammates.Count > 0)
     {
         this.ShowTooltip(selfUser, selfUser, selfUserButton.squadTeammateInteractionButton, friends.component);
     }
 }
Ejemplo n.º 2
0
        public void ShowTooltipInLobby(RightMouseButtonClickEvent e, FriendLabelNode userButton, [JoinByUser] FriendNode friend, [JoinByUser] Optional <UserInBattleNode> userInBattle, [JoinAll] SingleNode <SelfUserComponent> selfUser)
        {
            bool flag  = friend.Entity.HasComponent <AcceptedFriendComponent>();
            bool flag2 = selfUser.Entity.HasComponent <UserAdminComponent>();
            CheckForSpectatorButtonShowEvent eventInstance = new CheckForSpectatorButtonShowEvent();

            base.ScheduleEvent(eventInstance, friend);
            CheckForShowInviteToSquadEvent event3 = new CheckForShowInviteToSquadEvent();

            base.ScheduleEvent(event3, friend);
            FriendInteractionTooltipData data = new FriendInteractionTooltipData {
                FriendEntity                  = friend.Entity,
                ShowRemoveButton              = flag,
                ShowEnterAsSpectatorButton    = (userInBattle.IsPresent() && (flag || flag2)) && eventInstance.CanGoToSpectatorMode,
                ShowInviteToSquadButton       = event3.ShowInviteToSquadButton,
                ActiveShowInviteToSquadButton = event3.ActiveInviteToSquadButton,
                ShowRequestToSquadButton      = event3.ShowRequestToInviteToSquadButton,
                ShowChatButton                = friend.Entity.HasComponent <UserOnlineComponent>()
            };

            TooltipController.Instance.ShowTooltip(Input.mousePosition, data, userButton.friendInteractionButton.tooltipPrefab, false);
        }
Ejemplo n.º 3
0
 public void ShowTooltipInLobby(RightMouseButtonClickEvent e, TeammateLabelNode userButton, [JoinByUser] UserNode user, [JoinAll] SelfUserNode selfUser, [JoinAll] SingleNode <FriendsComponent> friends)
 {
     this.ShowTooltip(user, selfUser, userButton.squadTeammateInteractionButton, friends.component);
 }
Ejemplo n.º 4
0
 public void ShowTooltipInBattleRightClick(RightMouseButtonClickEvent e, BattleInteractableUserButtonNode userButton, [JoinByUser] UserNode user, [JoinAll] SelfUserNode selfUser, [JoinByBattle] BattleNode battle)
 {
     this.ShowTooltipInBattle(userButton, user, selfUser, battle);
 }
Ejemplo n.º 5
0
 public void RequestTooltipAtBattleResultRightClick(RightMouseButtonClickEvent e, SingleNode <UserInteractionsButtonComponent> userButton, [JoinAll] SelfUserNode selfUser)
 {
     this.ShowTooltipAtBattleResult(userButton.component, selfUser.Entity);
 }
Ejemplo n.º 6
0
 public void ShowTooltipInLobbyRightClick(RightMouseButtonClickEvent e, LobbyInteractableUserButtonNode userButton, [JoinAll] SelfUserNode selfUser, [JoinByBattleLobby] LobbyNode lobby)
 {
     this.ShowTooltipInLobby(userButton, selfUser, lobby);
 }
Ejemplo n.º 7
0
 public void ShowSelfUserTooltip(RightMouseButtonClickEvent e, SelfUserLabelNode selfUserButton, [JoinAll] SelfUserNode selfUser)
 {
     this.ShowTooltip(selfUser, selfUser, selfUserButton.squadTeammateInteractionButton);
 }