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 ShowOutgoingFriendButton(NodeAddedEvent e, OutgoingFriendNode friend, [JoinByUser, Context, Combine] FriendLabelNode userLabel) { userLabel.outgoingFriendButtons.IsOutgoing = true; }
public void ShowIncomingFriendButtons(NodeAddedEvent e, IncomingFriendNode friend, [JoinByUser, Context, Combine] FriendLabelNode userLabel) { userLabel.incomingFriendButtons.IsIncoming = true; }
public void HideIncomingFriendButtons(NodeAddedEvent e, AcceptedFriendNode friend, [JoinByUser, Context, Combine] FriendLabelNode userLabel) { userLabel.incomingFriendButtons.IsIncoming = false; userLabel.outgoingFriendButtons.IsOutgoing = false; }