Skip to main content

MuteNonFriendsActionIcon

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​

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

Fields​

4 private and internal fields
MemberWhat it is
private MuteNonFriendsQuickAccessAction actionThe mute non-friends action shown.
private GameObject[] iconsOne icon per voice chat scope.
private GameObject slashShown when the scope is no one.
private IVoiceChat voiceChatThe voice chat interface.

Methods​

MemberWhat 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
MemberWhat 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.