Class RightButton
A ThemeElement button used to play / pause the timer. Implements ITimerState
to change graphics depending on the PomodoroTimer's current state.
(See PomodoroTimer.States)
Inheritance
Inherited Members
Namespace: AdrianMiasik.Components.Specific
Assembly: Assembly-CSharp.dll
Syntax
public class RightButton : ThemeElement, IColorHook, ITimerState
Fields
| Improve this Doc View Sourcem_onClick
Invoked when this button is clicked.
Declaration
public UnityEvent m_onClick
Field Value
Type | Description |
---|---|
UnityEngine.Events.UnityEvent |
m_pauseOnClick
Invoked when the user presses the pause button.
Declaration
public UnityEvent m_pauseOnClick
Field Value
Type | Description |
---|---|
UnityEngine.Events.UnityEvent |
m_playOnClick
Invoked when the user is presses the play button / is resuming from a paused state.
Declaration
public UnityEvent m_playOnClick
Field Value
Type | Description |
---|---|
UnityEngine.Events.UnityEvent |
m_snoozeOnClick
Invoked when the user presses the switch timer button. (Work / Break)
Declaration
public UnityEvent m_snoozeOnClick
Field Value
Type | Description |
---|---|
UnityEngine.Events.UnityEvent |
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 SourceInitialize(PomodoroTimer)
Sets up this component. (ThemeElement register)
Declaration
public void Initialize(PomodoroTimer pomodoroTimer)
Parameters
Type | Name | Description |
---|---|---|
PomodoroTimer | pomodoroTimer |
OnClick()
Invoked when the user presses this right button.
Declaration
public void OnClick()
Exceptions
Type | Condition |
---|---|
System.ArgumentOutOfRangeException |
OnPointerClick()
Declaration
public void OnPointerClick()
StateUpdate(PomodoroTimer.States, Theme)
Positions the sprites to a specific offset and scale. (Asset specific!)
Declaration
public void StateUpdate(PomodoroTimer.States state, Theme theme)
Parameters
Type | Name | Description |
---|---|---|
PomodoroTimer.States | state | |
Theme | theme |