Show / Hide Table of Contents

Class ToggleSprite

A ThemeElement Toggle in the form of a two-state sprite switch (e.g. checkbox, icon / invisible).

Inheritance
System.Object
UnityEngine.Object
UnityEngine.Component
UnityEngine.Behaviour
UnityEngine.MonoBehaviour
UnityEngine.EventSystems.UIBehaviour
UnityEngine.UI.Selectable
UnityEngine.UI.Toggle
Toggle
ToggleSprite
Implements
IColorHook
Inherited Members
Toggle.Timer
Toggle.IsInitialized
Toggle.Initialize(PomodoroTimer)
Toggle.OnDestroy()
Namespace: AdrianMiasik.Components.Core
Assembly: Assembly-CSharp.dll
Syntax
public class ToggleSprite : Toggle, IMoveHandler, IPointerDownHandler, IPointerUpHandler, IPointerEnterHandler, IPointerExitHandler, ISelectHandler, IDeselectHandler, IPointerClickHandler, ISubmitHandler, IEventSystemHandler, ICanvasElement, IColorHook

Fields

| Improve this Doc View Source

m_falseSprite

Declaration
public Sprite m_falseSprite
Field Value
Type Description
UnityEngine.Sprite
| Improve this Doc View Source

m_falseZRotation

Declaration
public float m_falseZRotation
Field Value
Type Description
System.Single
| Improve this Doc View Source

m_icon

Declaration
public SVGImage m_icon
Field Value
Type Description
Unity.VectorGraphics.SVGImage
| Improve this Doc View Source

m_onSetToFalseClick

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

m_onSetToTrueClick

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

m_trueSprite

Declaration
public Sprite m_trueSprite
Field Value
Type Description
UnityEngine.Sprite
| Improve this Doc View Source

m_trueZRotation

Declaration
public float m_trueZRotation
Field Value
Type Description
System.Single

Methods

| Improve this Doc View Source

ColorUpdate(Theme)

Declaration
public override void ColorUpdate(Theme theme)
Parameters
Type Name Description
Theme theme
Overrides
Toggle.ColorUpdate(Theme)
| Improve this Doc View Source

Initialize(PomodoroTimer, Boolean, Boolean)

Declaration
public void Initialize(PomodoroTimer pomodoroTimer, bool state, bool invokeEvents = false)
Parameters
Type Name Description
PomodoroTimer pomodoroTimer
System.Boolean state
System.Boolean invokeEvents
| Improve this Doc View Source

OverrideFalseColor(Color)

Note: Needs to be invoked before initialize.Initialize(PomodoroTimer, Boolean, Boolean)

Declaration
public void OverrideFalseColor(Color color)
Parameters
Type Name Description
UnityEngine.Color color
| Improve this Doc View Source

OverrideTrueColor(Color)

Note: Needs to be invoked before initialize.Initialize(PomodoroTimer, Boolean, Boolean)

Declaration
public void OverrideTrueColor(Color color)
Parameters
Type Name Description
UnityEngine.Color color
| Improve this Doc View Source

SetToFalse()

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

SetToTrue()

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

UpdateToggle(Boolean)

Declaration
public void UpdateToggle(bool invokeEvents)
Parameters
Type Name Description
System.Boolean invokeEvents

Implements

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