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
TomatoCounter
Implements
Inherited Members
Namespace: AdrianMiasik.Components.Core.Containers
Assembly: Assembly-CSharp.dll
Syntax
public class TomatoCounter : ThemeElement, IColorHook
Methods
| Improve this Doc View SourceConsumeTomatoes()
Wipe / Clears your completed Tomato/pomodoro progression back to zero.
Declaration
public void ConsumeTomatoes()
FillTomato()
Completes / Fills in the latest Tomato. (from left to right)
Declaration
public void FillTomato()
GetTomatoCount()
Declaration
public int GetTomatoCount()
Returns
Type | Description |
---|---|
System.Int32 |
GetTomatoProgress()
Declaration
public int GetTomatoProgress()
Returns
Type | Description |
---|---|
System.Int32 |
HasProgression()
Declaration
public bool HasProgression()
Returns
Type | Description |
---|---|
System.Boolean |
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 |
SetHorizontalScale(Vector3)
Sets the scale of this horizontal layout group.
Declaration
public void SetHorizontalScale(Vector3 newScale)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.Vector3 | newScale |
SetPomodoroCount(Int32, Int32)
Declaration
public void SetPomodoroCount(int desiredPomodoroCount, int pomodoroProgress)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | desiredPomodoroCount | |
System.Int32 | pomodoroProgress |