Skip to main content

InviteUserToGroupPanel

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

Client panel that lets the player pick one of their groups to invite a given user to. Only groups where they have invite permission are listed.

Constructors​

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

Fields​

3 private and internal fields
MemberWhat it is
private ListElementWithButton elementTemplateRow prefab cloned for each group.
private UIList uiListThe list that holds the group rows.
private UserInfo userThe user being invited, set by SetupForUser.

Methods​

MemberWhat it is
void InviteToGroup(JoinedGroupManager group)Asks for confirmation before inviting the user to the chosen group.
override async void RefreshData()Rebuilds the group list behind a loading screen.
void SetupForUser(UserInfo user)Sets the user to invite and opens the window.
2 private and internal methods
MemberWhat it is
private async void FinishInvite(JoinedGroupManager group)Adds the invite through the API behind a loading screen, then closes the window.
private async Task SetupGroupsList()Lists the joined groups where the player has invite permission; picking one calls InviteToGroup.

Used in​

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