A class in Root.Township, Alta.QuickAccessActions.
Bubble icon for the mute non-friends action: shows the icon for the current voice chat scope, with a slash when nobody is audible.
Constructors
| Member | What it is |
|---|
MuteNonFriendsActionIcon() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
4 private and internal fields
| Member | What it is |
|---|
private MuteNonFriendsQuickAccessAction action | The mute non-friends action shown. |
private GameObject[] icons | One icon per voice chat scope. |
private GameObject slash | Shown when the scope is no one. |
private IVoiceChat voiceChat | The voice chat interface. |
Methods
| Member | What it is |
|---|
void OnEnable() | Gets the voice chat interface. |
void SetupAction(QuickAccessMenuAction action) | Hooks the action's active event and refreshes the icon. |
2 private and internal methods
| Member | What it is |
|---|
private void OnDestroy() | Unhooks from the action. |
private void SetActive(bool isActive) | Shows the icon matching the voice chat's audible scope and the slash for no one. |