public void AddUserLabel(NodeAddedEvent e, FriendUINode friendUI) { GameObject userLabelInstance = UserLabelBuilder.CreateDefaultLabel(); UserLabelBuilder builder = new UserLabelBuilder(friendUI.userGroup.Key, userLabelInstance, null, false); builder.SubscribeClick().Build().transform.SetParent(friendUI.inviteFriendListItem.UserLabelContainer.transform, false); }
public void SortListAndHideEmptyListNotification(NodeAddedEvent e, FriendUINode friendUI, [JoinByUser] FriendNode friend, [JoinAll] SingleNode <InviteFriendsListComponent> inviteFriendsList) { List <string> friendsUids = inviteFriendsList.component.FriendsUids; friendsUids.Add(friend.userUid.Uid); friendsUids.Sort(StringComparer.Ordinal); friendUI.inviteFriendListItem.transform.SetSiblingIndex(friendsUids.IndexOf(friend.userUid.Uid)); inviteFriendsList.component.EmptyListNotification.SetActive(false); }
public void LocalizeNotification(NodeAddedEvent e, FriendUINode friendUI, [JoinAll] SingleNode <InviteFriendsPanelLocalizationComponent> localization) { friendUI.inviteFriendListItem.NotificationText.text = localization.component.InviteSentNotification; }
public void HideInvitedFriendNotification(HideInvitedFriendNotificationEvent e, OnlineFriendNode friend, [JoinByUser] FriendUINode friendUI) { friendUI.inviteFriendListItem.NotificationContainer.SetActive(false); friendUI.inviteFriendListItem.UserLabelContainer.SetActive(true); }
public void HideBattleLabel(NodeRemoveEvent e, OnlineFriendInBattleNode onlineFriend, [JoinByUser] FriendUINode friendUI) { friendUI.inviteFriendListItem.BattleLabelContainer.SetActive(false); }
public void ShowBattleLabel(NodeAddedEvent e, OnlineFriendInBattleNode onlineFriend, [Context, JoinByUser] FriendUINode friendUI) { friendUI.inviteFriendListItem.BattleLabelContainer.SetActive(true); }