Skip to main content

JoinedGroupsList

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

Main menu panel component that lists the groups (servers) you have joined, fetched from the web API. Client only.

Constructors​

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

Fields​

4 private and internal fields
MemberWhat it is
private JoinedGroupListElement elementTemplatePrefab cloned for each joined group row.
private InviteUserToGroupViaFriendsPanel inviteUserPanelPanel used to invite friends to a group.
private SelectedGroupPanel selectedGroupPanelPanel that shows the details of a chosen group.
private UIList uiListThe list the group rows are put in.

Methods​

MemberWhat it is
override async void RefreshData()Reloads the joined groups list, showing the window's loading indicator while it runs.
3 private and internal methods
MemberWhat it is
private void InviteFriendToGroup(ListElement element)Handler for an element's invite button: opens the invite-a-friend panel for that group.
private async Task SetupJoinedGroupsList()Fetches your joined groups from ApiAccess.ApiClient, creates one element per group and resets the list with them.
private void SwapToSelectedGroupPanel(ListElement element)Handler for selecting an element: sets the selected group panel to that group.