ChatBoxInviteSelectionList
This component is used to populate a list of pending invites that a client can accept and join. I looks at the ChatBox's invitedChannels dictionary and makes child button objects that a client can select to join a channelid. This component automatically subscripts to the ChatBox's OnReceiveChannelInvite delegate to react in realtime to received invites from the server.
Public Functions
| Function | Description |
|---|---|
| PurgeSelectionList() | Destroy all child objects of the parent transform. |
| PopulateList() | Loops the invitedChannels dictionary of the ChatBox and generates buttons to represent these individual invites. |
| RefreshList() | Calls PurgeSelectionList() followed by PopulateList() |
| RefreshList(int id, string name) | Wrapper script for calling RefreshList() |