Show / Hide Table of Contents

Class TomatoCounter

A ThemeElement horizontal layout container used to manage our Tomatoes/Pomodoros and manipulates their state as a group. Such as completing/filling each sequential Tomato in. Includes a trashcan that is used to wipe tomato/pomodoro progression. This class in intended to be used to determine when to take long breaks.

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

Methods

| Improve this Doc View Source

ConsumeTomatoes()

Wipe / Clears your completed Tomato/pomodoro progression back to zero.

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

FillTomato()

Completes / Fills in the latest Tomato. (from left to right)

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

GetTomatoCount()

Declaration
public int GetTomatoCount()
Returns
Type Description
System.Int32
| Improve this Doc View Source

GetTomatoProgress()

Declaration
public int GetTomatoProgress()
Returns
Type Description
System.Int32
| Improve this Doc View Source

HasProgression()

Declaration
public bool HasProgression()
Returns
Type Description
System.Boolean
| Improve this Doc View Source

Initialize(PomodoroTimer, Int32, Boolean)

Declaration
public void Initialize(PomodoroTimer timer, int pomodoroCount = 4, bool updateColors = true)
Parameters
Type Name Description
PomodoroTimer timer
System.Int32 pomodoroCount
System.Boolean updateColors
| Improve this Doc View Source

SetHorizontalScale(Vector3)

Sets the scale of this horizontal layout group. Intended for pulse animation.

Declaration
public void SetHorizontalScale(Vector3 newScale)
Parameters
Type Name Description
UnityEngine.Vector3 newScale
| Improve this Doc View Source

SetPomodoroCount(Int32, Int32)

Declaration
public void SetPomodoroCount(int desiredPomodoroCount, int pomodoroProgress)
Parameters
Type Name Description
System.Int32 desiredPomodoroCount
System.Int32 pomodoroProgress

Implements

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