Class SettingsPage
A Page used to display a set of interactable SystemSettings and TimerSettings.
Inheritance
Implements
Inherited Members
Namespace: AdrianMiasik.Components.Core.Items.Pages
Assembly: Assembly-CSharp.dll
Syntax
public class SettingsPage : Page, IColorHook
Methods
| Improve this Doc View SourceAddCustomDropdownSoundOption(AudioClip, String)
Declaration
public void AddCustomDropdownSoundOption(AudioClip audioClip, string audioFile)
Parameters
| Type | Name | Description |
|---|---|---|
| UnityEngine.AudioClip | audioClip | |
| System.String | audioFile |
ColorUpdate(Theme)
Applies our Theme changes to our referenced components when necessary.
Declaration
public override void ColorUpdate(Theme theme)
Parameters
| Type | Name | Description |
|---|---|---|
| Theme | theme | The theme to apply on our referenced components. |
Overrides
| Improve this Doc View SourceHideMuteSoundOutOfFocusOption()
Hides the 'sound mute when application is out of focus' option from the user.
Declaration
public void HideMuteSoundOutOfFocusOption()
Initialize(PomodoroTimer)
Declaration
public void Initialize(PomodoroTimer pomodoroTimer)
Parameters
| Type | Name | Description |
|---|---|---|
| PomodoroTimer | pomodoroTimer |
Refresh()
Updates all elements present on this page using the current loaded System and Timer settings.
Declaration
public override void Refresh()
Overrides
| Improve this Doc View SourceRemoveCustomDropdownSoundOption(String)
Declaration
public void RemoveCustomDropdownSoundOption(string audioFile)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | audioFile |
SetDigitFormatDropdown(Int32)
Sets the switch digit layout dropdown to the provided digit format index. (See: DigitFormat.SupportedFormats)
Declaration
public void SetDigitFormatDropdown(int value)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | value | The index value you want the dropdown to be set at. |
Show(Action)
Displays this panel to the user.
Declaration
public override void Show(Action onAnimationCompletion)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Action | onAnimationCompletion |
Overrides
| Improve this Doc View SourceShowMuteSoundOutOfFocusOption()
Shows the 'sound mute when application is out of focus' option to the user.
Declaration
public void ShowMuteSoundOutOfFocusOption()
UpdateDigitFormatDropdown()
Updates the switch digit layout dropdown to use the current timer's digit format.
Declaration
public void UpdateDigitFormatDropdown()
ValidateCustomSoundChoice()
Declaration
public void ValidateCustomSoundChoice()