Class OptionSetAlarmSound
Inheritance
System.Object
UnityEngine.Object
UnityEngine.Component
UnityEngine.Behaviour
UnityEngine.MonoBehaviour
OptionSetAlarmSound
Implements
Inherited Members
Namespace: AdrianMiasik.Components.Specific.Settings
Assembly: Assembly-CSharp.dll
Syntax
public class OptionSetAlarmSound : SettingsOptionDropdown, IColorHook
Methods
| Improve this Doc View SourceAddCustomDropdownSoundOption(AudioClip, String)
Declaration
public void AddCustomDropdownSoundOption(AudioClip audio, string alarmName)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.AudioClip | audio | |
System.String | alarmName |
Initialize(PomodoroTimer, Boolean)
Initializes this SettingsOptionDropdown, adds our preInstalledAlarms to the alarm bank dictionary, verifies our saved index/key is valid, and add onValueChanged listener to dropdown.
Declaration
public override void Initialize(PomodoroTimer pomodoroTimer, bool updateColors = true)
Parameters
Type | Name | Description |
---|---|---|
PomodoroTimer | pomodoroTimer | |
System.Boolean | updateColors |
Overrides
| Improve this Doc View SourcePrintCustomAlarmSoundsDictionary()
Declaration
[Command("print-custom-alarm-sound-dictionary", Platform.AllPlatforms, MonoTargetType.Single)]
[ContextMenu("Print 'Custom alarm sounds' dictionary.")]
public void PrintCustomAlarmSoundsDictionary()
RemoveCustomDropdownSoundOption(String)
Declaration
public void RemoveCustomDropdownSoundOption(string audioFile)
Parameters
Type | Name | Description |
---|---|---|
System.String | audioFile |
ValidateAlarmSoundIndex()
Declaration
public void ValidateAlarmSoundIndex()