Show / Hide Table of Contents

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) Explicitly not a ClickButton since this component relies on the pomodoro timer state. But intended to be used in conjunction with a ClickButton core component.

Inheritance
System.Object
UnityEngine.Object
UnityEngine.Component
UnityEngine.Behaviour
UnityEngine.MonoBehaviour
ThemeElement
RightButton
Implements
IColorHook
ITimerState
Inherited Members
ThemeElement.Timer
ThemeElement.Initialize(PomodoroTimer, Boolean)
ThemeElement.IsInitialized()
ThemeElement.OnDestroy()
Namespace: AdrianMiasik.Components.Specific
Assembly: Assembly-CSharp.dll
Syntax
public class RightButton : ThemeElement, IColorHook, ITimerState

Fields

| Improve this Doc View Source

m_onClick

Invoked when this button is clicked.

Declaration
public UnityEvent m_onClick
Field Value
Type Description
UnityEngine.Events.UnityEvent
| Improve this Doc View Source

m_pauseOnClick

Invoked when the user presses the pause button.

Declaration
public UnityEvent m_pauseOnClick
Field Value
Type Description
UnityEngine.Events.UnityEvent
| Improve this Doc View Source

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
| Improve this Doc View Source

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 Source

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
ThemeElement.ColorUpdate(Theme)
| Improve this Doc View Source

Initialize(PomodoroTimer)

Sets up this component. (ThemeElement register)

Declaration
public void Initialize(PomodoroTimer pomodoroTimer)
Parameters
Type Name Description
PomodoroTimer pomodoroTimer
| Improve this Doc View Source

OnClick()

Invoked when the user presses this right button.

Declaration
public void OnClick()
Exceptions
Type Condition
System.ArgumentOutOfRangeException
| Improve this Doc View Source

OnPointerClick()

Declaration
public void OnPointerClick()
| Improve this Doc View Source

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

Implements

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