MODSMicMuteQuickAccessAction
A class in Root.Township, Alta.QuickAccessActions.
Quick access menu action for moderators that toggles a mod mic mute through ModsMicMuteManager. The mute turns itself off after maxMuteDuration. Client only.
Constructors
| Member | What it is |
|---|
MODSMicMuteQuickAccessAction() | Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets. |
Fields
3 private and internal fields
| Member | What it is |
|---|
private Timeline.IEntry entry | Timeline entry for the automatic unmute, cancelled when the mute is turned off by hand. |
private bool isActive | Backing field for IsActive. |
private float maxMuteDuration | Seconds before the mute turns itself off (default 30). |
Properties
| Member | What it is |
|---|
override bool IsActive { get; } | True while the mod mute is on. |
override bool IsValid { get; } | Always true. |
Methods
| Member | What it is |
|---|
override void Run(Controller controller) | Toggles the mute and sends the request for the local player. When turned on, schedules a second Run after maxMuteDuration to turn it off. |
Used in
Members of other types that take, return or hold a MODSMicMuteQuickAccessAction: