Class CompletionLabel
A ThemeElement used primarily to update the color of the referenced "TIMER COMPLETE" labels via IColorHook ColorUpdate. This component is used to prompt the user that the timer is finished. Also used for offsetting the labels depending on long break setting. AdrianMiasik.Components.Specific.Settings b
Inheritance
System.Object
UnityEngine.Object
UnityEngine.Component
UnityEngine.Behaviour
UnityEngine.MonoBehaviour
CompletionLabel
Inherited Members
Namespace: AdrianMiasik.Components.Specific
Assembly: Assembly-CSharp.dll
Syntax
public class CompletionLabel : ThemeElement, IColorHook, ITimerState
Methods
| Improve this Doc View SourceColorUpdate(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 SourceHideCompletionAnimation()
Declaration
public void HideCompletionAnimation()
MoveAnchors(Boolean)
Declaration
public void MoveAnchors(bool isItLongBreak)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | isItLongBreak |
SetScale(Single)
Sets the local scale of the completion label to the provided multiplier.
Declaration
public void SetScale(float desiredScale)
Parameters
Type | Name | Description |
---|---|---|
System.Single | desiredScale |
StateUpdate(PomodoroTimer.States, Theme)
Declaration
public void StateUpdate(PomodoroTimer.States state, Theme theme)
Parameters
Type | Name | Description |
---|---|---|
PomodoroTimer.States | state | |
Theme | theme |