Skip to main content

GroupInfoTab

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

Server management tab showing a group's name, description, type and member count, with leave and invite buttons.

Constructors​

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

Fields​

4 private and internal fields
MemberWhat it is
private TextRenderer infoTextText for the group's info.
private InviteUserToGroupViaFriendsPanel invitePanelPanel for inviting friends to the group.
private ButtonWithEvents leaveGroupButtonThe leave button.
private PanelComponent serverListPanelServer list shown after leaving.

Methods​

MemberWhat it is
void InviteFriendToGroup()Opens the invite-a-friend panel for this group.
override void RefreshData()Writes the group's info into the text.
4 private and internal methods
MemberWhat it is
private void HandleLeaveButtonPress(Button obj)Asks for confirmation before leaving the group.
private async void LeaveGroup()Leaves the group behind a loading screen.
private async Task LeaveGroupAsync()Leaves the group, then refreshes and shows the server list; shows a popup on failure.
private void Start()Hooks the leave button.

Used in​

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