Show / Hide Table of Contents

Class OptionSetAlarmSound

Inheritance
System.Object
UnityEngine.Object
UnityEngine.Component
UnityEngine.Behaviour
UnityEngine.MonoBehaviour
ThemeElement
SettingsOptionDropdown
OptionSetAlarmSound
Implements
IColorHook
Inherited Members
SettingsOptionDropdown.m_dropdown
SettingsOptionDropdown.SetDropdownValue(Int32)
SettingsOptionDropdown.ColorUpdate(Theme)
ThemeElement.Timer
ThemeElement.IsInitialized()
ThemeElement.OnDestroy()
Namespace: AdrianMiasik.Components.Specific.Settings
Assembly: Assembly-CSharp.dll
Syntax
public class OptionSetAlarmSound : SettingsOptionDropdown, IColorHook

Methods

| Improve this Doc View Source

AddCustomDropdownSoundOption(AudioClip, String)

Declaration
public void AddCustomDropdownSoundOption(AudioClip audio, string alarmName)
Parameters
Type Name Description
UnityEngine.AudioClip audio
System.String alarmName
| Improve this Doc View Source

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
ThemeElement.Initialize(PomodoroTimer, Boolean)
| Improve this Doc View Source

PrintCustomAlarmSoundsDictionary()

Declaration
[Command("print-custom-alarm-sound-dictionary", Platform.AllPlatforms, MonoTargetType.Single)]
[ContextMenu("Print 'Custom alarm sounds' dictionary.")]
public void PrintCustomAlarmSoundsDictionary()
| Improve this Doc View Source

RemoveCustomDropdownSoundOption(String)

Declaration
public void RemoveCustomDropdownSoundOption(string audioFile)
Parameters
Type Name Description
System.String audioFile
| Improve this Doc View Source

ValidateAlarmSoundIndex()

Declaration
public void ValidateAlarmSoundIndex()

Implements

IColorHook
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX