Skip to main content

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​

MemberWhat it is
MODSMicMuteQuickAccessAction()Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets.

Fields​

3 private and internal fields
MemberWhat it is
private Timeline.IEntry entryTimeline entry for the automatic unmute, cancelled when the mute is turned off by hand.
private bool isActiveBacking field for IsActive.
private float maxMuteDurationSeconds before the mute turns itself off (default 30).

Properties​

MemberWhat it is
override bool IsActive { get; }True while the mod mute is on.
override bool IsValid { get; }Always true.

Methods​

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