public void RejectFriend(ButtonClickEvent e, SingleNode <RejectFriendButtonComponent> button, [JoinByScreen] ProfileScreenWithUserGroupNode profileScreen, [JoinByUser] IncommingFriendNode incommingFriend, [JoinAll] SingleNode <SelfUserComponent> selfUser) { base.ScheduleEvent(new RejectFriendEvent(incommingFriend.Entity), selfUser); }
public void ShowIncommingFriendButtons(NodeAddedEvent e, ProfileScreenWithUserGroupNode profileScreen, [Context, JoinByUser] IncommingFriendNode incommingFriend) { profileScreen.profileScreen.FriendRequestRow.SetActive(true); profileScreen.profileScreen.AddToFriendRow.SetActive(false); }
public void HideIncommingFriendButtons(NodeRemoveEvent e, IncommingFriendNode incommingFriend, [JoinByUser] ProfileScreenWithUserGroupNode profileScreen) { profileScreen.profileScreen.FriendRequestRow.SetActive(false); profileScreen.profileScreen.AddToFriendRow.SetActive(true); }