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); } }
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); }
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); }
public void ShowTooltipInBattleRightClick(RightMouseButtonClickEvent e, BattleInteractableUserButtonNode userButton, [JoinByUser] UserNode user, [JoinAll] SelfUserNode selfUser, [JoinByBattle] BattleNode battle) { this.ShowTooltipInBattle(userButton, user, selfUser, battle); }
public void RequestTooltipAtBattleResultRightClick(RightMouseButtonClickEvent e, SingleNode <UserInteractionsButtonComponent> userButton, [JoinAll] SelfUserNode selfUser) { this.ShowTooltipAtBattleResult(userButton.component, selfUser.Entity); }
public void ShowTooltipInLobbyRightClick(RightMouseButtonClickEvent e, LobbyInteractableUserButtonNode userButton, [JoinAll] SelfUserNode selfUser, [JoinByBattleLobby] LobbyNode lobby) { this.ShowTooltipInLobby(userButton, selfUser, lobby); }
public void ShowSelfUserTooltip(RightMouseButtonClickEvent e, SelfUserLabelNode selfUserButton, [JoinAll] SelfUserNode selfUser) { this.ShowTooltip(selfUser, selfUser, selfUserButton.squadTeammateInteractionButton); }