Skip to main content

FriendsInvitesPanel

A class in Root.Township, Alta.Meta.UI.ServerManagement.

Main menu list of friend requests you have sent, with an option to revoke each one.

Constructors​

MemberWhat it is
FriendsInvitesPanel()Unity makes components itself; use AddComponent or spawn a prefab instead of new.

Fields​

4 private and internal fields
MemberWhat it is
private IAnalyticsService analyticsServiceAnalytics service for social events.
private TextRenderer emptyListTextText shown when there are no requests.
private ListElementWithButton listElementRow prefab.
private UIList uiListThe list the rows go in.

Methods​

MemberWhat it is
void Inject(IAnalyticsService analyticsService)Receives the analytics service.
override async void RefreshData()Reloads the list behind a loading screen.
3 private and internal methods
MemberWhat it is
private async void Revoke(FriendshipInfo friendship)Removes a sent request, logs analytics and reloads.
private async Task SetupFriendsList()Fetches sent requests from the web API and builds a row for each.
private void ShowOptionsForFriend(FriendshipInfo friendship)Shows the Revoke option for a request.

Used in​

Members of other types that take, return or hold a FriendsInvitesPanel: