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
| Member | What it is |
|---|
InviteUserToGroupPanel() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
3 private and internal fields
| Member | What it is |
|---|
private ListElementWithButton elementTemplate | Row prefab cloned for each group. |
private UIList uiList | The list that holds the group rows. |
private UserInfo user | The user being invited, set by SetupForUser. |
Methods
| Member | What 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
| Member | What 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: